com.monoserv.modules
Class HttpTidyModule

java.lang.Object
  extended by com.monoserv.modules.BaseModule
      extended by com.monoserv.modules.HttpTidyModule

public class HttpTidyModule
extends BaseModule

A class built for the purpose of enforcing additional HTTP rules. Will be built-up as time goes on - simple functionality at the moment. Right now. only checks for persistent connections.


Constructor Summary
HttpTidyModule()
          Constructor - creates an instance of the InstanceModifier object.
 
Method Summary
 InstanceModifier getInstanceModifier()
          Overrides method to enforce HTTP rules with the MonoServInstance object.
 IModuleData run(IModuleData data)
          Checks the HttpDataModule object to see if anything has to be done to ensure HTTP compliance.
 
Methods inherited from class com.monoserv.modules.BaseModule
end, SaveSocket, start
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HttpTidyModule

public HttpTidyModule()
Constructor - creates an instance of the InstanceModifier object.

Method Detail

getInstanceModifier

public InstanceModifier getInstanceModifier()
Overrides method to enforce HTTP rules with the MonoServInstance object.

Overrides:
getInstanceModifier in class BaseModule
Returns:
InstanceModifier A set of actions for the server to take to act more like an HTTP server.

run

public IModuleData run(IModuleData data)
                throws java.lang.Exception
Checks the HttpDataModule object to see if anything has to be done to ensure HTTP compliance. As of right now, only checks for Connection header for persistent connections.

Overrides:
run in class BaseModule
Parameters:
data - The data supplied from the ChainManager
Returns:
IModuleData A copy of the data unmodified
Throws:
java.lang.Exception - If something bad happened.