Class HTMLPage2Content
- java.lang.Object
-
- com.opensymphony.sitemesh.compatability.HTMLPage2Content
-
-
Constructor Summary
Constructors Constructor Description HTMLPage2Content(HTMLPage page)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProperty(String name, String value)
Manually add a property to page.String
getProperty(String name)
Get a property embedded into thePage
as aString
.String[]
getPropertyKeys()
Get all available property keys for thePage
.String
getTitle()
Get the Title of the documentint
originalLength()
Length of the original unprocessed content.void
writeBody(Writer out)
Write the contents of the<body>
tag.void
writeHead(Writer out)
Write the contents of the<head>
tag.void
writeOriginal(Writer out)
Write out the original unprocessed content.
-
-
-
Field Detail
-
page
private final HTMLPage page
-
-
Constructor Detail
-
HTMLPage2Content
public HTMLPage2Content(HTMLPage page)
-
-
Method Detail
-
writeOriginal
public void writeOriginal(Writer out) throws IOException
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
public void writeBody(Writer out) throws IOException
Description copied from interface:Content
Write the contents of the<body>
tag.- Specified by:
writeBody
in interfaceContent
- Throws:
IOException
-
writeHead
public void writeHead(Writer out) throws IOException
Description copied from interface:Content
Write the contents of the<head>
tag.- Specified by:
writeHead
in interfaceContent
- Throws:
IOException
-
getTitle
public String getTitle()
Description copied from interface:Content
Get the Title of the document
-
getProperty
public String getProperty(String name)
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
public String[] getPropertyKeys()
Description copied from interface:Content
Get all available property keys for thePage
.- Specified by:
getPropertyKeys
in interfaceContent
- Returns:
- Property keys
-
addProperty
public void addProperty(String name, String value)
Description copied from interface:Content
Manually add a property to page.- Specified by:
addProperty
in interfaceContent
-
-