public class PartialPageParserHtmlPage extends PartialPageParserPage implements HTMLPage
Modifier and Type | Field and Description |
---|---|
private SitemeshBufferFragment |
head |
Constructor and Description |
---|
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 |
---|---|
private void |
addProperties(java.util.Map<java.lang.String,java.lang.String> properties,
java.lang.String prefix) |
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 |
writeHead(java.io.Writer out)
Write the contents of the
<head> tag. |
writeBody
addProperty, getBody, 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, getBody, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writeBody, writePage
private final SitemeshBufferFragment head
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 sectionprivate void addProperties(java.util.Map<java.lang.String,java.lang.String> properties, java.lang.String prefix)
public 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 HTMLPage
HTMLPage.writeHead(java.io.Writer)
public boolean isFrameSet()
HTMLPage
isFrameSet
in interface HTMLPage
public void setFrameSet(boolean frameset)
HTMLPage
setFrameSet
in interface HTMLPage
HTMLPage.isFrameSet()