com.opensymphony.sitemesh.compatability
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Field Summary | |
|---|---|
private Content |
content
|
| Constructor Summary | |
|---|---|
Content2HTMLPage(Content content)
|
|
| Method Summary | |
|---|---|
void |
addProperty(String name,
String value)
Manually add a property to page. |
String |
getBody()
Convenience method to return the contents of the <body> tag. |
boolean |
getBooleanProperty(String name)
Get a property embedded into the Page as a boolean. |
int |
getContentLength()
Length of the Page, in the format before
it was parsed. |
String |
getHead()
Convenience method to return the contents of the <head> tag as a String. |
int |
getIntProperty(String name)
Get a property embedded into the Page as an int. |
long |
getLongProperty(String name)
Get a property embedded into the Page as a long. |
String |
getPage()
Convenience method to return the contents of the Page in its original format. |
Map |
getProperties()
Get a Map representing all the properties in the 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. |
HttpServletRequest |
getRequest()
Return the request of the original page. |
String |
getTitle()
Get the Title of the document |
boolean |
isFrameSet()
Check to see if this page contains an HTML frameset. |
boolean |
isPropertySet(String name)
Determine whether a property embedded into the Page has been set. |
private String |
noNull(String property)
|
void |
setFrameSet(boolean frameset)
Marks this page as a frameset. |
void |
setRequest(HttpServletRequest request)
Create snapshot of Request. |
void |
writeBody(Writer out)
Write the contents of the <body> tag. |
void |
writeHead(Writer out)
Write the contents of the <head> tag. |
void |
writePage(Writer out)
Write the entire contents of the Page, in the format before
it was parsed, to the Writer. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private final Content content
| Constructor Detail |
|---|
public Content2HTMLPage(Content content)
| Method Detail |
|---|
public void writePage(Writer out) throws IOException
PagePage, in the format before
it was parsed, to the Writer.
out - Writer to write to.
IOException - Rethrown if cannot write to writer.public String getPage()
PagePage in its original format.
Page.writePage(java.io.Writer)public void writeBody(Writer out) throws IOException
Page<body> tag.
IOExceptionpublic String getBody()
Page<body> tag.
Page.writeBody(java.io.Writer)public void writeHead(Writer out) throws IOException
HTMLPage<head> tag.
IOExceptionpublic String getHead()
HTMLPage<head> tag as a String.
HTMLPage.writeHead(java.io.Writer)public String getTitle()
Page
public int getContentLength()
PagePage, in the format before
it was parsed.
getContentLength in interface Pagepublic String getProperty(String name)
PagePage as a String.
getProperty in interface Pagename - Name of property
public int getIntProperty(String name)
PagePage as an int.
Returns 0 if property not specified or not valid number.
getIntProperty in interface Pagename - Name of property
public long getLongProperty(String name)
PagePage as a long.
Returns 0L if property not specified or not valid number.
getLongProperty in interface Pagename - Name of property
private String noNull(String property)
public boolean getBooleanProperty(String name)
PagePage as a boolean.
Returns true if value starts with '1', 't' or 'y' (case-insensitive) -
otherwise returns false.
getBooleanProperty in interface Pagename - Name of property
public boolean isPropertySet(String name)
PagePage has been set.
isPropertySet in interface Pagename - Name of property
public String[] getPropertyKeys()
PagePage.
getPropertyKeys in interface Pagepublic Map getProperties()
PageMap representing all the properties in the Page.
getProperties in interface Pagepublic boolean isFrameSet()
HTMLPage
isFrameSet in interface HTMLPagepublic void setFrameSet(boolean frameset)
HTMLPage
setFrameSet in interface HTMLPageHTMLPage.isFrameSet()public HttpServletRequest getRequest()
Page
getRequest in interface Pagepublic void setRequest(HttpServletRequest request)
PagePage.getRequest()
setRequest in interface Pagepublic void addProperty(String name, String value)
Page
addProperty in interface Page
|
www.opensymphony.com/sitemesh/ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||