com.ibm.wbi.http.plugin
Class HttpMonitor

com.ibm.wbi.plugin.Meg
  |
  +--com.ibm.wbi.plugin.Monitor
        |
        +--com.ibm.wbi.http.plugin.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.
 
Fields inherited from class com.ibm.wbi.plugin.Monitor
COPYRIGHT, END, START
 
Fields inherited from class com.ibm.wbi.plugin.Meg
COPYRIGHT, EDITOR, GENERATOR, MONITOR, REQUEST_EDITOR, UNDEFINED
 
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.plugin.Monitor
getMegType, getMonitorType, setMonitorType
 
Methods inherited from class com.ibm.wbi.plugin.Meg
forwardRequest, getCondition, getEnabled, getName, getPlugin, getPriority, isEnabled, processRejectedRequest, setCondition, setEnabled, setName, setPriority, setup, setup, setup, setup, threadManagerRun
 

Field Detail

COPYRIGHT

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

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.
Method Detail

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.
Parameters:
event - The request event used to modify the request/response.
Overrides:
handleRequest in class Monitor