Class HTMLPage2Content
java.lang.Object
com.opensymphony.sitemesh.compatability.HTMLPage2Content
- All Implemented Interfaces:
Content
- Since:
- SiteMesh 3
- Author:
- Joe Walnes
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProperty
(String name, String value) Manually add a property to page.getProperty
(String name) Get a property embedded into thePage
as aString
.String[]
Get all available property keys for thePage
.getTitle()
Get the Title of the documentint
Length of the original unprocessed content.void
Write the contents of the<body>
tag.void
Write the contents of the<head>
tag.void
writeOriginal
(Writer out) Write out the original unprocessed content.
-
Field Details
-
page
-
-
Constructor Details
-
HTMLPage2Content
-
-
Method Details
-
writeOriginal
Description copied from interface:Content
Write out the original unprocessed content.- Specified by:
writeOriginal
in interfaceContent
- Throws:
IOException
-
originalLength
public int originalLength()Description copied from interface:Content
Length of the original unprocessed content.- Specified by:
originalLength
in interfaceContent
-
writeBody
Description copied from interface:Content
Write the contents of the<body>
tag.- Specified by:
writeBody
in interfaceContent
- Throws:
IOException
-
writeHead
Description copied from interface:Content
Write the contents of the<head>
tag.- Specified by:
writeHead
in interfaceContent
- Throws:
IOException
-
getTitle
Description copied from interface:Content
Get the Title of the document -
getProperty
Description copied from interface:Content
Get a property embedded into thePage
as aString
.- Specified by:
getProperty
in interfaceContent
- Parameters:
name
- Name of property- Returns:
- Property value
-
getPropertyKeys
Description copied from interface:Content
Get all available property keys for thePage
.- Specified by:
getPropertyKeys
in interfaceContent
- Returns:
- Property keys
-
addProperty
Description copied from interface:Content
Manually add a property to page.- Specified by:
addProperty
in interfaceContent
-