com.ibm.wbi
Class RequestEditor
com.ibm.wbi.Meg
|
+--com.ibm.wbi.RequestEditor
- Direct Known Subclasses:
- HttpRequestEditor
- public abstract class RequestEditor
- extends Meg
A RequestEditor has the ability to edit the request before
the Generator in the chain gets invoked.
|
Constructor Summary |
RequestEditor()
Constructs a new RequestEditor with default
characteristics and is enabled. |
RequestEditor(java.lang.String name,
java.lang.String condition,
int priority)
Constructs a new RequestEditor with the specified
characteristics and is enabled. |
RequestEditor(java.lang.String name,
java.lang.String condition,
int priority,
boolean enabled)
Constructs a new RequestEditor with the specified
characteristics. |
|
Method Summary |
int |
getType()
Get the Meg type associated with a
RequestEditor. |
abstract void |
handleRequest(RequestEvent event)
Handle the specified RequestEvent. |
| 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 |
RequestEditor
public RequestEditor()
- Constructs a new
RequestEditor with default
characteristics and is enabled.
- name = New RequestEditor
- condition = %true%
- priority = 1
RequestEditor
public RequestEditor(java.lang.String name,
java.lang.String condition,
int priority)
- Constructs a new
RequestEditor with the specified
characteristics and is enabled.
- Parameters:
name - The name of the RequestEditor.condition - The condition under which this
RequestEditor should be invoked.priority - The priority of the RequestEditor
incase of a condition tie.
RequestEditor
public RequestEditor(java.lang.String name,
java.lang.String condition,
int priority,
boolean enabled)
- Constructs a new
RequestEditor with the specified
characteristics.
- Parameters:
name - The name of the RequestEditor.condition - The condition under which this
RequestEditor should be invoked.priority - The priority of the RequestEditor
incase of a condition tie.enabled - true if enabled.
getType
public int getType()
- Get the
Meg type associated with a
RequestEditor.
- Overrides:
getType in class Meg
- Returns:
- Always returns
Meg.REQUEST_EDITOR.
handleRequest
public abstract void handleRequest(RequestEvent event)
throws RequestRejectedException,
java.io.IOException
- Handle the specified
RequestEvent.
- Overrides:
handleRequest in class Meg
- Parameters:
event - The RequestEvent associated with the
request.- Throws:
RequestRejectedException - If rejecting request, this
must be thrown before the first write() is
made to the output stream.java.io.IOException - If an error occurs parsing input or
output streams