|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--apollo.Template.TemplatePage
This is a TemplatePage. TemplatePages are instantiated with an html file and registered with the PageManager. When rendered, a hashtable of values are replaced in the html file. Copyright Joe Kislo, All Rights Reserved.
Constructor Summary | |
TemplatePage(ManagerTracker MT,
java.lang.Object PH)
Creates a TemplatePage. |
|
TemplatePage(ManagerTracker MT,
java.lang.Object PH,
boolean missingEqualsTrue)
Creates a TemplatePage. |
|
TemplatePage(ManagerTracker MT,
java.lang.Object PH,
java.util.Hashtable PC)
Creates a TemplatePage. |
|
TemplatePage(ManagerTracker MT,
java.lang.Object PH,
java.util.Hashtable PC,
java.lang.String filename)
|
|
TemplatePage(ManagerTracker MT,
java.lang.Object PH,
java.lang.String filename)
Creates a TemplatePage. |
|
TemplatePage(ManagerTracker MT,
java.lang.Object PH,
java.lang.String filename,
boolean missingEqualsTrue)
Creates a TemplatePage. |
|
TemplatePage(ManagerTracker MT,
java.lang.String filename)
|
Method Summary | |
java.lang.String |
getDebug()
Returns debugging information. |
HTMLTemplate |
getMainPage()
|
java.lang.String |
getOriginalHTMLContents()
|
java.lang.String |
getPageCacheID()
|
java.util.Hashtable |
getPageConstants(java.util.Hashtable PC)
Returns the pageConstants. |
static void |
main(java.lang.String[] args)
|
void |
reloadTemplate()
|
HTTPResponse |
render(java.util.Hashtable replacementTable,
WebSession thisSession)
Renders the HTML file using a combination of the pageConstants and the replacementTable. |
void |
setMissingEqualsTrue(boolean missingEqualsTrue)
|
void |
setPageConstants(java.util.Hashtable PC)
Sets the pageConstants which will be merged in with all subseqent render requests |
java.lang.String |
toString(java.util.Hashtable replacementTable)
Renders the HTML file using a combination of the pageConstants and the replacementTable. |
java.lang.String |
toString(java.util.Hashtable replacementTable,
WebSession thisSession)
Renders the HTML file using a combination of the pageConstants and the replacementTable. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TemplatePage(ManagerTracker MT, java.lang.Object PH)
fquid
- The Fully Qualified Unique IDpublic TemplatePage(ManagerTracker MT, java.lang.Object PH, boolean missingEqualsTrue)
fquid
- The Fully Qualified Unique IDpublic TemplatePage(ManagerTracker MT, java.lang.Object PH, java.lang.String filename)
fquid
- The Fully Qualified Unique IDfilename
- The filename for this templatemissingEqualsTrue
- If the element is missing, it's boolean value is this valuepublic TemplatePage(ManagerTracker MT, java.lang.Object PH, java.lang.String filename, boolean missingEqualsTrue)
fquid
- The Fully Qualified Unique IDfilename
- The filename for this templatemissingEqualsTrue
- If the element is missing, it's boolean value is this valuepublic TemplatePage(ManagerTracker MT, java.lang.Object PH, java.util.Hashtable PC) throws TemplatePageException
fquid
- The Fully Qualified Unique ID, includes the html file to operate onPC
- Defines pageConstants, which will be merged in with all render requestspublic TemplatePage(ManagerTracker MT, java.lang.Object PH, java.util.Hashtable PC, java.lang.String filename)
public TemplatePage(ManagerTracker MT, java.lang.String filename)
Method Detail |
public java.lang.String getPageCacheID()
public HTMLTemplate getMainPage()
public java.lang.String getOriginalHTMLContents()
public void reloadTemplate()
public void setMissingEqualsTrue(boolean missingEqualsTrue)
public void setPageConstants(java.util.Hashtable PC)
PC
- The pageConstantspublic java.util.Hashtable getPageConstants(java.util.Hashtable PC)
UID
- The Unique ID for this requestreq
- The HttpServletRequestpublic java.lang.String toString(java.util.Hashtable replacementTable) throws TemplatePageException
replacementTable
- Table of elements to be replaced, and their replacementspublic java.lang.String toString(java.util.Hashtable replacementTable, WebSession thisSession)
replacementTable
- Table of elements to be replaced, and their replacementsthisSession
- The session object for this request (optional)public HTTPResponse render(java.util.Hashtable replacementTable, WebSession thisSession)
replacementTable
- Table of elements to be replaced, and their replacementsthisSession
- The session object for this request (optional)public java.lang.String getDebug()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |