Class PartialPageParserHtmlPage
java.lang.Object
com.opensymphony.module.sitemesh.parser.AbstractPage
com.opensymphony.module.sitemesh.parser.PartialPageParserPage
com.opensymphony.module.sitemesh.parser.PartialPageParserHtmlPage
The Class PartialPageParserHtmlPage.
-
Constructor Summary
ConstructorsConstructorDescriptionPartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties) Instantiates a new partial page parser html page.PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties, SitemeshBufferFragment head, String title, Map<String, String> metaAttributes, Map<String, String> pageProperties) Instantiates a new partial page parser html page. -
Method Summary
Modifier and TypeMethodDescriptiongetHead()Convenience method to return the contents of the<head>tag as a String.booleanCheck to see if this page contains an HTML frameset.voidsetFrameSet(boolean frameset) Marks this page as a frameset.voidWrite the contents of the<head>tag.Methods inherited from class com.opensymphony.module.sitemesh.parser.PartialPageParserPage
writeBodyMethods inherited from class com.opensymphony.module.sitemesh.parser.AbstractPage
addProperty, getBody, 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, getBody, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest, writeBody, writePage
-
Constructor Details
-
PartialPageParserHtmlPage
public PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties) Instantiates a new partial page parser html page.- Parameters:
sitemeshBuffer- the sitemesh bufferbody- the bodybodyProperties- the body properties
-
PartialPageParserHtmlPage
public PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties, SitemeshBufferFragment head, String title, Map<String, String> metaAttributes, Map<String, String> pageProperties) Instantiates a new partial page parser html page.- Parameters:
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 section
-
-
Method Details
-
writeHead
Description copied from interface:HTMLPageWrite the contents of the<head>tag.- Specified by:
writeHeadin interfaceHTMLPage- 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. -
isFrameSet
public boolean isFrameSet()Description copied from interface:HTMLPageCheck to see if this page contains an HTML frameset.- Specified by:
isFrameSetin interfaceHTMLPage- Returns:
- true, if is frame set
-
setFrameSet
public void setFrameSet(boolean frameset) Description copied from interface:HTMLPageMarks this page as a frameset.- Specified by:
setFrameSetin interfaceHTMLPage- Parameters:
frameset- the new frame set- See Also:
-