com.ibm.wbi.protocol.http.beans
Class StaticHtmlGenerator

com.ibm.wbi.Meg
  |
  +--com.ibm.wbi.Generator
        |
        +--com.ibm.wbi.protocol.http.HttpGenerator
              |
              +--com.ibm.wbi.protocol.http.beans.FourStepHttpGenerator
                    |
                    +--com.ibm.wbi.protocol.http.beans.HtmlGenerator
                          |
                          +--com.ibm.wbi.protocol.http.beans.StaticHtmlGenerator

public class StaticHtmlGenerator
extends HtmlGenerator

A Generator that produces a non-changing HTML document. There is one property that can be set: the StaticHTML that will be delivered when this Generator is used.


Field Summary
static java.lang.String COPYRIGHT
          IBM copyright information.
 
Fields inherited from class com.ibm.wbi.protocol.http.HttpGenerator
http
 
Fields inherited from class com.ibm.wbi.Meg
EDITOR, GENERATOR, MONITOR, REQUEST_EDITOR, UNDEFINED
 
Constructor Summary
StaticHtmlGenerator()
          Construct a new static html generator with no page source specified.
StaticHtmlGenerator(java.lang.String html)
          Construct an instance with the given source body.
 
Method Summary
protected  java.lang.String getHtmlString(RequestEvent e)
          Get the static html string.
 java.lang.String getStaticHtml()
          Access the static html.
 void setStaticHtml(java.lang.String html)
          Set the static html.
 
Methods inherited from class com.ibm.wbi.protocol.http.beans.HtmlGenerator
writeContent
 
Methods inherited from class com.ibm.wbi.protocol.http.beans.FourStepHttpGenerator
getHeader, handleRequest, initialize, verify
 
Methods inherited from class com.ibm.wbi.protocol.http.HttpGenerator
add, addCookie, getContentType, getHttpResponse, getHttpResponseString, getResponseCode, getResponseText, isCache, produceHeader, set, setCache, setContentLength, setContentType, setResponseCode, setResponseText, setServer, writeHeader
 
Methods inherited from class com.ibm.wbi.Generator
getType
 
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
 

Field Detail

COPYRIGHT

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

StaticHtmlGenerator

public StaticHtmlGenerator()
Construct a new static html generator with no page source specified.

StaticHtmlGenerator

public StaticHtmlGenerator(java.lang.String html)
Construct an instance with the given source body.
Parameters:
html - The HTML that the generator will deliver.
Method Detail

getStaticHtml

public java.lang.String getStaticHtml()
Access the static html.
Returns:
The static html.

setStaticHtml

public void setStaticHtml(java.lang.String html)
Set the static html.
Parameters:
html - The HTML that the generator will deliver.

getHtmlString

protected java.lang.String getHtmlString(RequestEvent e)
Get the static html string.
Overrides:
getHtmlString in class HtmlGenerator
Parameters:
e - The request event.