com.ibm.wbi.protocol.http
Class HttpEditor
com.ibm.wbi.Meg
|
+--com.ibm.wbi.Editor
|
+--com.ibm.wbi.protocol.http.HttpEditor
- Direct Known Subclasses:
- AddPreambleEditor, FixContentTypeEditor, KeepOnServerEditor, LinkAnnotationEditor, NoCacheEditor, RedirectFollowEditor, TagAnnotationEditor
- 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. |
|
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. |
| Methods inherited from class com.ibm.wbi.Meg |
forwardRequest, getCondition, getEnabled, getMegProperty, getMegProperty, getMegPropertyKeys, getName, getPlugin, getPriority, getSystemContext, initialize, initialize, isEnabled, isMegApplicable, loadMegResources, run, setCondition, setEnabled, setMegProperty, setName, setPriority, setSystemContext, setup, setup, setup, setup |
COPYRIGHT
public static final java.lang.String COPYRIGHT
- IBM copyright information.
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.
handleRequest
public abstract void handleRequest(RequestEvent event)
throws RequestRejectedException,
java.io.IOException
- Handle the specified request event.
- Overrides:
handleRequest in class Editor
- 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.