public class PartialPageParserHtmlPage extends AbstractPage implements HTMLPage
| Constructor and Description |
|---|
PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer) |
PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer,
SitemeshBufferFragment body,
java.util.Map<java.lang.String,java.lang.String> bodyProperties) |
PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer,
SitemeshBufferFragment body,
java.util.Map<java.lang.String,java.lang.String> bodyProperties,
SitemeshBufferFragment head,
java.lang.String title,
java.util.Map<java.lang.String,java.lang.String> metaAttributes,
java.util.Map<java.lang.String,java.lang.String> pageProperties) |
| 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. |
boolean |
isFrameSet()
Check to see if this page contains an
HTML frameset.
|
void |
setFrameSet(boolean frameset)
Marks this page as a frameset.
|
void |
writeBody(java.io.Writer out)
Write data of html
<body> tag. |
void |
writeHead(java.io.Writer out)
Write the contents of the
<head> tag. |
void |
writePage(java.io.Writer out)
Write the entire contents of the
Page, in the format before
it was parsed, to the Writer. |
addProperty, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddProperty, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequestpublic PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer)
public PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, java.util.Map<java.lang.String,java.lang.String> bodyProperties)
public PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, java.util.Map<java.lang.String,java.lang.String> bodyProperties, SitemeshBufferFragment head, java.lang.String title, java.util.Map<java.lang.String,java.lang.String> metaAttributes, java.util.Map<java.lang.String,java.lang.String> pageProperties)
sitemeshBuffer - The buffer for the pagebody - The body fragmentbodyProperties - The properties of the bodyhead - The head sectiontitle - The titlemetaAttributes - The meta attributes found in the head sectionpageProperties - The page properties extracted from the head sectionpublic void writeHead(java.io.Writer out)
throws java.io.IOException
HTMLPage<head> tag.public java.lang.String getHead()
HTMLPage<head> tag as a String.getHead in interface HTMLPageHTMLPage.writeHead(java.io.Writer)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 PagewriteBody in class AbstractPagejava.io.IOExceptionpublic java.lang.String getBody()
Page<body> tag.getBody in interface PagegetBody in class AbstractPagePage.writeBody(java.io.Writer)public void writePage(java.io.Writer out)
throws java.io.IOException
PagePage, in the format before
it was parsed, to the Writer.writePage in interface PagewritePage in class AbstractPageout - Writer to write to.java.io.IOException - Rethrown if cannot write to writer.public boolean isFrameSet()
HTMLPageisFrameSet in interface HTMLPagepublic void setFrameSet(boolean frameset)
HTMLPagesetFrameSet in interface HTMLPageHTMLPage.isFrameSet()