com.ibm.wbi.http.beans
Class HtmlGenerator

com.ibm.wbi.plugin.Meg
  |
  +--com.ibm.wbi.plugin.Generator
        |
        +--com.ibm.wbi.http.plugin.HttpGenerator
              |
              +--com.ibm.wbi.http.beans.FourStepHttpGenerator
                    |
                    +--com.ibm.wbi.http.beans.HtmlGenerator
Direct Known Subclasses:
DirectoryGenerator, HtmlTemplateGenerator

public abstract class HtmlGenerator
extends FourStepHttpGenerator

An abstract Generator that is used to produce HTML pages. This class must be extended to be used.

To extend this class, implement the String getHtmlString(RequestEvent) method to return a String containing the desired HTML. Any computation can be performed to determine the contents of that String.

An example of an extending class is StaticHtmlGenerator

See Also:
StaticHtmlGenerator

Field Summary
static java.lang.String COPYRIGHT
          IBM copyright information.
 
Fields inherited from class com.ibm.wbi.http.plugin.HttpGenerator
COPYRIGHT, http
 
Fields inherited from class com.ibm.wbi.plugin.Generator
COPYRIGHT
 
Fields inherited from class com.ibm.wbi.plugin.Meg
COPYRIGHT, EDITOR, GENERATOR, MONITOR, REQUEST_EDITOR, UNDEFINED
 
Constructor Summary
HtmlGenerator()
          Construct a new HTML generator.
 
Method Summary
protected abstract  java.lang.String getHtmlString(RequestEvent e)
          Get the HTML string.
protected  void writeContent(RequestEvent e)
          Write the HTML to the request event output stream.
 
Methods inherited from class com.ibm.wbi.http.beans.FourStepHttpGenerator
getHeader, handleRequest, initialize, verify
 
Methods inherited from class com.ibm.wbi.http.plugin.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.plugin.Generator
getMegType
 
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

HtmlGenerator

public HtmlGenerator()
Construct a new HTML generator.
Method Detail

writeContent

protected void writeContent(RequestEvent e)
Write the HTML to the request event output stream.
Parameters:
e - The request event.
Overrides:
writeContent in class FourStepHttpGenerator

getHtmlString

protected abstract java.lang.String getHtmlString(RequestEvent e)
Get the HTML string.
Parameters:
e - The request event.