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. |
|
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. |
| 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.
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.
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.