com.ibm.wbi.protocol.http.beans
Class HtmlGenerator
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
- Direct Known Subclasses:
- DirectoryGenerator, HtmlTemplateGenerator, StaticHtmlGenerator
- 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. |
|
Constructor Summary |
HtmlGenerator()
Construct a new HTML generator. |
| 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.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.
HtmlGenerator
public HtmlGenerator()
- Construct a new HTML generator.
writeContent
protected void writeContent(RequestEvent e)
- Write the HTML to the request event output stream.
- Overrides:
writeContent in class FourStepHttpGenerator
- Parameters:
e - The request event.
getHtmlString
protected abstract java.lang.String getHtmlString(RequestEvent e)
- Get the HTML string.
- Parameters:
e - The request event.