com.opensymphony.module.sitemesh
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| 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. |
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 |
isPropertySet(String name)
Determine whether a property embedded into the Page has been set. |
void |
setRequest(HttpServletRequest request)
Create snapshot of Request. |
void |
writeBody(Writer out)
Write the contents of the <body> tag. |
void |
writePage(Writer out)
Write the entire contents of the Page, in the format before
it was parsed, to the Writer. |
| Method Detail |
|---|
void writePage(Writer out) throws IOException
Page, in the format before
it was parsed, to the Writer.
out - Writer to write to.
IOException - Rethrown if cannot write to writer.String getPage()
Page in its original format.
writePage(java.io.Writer)void writeBody(Writer out) throws IOException
<body> tag.
IOExceptionString getBody()
<body> tag.
writeBody(java.io.Writer)String getTitle()
int getContentLength()
Page, in the format before
it was parsed.
String getProperty(String name)
Page as a String.
name - Name of property
int getIntProperty(String name)
Page as an int.
Returns 0 if property not specified or not valid number.
name - Name of property
long getLongProperty(String name)
Page as a long.
Returns 0L if property not specified or not valid number.
name - Name of property
boolean getBooleanProperty(String name)
Page as a boolean.
Returns true if value starts with '1', 't' or 'y' (case-insensitive) -
otherwise returns false.
name - Name of property
boolean isPropertySet(String name)
Page has been set.
name - Name of property
String[] getPropertyKeys()
Page.
Map getProperties()
Map representing all the properties in the Page.
HttpServletRequest getRequest()
void setRequest(HttpServletRequest request)
getRequest()
void addProperty(String name, String value)
|
www.opensymphony.com/sitemesh/ | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||