com.ibm.wbi.protocol.http.beans
Class DisplayMonitor
com.ibm.wbi.Meg
|
+--com.ibm.wbi.Monitor
|
+--com.ibm.wbi.protocol.http.HttpMonitor
|
+--com.ibm.wbi.protocol.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
|
| 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
showContent
protected boolean showContent
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
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.
- Overrides:
handleRequest in class HttpMonitor
- Parameters:
e - The request event.