|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.http.HttpServletResponseWrapper org.codehaus.groovy.grails.web.sitemesh.GrailsPageResponseWrapper
public class GrailsPageResponseWrapper extends HttpServletResponseWrapper
Constructor Summary | |
GrailsPageResponseWrapper(HttpServletRequest request, HttpServletResponse response, PageParserSelector parserSelector)
|
Method Summary | |
---|---|
void
|
activateSiteMesh(java.lang.String contentType, java.lang.String encoding)
|
void
|
addHeader(java.lang.String name, java.lang.String value)
Prevent content-length being set if page is parseable. |
void
|
flushBuffer()
Prevent buffer from being flushed if this is a page being parsed. |
char[]
|
getContents()
|
ServletOutputStream
|
getOutputStream()
|
Page
|
getPage()
|
java.io.PrintWriter
|
getWriter()
|
boolean
|
isGspSitemeshActive()
|
boolean
|
isSitemeshActive()
|
boolean
|
isUsingStream()
|
void
|
sendError(int sc)
|
void
|
sendError(int sc, java.lang.String msg)
|
void
|
sendRedirect(java.lang.String location)
|
void
|
setContentLength(int contentLength)
Prevent content-length being set if page is parseable. |
void
|
setContentType(java.lang.String type)
Set the content-type of the request and store it so it can be passed to the com.opensymphony.module.sitemesh.PageParser. |
void
|
setHeader(java.lang.String name, java.lang.String value)
Prevent content-length being set if page is parseable. |
void
|
setStatus(int sc)
If 'not modified' (304) HTTP status is being sent - then abort parsing, as there shouldn't be any body |
Constructor Detail |
---|
public GrailsPageResponseWrapper(HttpServletRequest request, HttpServletResponse response, PageParserSelector parserSelector)
Method Detail |
---|
public void activateSiteMesh(java.lang.String contentType, java.lang.String encoding)
@Override public void addHeader(java.lang.String name, java.lang.String value)
@Override public void flushBuffer()
public char[] getContents()
@Override public ServletOutputStream getOutputStream()
public Page getPage()
@Override public java.io.PrintWriter getWriter()
public boolean isGspSitemeshActive()
public boolean isSitemeshActive()
public boolean isUsingStream()
@Override public void sendError(int sc)
@Override public void sendError(int sc, java.lang.String msg)
@Override public void sendRedirect(java.lang.String location)
@Override public void setContentLength(int contentLength)
@Override public void setContentType(java.lang.String type)
@Override public void setHeader(java.lang.String name, java.lang.String value)
@Override public void setStatus(int sc)
Groovy Documentation