|
||||||||||
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 Content
IOException
public int originalLength()
Content
originalLength
in interface Content
public void writeBody(Writer out) throws IOException
Content
<body>
tag.
writeBody
in interface Content
IOException
public void writeHead(Writer out) throws IOException
Content
<head>
tag.
writeHead
in interface Content
IOException
public String getTitle()
Content
getTitle
in interface Content
public String getProperty(String name)
Content
Page
as a String
.
getProperty
in interface Content
name
- Name of property
public String[] getPropertyKeys()
Content
Page
.
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 |