com.ibm.wbi.http.beans
Class DisplayMonitor

com.ibm.wbi.plugin.Meg
  |
  +--com.ibm.wbi.plugin.Monitor
        |
        +--com.ibm.wbi.http.plugin.HttpMonitor
              |
              +--com.ibm.wbi.http.beans.DisplayMonitor

public class DisplayMonitor
extends HttpMonitor

A Monitor which prints information about the HTTP request and response to the console. If the returned content type is some form of "text", then the content may be displayed. Note that the content is stored in memory, so content should not be shown for large documents. This monitor is primarily used for debugging.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright information
protected  boolean showContent
           
 
Fields inherited from class com.ibm.wbi.http.plugin.HttpMonitor
COPYRIGHT
 
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
DisplayMonitor()
          Constructs a default display monitor.
DisplayMonitor(boolean b)
          Constructs a display monitor.
 
Method Summary
 boolean getShowContent()
          See whether or not the content of the page will be displayed.
 void handleRequest(RequestEvent e)
          Handle the request.
 void setShowContent(boolean b)
          Set whether or not the content of the page will be displayed.
 
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

showContent

protected boolean showContent
Constructor Detail

DisplayMonitor

public DisplayMonitor()
Constructs a default display monitor. Content of the page will be displayed.

DisplayMonitor

public DisplayMonitor(boolean b)
Constructs a display monitor.
Parameters:
b - true if content is to be displayed; false if it is not
Method Detail

getShowContent

public boolean getShowContent()
See whether or not the content of the page will be displayed.

setShowContent

public void setShowContent(boolean b)
Set whether or not the content of the page will be displayed.

handleRequest

public void handleRequest(RequestEvent e)
Handle the request.
Parameters:
e - The request event.
Overrides:
handleRequest in class HttpMonitor