com.ibm.wbi.protocol.http
Class HttpMonitor
com.ibm.wbi.Meg
|
+--com.ibm.wbi.Monitor
|
+--com.ibm.wbi.protocol.http.HttpMonitor
- Direct Known Subclasses:
- DisplayMonitor
- public abstract class HttpMonitor
- extends Monitor
An abstract Monitor base class that is specifically adapted to handle HTTP requests.
|
Field Summary |
static java.lang.String |
COPYRIGHT
IBM copyright information. |
|
Constructor Summary |
HttpMonitor()
Construct an HTTP monitor with default parameters. |
HttpMonitor(java.lang.String name,
java.lang.String condition,
int priority)
Construct a new HTTP monitor with specified parameters that is enabled. |
HttpMonitor(java.lang.String name,
java.lang.String condition,
int priority,
boolean enabled)
Construct a new HTTP monitor with specified parameters. |
|
Method Summary |
abstract void |
handleRequest(RequestEvent event)
The method called to handle a request that satisfies the meg's
condition. |
| 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.
HttpMonitor
public HttpMonitor()
- Construct an HTTP monitor with default parameters.
HttpMonitor
public HttpMonitor(java.lang.String name,
java.lang.String condition,
int priority)
- Construct a new HTTP monitor with specified parameters that is enabled.
- Parameters:
name - The name.condition - The condition under which it is run.priority - The priority.
HttpMonitor
public HttpMonitor(java.lang.String name,
java.lang.String condition,
int priority,
boolean enabled)
- Construct a new HTTP monitor with specified parameters.
- Parameters:
name - The name.condition - The condition under which it is run.priority - The priority.enabled - The enabled state.
handleRequest
public abstract void handleRequest(RequestEvent event)
throws java.io.IOException
- The method called to handle a request that satisfies the meg's
condition. A monitor can not modify the streams.
- Overrides:
handleRequest in class Monitor
- Parameters:
event - The request event used to modify the request/response.- Throws:
java.io.Exception - can be thrown if an exception was generated
by the Meg while processing the MegInputStream.