|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.opensymphony.sitemesh.compatability.HTMLPage2Content
public class HTMLPage2Content
Adapts a SiteMesh 2 HTMLPage to a SiteMesh 3 Content.
| Field Summary | |
|---|---|
private HTMLPage |
page
|
| Constructor Summary | |
|---|---|
HTMLPage2Content(HTMLPage page)
|
|
| Method Summary | |
|---|---|
void |
addProperty(String name,
String value)
Manually add a property to page. |
String |
getProperty(String name)
Get a property embedded into the Page as a String. |
String[] |
getPropertyKeys()
Get all available property keys for the Page. |
String |
getTitle()
Get the Title of the document |
int |
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final HTMLPage page
| Constructor Detail |
|---|
public HTMLPage2Content(HTMLPage page)
| Method Detail |
|---|
public void writeOriginal(Writer out)
throws IOException
Content
writeOriginal in interface ContentIOExceptionpublic int originalLength()
Content
originalLength in interface Content
public void writeBody(Writer out)
throws IOException
Content<body> tag.
writeBody in interface ContentIOException
public void writeHead(Writer out)
throws IOException
Content<head> tag.
writeHead in interface ContentIOExceptionpublic String getTitle()
Content
getTitle in interface Contentpublic String getProperty(String name)
ContentPage as a String.
getProperty in interface Contentname - Name of property
public String[] getPropertyKeys()
ContentPage.
getPropertyKeys in interface Content
public void addProperty(String name,
String value)
Content
addProperty in interface Content
|
www.opensymphony.com/sitemesh/ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||