m.c.m.proxyma.plugins.preprocessors
Class CookiesRewritePreprocessor

java.lang.Object
  extended by m.c.m.proxyma.plugins.preprocessors.AbstractPreprocessor
      extended by m.c.m.proxyma.plugins.preprocessors.CookiesRewritePreprocessor
All Implemented Interfaces:
ResourceHandler

public class CookiesRewritePreprocessor
extends AbstractPreprocessor

This preprocessor recognizes the cookies that were modified by the CookiesRewriteTransformer and restores the original values on them.
As just said, it works in conjunction with the CookiesRewriteTransformer and it would be useless to activate it without its companion plugin.

NOTE: this software is released under GPL License. See the LICENSE of this distribution for more informations.

Version:
$Id: CookiesRewritePreprocessor.java 170 2010-07-02 21:16:10Z marcolinuz $
Author:
Marco Casavecchia Morganti (marcolinuz) [marcolinuz-at-gmail.com]
See Also:
CookiesRewriteTransformer

Constructor Summary
CookiesRewritePreprocessor(ProxymaContext context)
          The default constructor for this class
It prepares the context logger and the logger for the access-log.
 
Method Summary
 java.lang.String getHtmlDescription()
          Returns a short description of what the plugin does..
 java.lang.String getName()
          Returns the name of the plugin.
 void process(ProxymaResource aResource)
          This adds a resource attribute to the current resource in order to memorize the instant when the new request has come to the server.
 
Methods inherited from class m.c.m.proxyma.plugins.preprocessors.AbstractPreprocessor
getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CookiesRewritePreprocessor

public CookiesRewritePreprocessor(ProxymaContext context)
The default constructor for this class
It prepares the context logger and the logger for the access-log. NOTE: Every plugin must have a constructor that takes a ProxymaContext as parameter.

Method Detail

process

public void process(ProxymaResource aResource)
This adds a resource attribute to the current resource in order to memorize the instant when the new request has come to the server. It can be used to verfy the performances of the server.

Specified by:
process in interface ResourceHandler
Specified by:
process in class AbstractPreprocessor
Parameters:
aResource - any ProxymaResource
See Also:
PerformanceTestSerializer

getName

public java.lang.String getName()
Returns the name of the plugin.

Specified by:
getName in interface ResourceHandler
Specified by:
getName in class AbstractPreprocessor
Returns:
the name of the plugin.

getHtmlDescription

public java.lang.String getHtmlDescription()
Returns a short description of what the plugin does..
You can use html tags into it.
The result of this method call can be used by any interface to explain for what is the puropse of the plugin.

Specified by:
getHtmlDescription in interface ResourceHandler
Specified by:
getHtmlDescription in class AbstractPreprocessor
Returns:
a short description of the plugin


Copyright © 2010. All Rights Reserved.