Package com.opensymphony.sitemesh
Interface Content
-
- All Known Implementing Classes:
HTMLPage2Content
public interface Content- Since:
- SiteMesh 3
- Author:
- Joe Walnes
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddProperty(String name, String value)Manually add a property to page.StringgetProperty(String name)Get a property embedded into thePageas aString.String[]getPropertyKeys()Get all available property keys for thePage.StringgetTitle()Get the Title of the documentintoriginalLength()Length of the original unprocessed content.voidwriteBody(Writer out)Write the contents of the<body>tag.voidwriteHead(Writer out)Write the contents of the<head>tag.voidwriteOriginal(Writer writer)Write out the original unprocessed content.
-
-
-
Method Detail
-
writeOriginal
void writeOriginal(Writer writer) throws IOException
Write out the original unprocessed content.- Throws:
IOException
-
originalLength
int originalLength()
Length of the original unprocessed content.
-
writeBody
void writeBody(Writer out) throws IOException
Write the contents of the<body>tag.- Throws:
IOException
-
writeHead
void writeHead(Writer out) throws IOException
Write the contents of the<head>tag.- Throws:
IOException
-
getTitle
String getTitle()
Get the Title of the document
-
getProperty
String getProperty(String name)
Get a property embedded into thePageas aString.- Parameters:
name- Name of property- Returns:
- Property value
-
getPropertyKeys
String[] getPropertyKeys()
Get all available property keys for thePage.- Returns:
- Property keys
-
-