Package com.opensymphony.sitemesh
Interface Content
- All Known Implementing Classes:
HTMLPage2Content
public interface Content
- Since:
- SiteMesh 3
-
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 writer) Write out the original unprocessed content.
-
Method Details
-
writeOriginal
Write out the original unprocessed content.- Throws:
IOException
-
originalLength
int originalLength()Length of the original unprocessed content. -
writeBody
Write the contents of the<body>tag.- Throws:
IOException
-
writeHead
Write the contents of the<head>tag.- Throws:
IOException
-
getTitle
String getTitle()Get the Title of the document -
getProperty
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
-
addProperty
Manually add a property to page.
-