Class PartialPageParserHtmlPage
java.lang.Object
com.opensymphony.module.sitemesh.parser.AbstractPage
com.opensymphony.module.sitemesh.parser.PartialPageParserHtmlPage
-
Constructor Summary
ConstructorsConstructorDescriptionPartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer) PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties) PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties, SitemeshBufferFragment head, String title, Map<String, String> metaAttributes, Map<String, String> pageProperties) -
Method Summary
Modifier and TypeMethodDescriptiongetBody()Convenience method to return the contents of the<body>tag.getHead()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 data of html<body>tag.voidWrite the contents of the<head>tag.voidWrite the entire contents of thePage, in the format before it was parsed, to theWriter.Methods inherited from class com.opensymphony.module.sitemesh.parser.AbstractPage
addProperty, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequestMethods 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, getBooleanProperty, getIntProperty, getLongProperty, getPage, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, setRequest
-
Constructor Details
-
PartialPageParserHtmlPage
-
PartialPageParserHtmlPage
public PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties) -
PartialPageParserHtmlPage
public PartialPageParserHtmlPage(SitemeshBuffer sitemeshBuffer, SitemeshBufferFragment body, Map<String, String> bodyProperties, SitemeshBufferFragment head, String title, Map<String, String> metaAttributes, Map<String, String> pageProperties) - 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- Throws:
IOException
-
getHead
Description copied from interface:HTMLPageConvenience method to return the contents of the<head>tag as a String. -
writeBody
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
-
getBody
Description copied from interface:PageConvenience method to return the contents of the<body>tag.- Specified by:
getBodyin interfacePage- Overrides:
getBodyin classAbstractPage- See Also:
-
writePage
Description copied from interface:PageWrite the entire contents of thePage, in the format before it was parsed, to theWriter.- Specified by:
writePagein interfacePage- Overrides:
writePagein classAbstractPage- Parameters:
out- Writer to write to.- Throws:
IOException- Rethrown if cannot write to writer.
-
isFrameSet
public boolean isFrameSet()Description copied from interface:HTMLPageCheck to see if this page contains an HTML frameset.- Specified by:
isFrameSetin interfaceHTMLPage
-
setFrameSet
public void setFrameSet(boolean frameset) Description copied from interface:HTMLPageMarks this page as a frameset.- Specified by:
setFrameSetin interfaceHTMLPage- See Also:
-