com.ibm.wbi.http.plugin
Class HttpEditor

com.ibm.wbi.plugin.Meg
  |
  +--com.ibm.wbi.plugin.Editor
        |
        +--com.ibm.wbi.http.plugin.HttpEditor
Direct Known Subclasses:
AddPreambleEditor, FixContentTypeEditor, LinkAnnotationEditor, NoCacheEditor

public abstract class HttpEditor
extends Editor

An abstract Editor base class that is specifically adapted to handle HTTP requests.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright information.
 
Fields inherited from class com.ibm.wbi.plugin.Editor
COPYRIGHT
 
Fields inherited from class com.ibm.wbi.plugin.Meg
COPYRIGHT, EDITOR, GENERATOR, MONITOR, REQUEST_EDITOR, UNDEFINED
 
Constructor Summary
HttpEditor()
          Constucts a new HTTP editor with default characteristics.
HttpEditor(java.lang.String name, java.lang.String condition, int priority)
          Constructs a new HTTP editor with the specified characteristics and is enabled.
HttpEditor(java.lang.String name, java.lang.String condition, int priority, boolean enabled)
          Constructs a new HTTP editor with the specified characteristics.
 
Method Summary
abstract  void handleRequest(RequestEvent event)
          Handle the specified request event.
 
Methods inherited from class com.ibm.wbi.plugin.Editor
getMegType, getMonitors, isMonitors, processRejectedRequest
 
Methods inherited from class com.ibm.wbi.plugin.Meg
forwardRequest, getCondition, getEnabled, getName, getPlugin, getPriority, isEnabled, setCondition, setEnabled, setName, setPriority, setup, setup, setup, setup, threadManagerRun
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
IBM copyright information.
Constructor Detail

HttpEditor

public HttpEditor()
Constucts a new HTTP editor with default characteristics.

HttpEditor

public HttpEditor(java.lang.String name,
                  java.lang.String condition,
                  int priority)
Constructs a new HTTP editor with the specified characteristics and is enabled.
Parameters:
name - The name of the editor.
condition - The condition under which this editor should be invoked.
priority - The priority of the editor incase of a condition tie.

HttpEditor

public HttpEditor(java.lang.String name,
                  java.lang.String condition,
                  int priority,
                  boolean enabled)
Constructs a new HTTP editor with the specified characteristics.
Parameters:
name - The name of the editor.
condition - The condition under which this editor should be invoked.
priority - The priority of the editor incase of a condition tie.
enabled - If true, the HTTP editor will be enabled, disabled otherwise.
Method Detail

handleRequest

public abstract void handleRequest(RequestEvent event)
                            throws RequestRejectedException,
                                   java.io.IOException
Handle the specified request event.
Parameters:
event - The request event with an input and output stream.
Throws:
RequestRejectedException - If rejecting request, this must be thrown before the first write() is made to the output stream.
java.io.Exception - can be thrown if an exception was generated by the meg while processing the MegInput/OutputStreams.
Overrides:
handleRequest in class Editor