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
public class TokenizedHTMLPage extends AbstractHTMLPage implements PageBuilder
HTMLPage implementation that builds itself based on the incoming 'tag' and 'text' tokens fed to it from the HTMLTagTokenizer.- Author:
- Joe Walnes
- See Also:
HTMLPageParser,TagTokenizer
-
-
Constructor Summary
Constructors Constructor Description TokenizedHTMLPage(char[] original, CharArray body, CharArray head)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetBody()Convenience method to return the contents of the<body>tag.StringgetHead()Convenience method to return the contents of the<head>tag as a String.StringgetPage()Convenience method to return the contents of thePagein its original format.voidwriteBody(Writer out)Write data of html<body>tag.voidwriteHead(Writer out)Write data of html<head>tag.-
Methods inherited from class com.opensymphony.module.sitemesh.parser.AbstractHTMLPage
isFrameSet, setFrameSet
-
Methods inherited from class com.opensymphony.module.sitemesh.parser.AbstractPage
addProperty, getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequest, writePage
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.opensymphony.module.sitemesh.Page
addProperty, getBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writePage
-
Methods inherited from interface com.opensymphony.module.sitemesh.html.rules.PageBuilder
addProperty
-
-
-
-
Method Detail
-
writeHead
public void writeHead(Writer out) throws IOException
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- Throws:
IOException
-
writeBody
public void writeBody(Writer out) throws IOException
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- Throws:
IOException
-
getHead
public String getHead()
Description copied from interface:HTMLPageConvenience method to return the contents of the<head>tag as a String.- Specified by:
getHeadin interfaceHTMLPage- See Also:
HTMLPage.writeHead(java.io.Writer)
-
getBody
public String getBody()
Description copied from interface:PageConvenience method to return the contents of the<body>tag.- Specified by:
getBodyin interfacePage- Overrides:
getBodyin classAbstractPage- See Also:
Page.writeBody(java.io.Writer)
-
getPage
public String getPage()
Description copied from interface:PageConvenience method to return the contents of thePagein its original format.- Specified by:
getPagein interfacePage- Overrides:
getPagein classAbstractPage- See Also:
Page.writePage(java.io.Writer)
-
-