Class TokenizedHTMLPage
java.lang.Object
com.opensymphony.module.sitemesh.parser.AbstractPage
com.opensymphony.module.sitemesh.parser.AbstractHTMLPage
com.opensymphony.module.sitemesh.parser.TokenizedHTMLPage
- All Implemented Interfaces:
PageBuilder,HTMLPage,Page
HTMLPage implementation that builds itself based on the incoming 'tag' and 'text' tokens fed to it from the
HTMLTagTokenizer.
- Author:
- Joe Walnes
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionTokenizedHTMLPage(SitemeshBuffer sitemeshBuffer) Instantiates a new tokenized HTML page. -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Convenience method to return the contents of the<body>tag.getHead()Convenience method to return the contents of the<head>tag as a String.voidSets the body.voidSets the head.voidWrite data of html<body>tag.voidWrite data of html<head>tag.Methods inherited from class com.opensymphony.module.sitemesh.parser.AbstractHTMLPage
isFrameSet, setFrameSetMethods inherited from class com.opensymphony.module.sitemesh.parser.AbstractPage
addProperty, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequest, writePageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.opensymphony.module.sitemesh.Page
addProperty, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writePageMethods inherited from interface com.opensymphony.module.sitemesh.html.rules.PageBuilder
addProperty
-
Constructor Details
-
TokenizedHTMLPage
Instantiates a new tokenized HTML page.- Parameters:
sitemeshBuffer- the sitemesh buffer
-
-
Method Details
-
setBody
Sets the body.- Parameters:
body- the new body
-
setHead
Sets the head.- Parameters:
head- the new head
-
writeHead
Description copied from class:AbstractHTMLPageWrite data of html<head>tag.Must be implemented. Data written should not actually contain the head tags, but all the data in between.
- Specified by:
writeHeadin interfaceHTMLPage- Specified by:
writeHeadin classAbstractHTMLPage- Parameters:
out- the out- Throws:
IOException- Signals that an I/O exception has occurred.
-
writeBody
Description copied from class:AbstractPageWrite data of html<body>tag.Must be implemented. Data written should not actually contain the body tags, but all the data in between.
- Specified by:
writeBodyin interfacePage- Specified by:
writeBodyin classAbstractPage- Parameters:
out- the out- Throws:
IOException- Signals that an I/O exception has occurred.
-
getHead
Description copied from interface:HTMLPageConvenience method to return the contents of the<head>tag as a String. -
getBody
Description copied from interface:PageConvenience method to return the contents of the<body>tag.- Specified by:
getBodyin interfacePage- Overrides:
getBodyin classAbstractPage- Returns:
- the body
- See Also:
-