Class HTMLPage2Content
java.lang.Object
com.opensymphony.sitemesh.compatability.HTMLPage2Content
- All Implemented Interfaces:
Content
- Since:
- SiteMesh 3
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProperty(String name, String value) Manually add a property to page.getProperty(String name) Get a property embedded into thePageas aString.String[]Get all available property keys for thePage.getTitle()Get the Title of the documentintLength of the original unprocessed content.voidWrite the contents of the<body>tag.voidWrite the contents of the<head>tag.voidwriteOriginal(Writer out) Write out the original unprocessed content.
-
Constructor Details
-
HTMLPage2Content
-
-
Method Details
-
writeOriginal
Description copied from interface:ContentWrite out the original unprocessed content.- Specified by:
writeOriginalin interfaceContent- Throws:
IOException
-
originalLength
public int originalLength()Description copied from interface:ContentLength of the original unprocessed content.- Specified by:
originalLengthin interfaceContent
-
writeBody
Description copied from interface:ContentWrite the contents of the<body>tag.- Specified by:
writeBodyin interfaceContent- Throws:
IOException
-
writeHead
Description copied from interface:ContentWrite the contents of the<head>tag.- Specified by:
writeHeadin interfaceContent- Throws:
IOException
-
getTitle
Description copied from interface:ContentGet the Title of the document -
getProperty
Description copied from interface:ContentGet a property embedded into thePageas aString.- Specified by:
getPropertyin interfaceContent- Parameters:
name- Name of property- Returns:
- Property value
-
getPropertyKeys
Description copied from interface:ContentGet all available property keys for thePage.- Specified by:
getPropertyKeysin interfaceContent- Returns:
- Property keys
-
addProperty
Description copied from interface:ContentManually add a property to page.- Specified by:
addPropertyin interfaceContent
-