public class TokenizedHTMLPage extends AbstractHTMLPage implements PageBuilder
HTMLPageParser
,
TagTokenizer
Modifier and Type | Field and Description |
---|---|
private SitemeshBufferFragment |
body |
private SitemeshBufferFragment |
head |
Constructor and Description |
---|
TokenizedHTMLPage(SitemeshBuffer sitemeshBuffer) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getBody()
Convenience method to return the contents of the
<body> tag. |
java.lang.String |
getHead()
Convenience method to return the contents of the
<head> tag as a String. |
void |
setBody(SitemeshBufferFragment body) |
void |
setHead(SitemeshBufferFragment head) |
void |
writeBody(java.io.Writer out)
Write data of html
<body> tag. |
void |
writeHead(java.io.Writer out)
Write data of html
<head> tag. |
isFrameSet, setFrameSet
addProperty, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequest, writePage
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addProperty
addProperty, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writePage
private SitemeshBufferFragment body
private SitemeshBufferFragment head
public TokenizedHTMLPage(SitemeshBuffer sitemeshBuffer)
public void setBody(SitemeshBufferFragment body)
public void setHead(SitemeshBufferFragment head)
public void writeHead(java.io.Writer out) throws java.io.IOException
AbstractHTMLPage
<head>
tag.
Must be implemented. Data written should not actually contain the head tags, but all the data in between.
writeHead
in interface HTMLPage
writeHead
in class AbstractHTMLPage
java.io.IOException
public void writeBody(java.io.Writer out) throws java.io.IOException
AbstractPage
<body>
tag.
Must be implemented. Data written should not actually contain the body tags, but all the data in between.
writeBody
in interface Page
writeBody
in class AbstractPage
java.io.IOException
public java.lang.String getHead()
HTMLPage
<head>
tag as a String.getHead
in interface HTMLPage
HTMLPage.writeHead(java.io.Writer)
public java.lang.String getBody()
Page
<body>
tag.getBody
in interface Page
getBody
in class AbstractPage
Page.writeBody(java.io.Writer)