public class GSPSitemeshPage
extends com.opensymphony.module.sitemesh.parser.AbstractHTMLPage
implements com.opensymphony.sitemesh.Content
SitemeshPreprocessor| Constructor and Description |
|---|
GSPSitemeshPage() |
GSPSitemeshPage(boolean renderingLayout) |
| Modifier and Type | Method and Description |
|---|---|
void |
addProperty(java.lang.String name,
java.lang.Object value) |
void |
addProperty(java.lang.String name,
java.lang.String value) |
static com.opensymphony.module.sitemesh.HTMLPage |
content2htmlPage(com.opensymphony.sitemesh.Content content) |
java.lang.String |
getBody() |
java.lang.Object |
getContentBuffer(java.lang.String name) |
java.lang.String |
getHead() |
java.lang.String |
getPage() |
StreamCharBuffer |
getTitleBuffer() |
boolean |
isTitleCaptured() |
boolean |
isUsed() |
int |
originalLength() |
void |
setBodyBuffer(StreamCharBuffer bodyBuffer) |
void |
setContentBuffer(java.lang.String tagName,
StreamCharBuffer buffer) |
void |
setHeadBuffer(StreamCharBuffer headBuffer) |
void |
setPageBuffer(StreamCharBuffer pageBuffer) |
void |
setTitleBuffer(StreamCharBuffer titleBuffer) |
void |
setTitleCaptured(boolean titleCaptured) |
void |
setUsed(boolean used) |
void |
writeBody(java.io.Writer out) |
void |
writeHead(java.io.Writer out) |
void |
writeOriginal(java.io.Writer writer) |
void |
writePage(java.io.Writer out) |
isFrameSet, setFrameSetgetBooleanProperty, getContentLength, getIntProperty, getLongProperty, getProperties, getProperty, getPropertyKeys, getRequest, getTitle, isPropertySet, noNull, setRequestclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic GSPSitemeshPage()
public GSPSitemeshPage(boolean renderingLayout)
public void addProperty(java.lang.String name,
java.lang.Object value)
public void addProperty(java.lang.String name,
java.lang.String value)
addProperty in interface com.opensymphony.module.sitemesh.PageaddProperty in interface com.opensymphony.sitemesh.ContentaddProperty in class com.opensymphony.module.sitemesh.parser.AbstractPagepublic void writeHead(java.io.Writer out)
throws java.io.IOException
writeHead in interface com.opensymphony.module.sitemesh.HTMLPagewriteHead in interface com.opensymphony.sitemesh.ContentwriteHead in class com.opensymphony.module.sitemesh.parser.AbstractHTMLPagejava.io.IOExceptionpublic void writeBody(java.io.Writer out)
throws java.io.IOException
writeBody in interface com.opensymphony.module.sitemesh.PagewriteBody in interface com.opensymphony.sitemesh.ContentwriteBody in class com.opensymphony.module.sitemesh.parser.AbstractPagejava.io.IOExceptionpublic void writePage(java.io.Writer out)
throws java.io.IOException
writePage in interface com.opensymphony.module.sitemesh.PagewritePage in class com.opensymphony.module.sitemesh.parser.AbstractPagejava.io.IOExceptionpublic java.lang.String getHead()
getHead in interface com.opensymphony.module.sitemesh.HTMLPagepublic java.lang.String getBody()
getBody in interface com.opensymphony.module.sitemesh.PagegetBody in class com.opensymphony.module.sitemesh.parser.AbstractPagepublic java.lang.String getPage()
getPage in interface com.opensymphony.module.sitemesh.PagegetPage in class com.opensymphony.module.sitemesh.parser.AbstractPagepublic int originalLength()
originalLength in interface com.opensymphony.sitemesh.Contentpublic void writeOriginal(java.io.Writer writer)
throws java.io.IOException
writeOriginal in interface com.opensymphony.sitemesh.Contentjava.io.IOExceptionpublic void setHeadBuffer(StreamCharBuffer headBuffer)
public void setBodyBuffer(StreamCharBuffer bodyBuffer)
public void setPageBuffer(StreamCharBuffer pageBuffer)
public void setTitleBuffer(StreamCharBuffer titleBuffer)
public StreamCharBuffer getTitleBuffer()
public boolean isUsed()
public void setUsed(boolean used)
public void setContentBuffer(java.lang.String tagName,
StreamCharBuffer buffer)
tagName - "tagName" name of buffer (without "page." prefix)buffer - public java.lang.Object getContentBuffer(java.lang.String name)
name - propertyName of contentBuffer (with "page." prefix)public static com.opensymphony.module.sitemesh.HTMLPage content2htmlPage(com.opensymphony.sitemesh.Content content)
public boolean isTitleCaptured()
public void setTitleCaptured(boolean titleCaptured)