|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.servlet.ServletResponseWrapper javax.servlet.http.HttpServletResponseWrapper org.codehaus.groovy.grails.web.sitemesh.GrailsPageResponseWrapper
public class GrailsPageResponseWrapper
Field Summary |
---|
Constructor Summary | |
---|---|
GrailsPageResponseWrapper(HttpServletRequest request,
HttpServletResponse response,
com.opensymphony.module.sitemesh.PageParserSelector parserSelector)
|
Method Summary | |
---|---|
void |
activateSiteMesh(String contentType,
String encoding)
|
void |
addHeader(String name,
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()
|
com.opensymphony.module.sitemesh.Page |
getPage()
|
PrintWriter |
getWriter()
|
boolean |
isGspSitemeshActive()
|
boolean |
isSitemeshActive()
|
boolean |
isUsingStream()
|
void |
sendError(int sc)
|
void |
sendError(int sc,
String msg)
|
void |
sendRedirect(String location)
|
void |
setContentLength(int contentLength)
Prevent content-length being set if page is parseable. |
void |
setContentType(String type)
Set the content-type of the request and store it so it can be passed to the PageParser . |
void |
setHeader(String name,
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 |
Methods inherited from class javax.servlet.http.HttpServletResponseWrapper |
---|
addCookie, addDateHeader, addIntHeader, containsHeader, encodeRedirectUrl, encodeRedirectURL, encodeUrl, encodeURL, setDateHeader, setIntHeader, setStatus |
Methods inherited from class javax.servlet.ServletResponseWrapper |
---|
getBufferSize, getCharacterEncoding, getContentType, getLocale, getResponse, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setLocale, setResponse |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface javax.servlet.ServletResponse |
---|
getBufferSize, getCharacterEncoding, getContentType, getLocale, isCommitted, reset, resetBuffer, setBufferSize, setCharacterEncoding, setLocale |
Constructor Detail |
---|
public GrailsPageResponseWrapper(HttpServletRequest request, HttpServletResponse response, com.opensymphony.module.sitemesh.PageParserSelector parserSelector)
Method Detail |
---|
public void sendError(int sc) throws IOException
sendError
in interface HttpServletResponse
sendError
in class HttpServletResponseWrapper
IOException
public void sendError(int sc, String msg) throws IOException
sendError
in interface HttpServletResponse
sendError
in class HttpServletResponseWrapper
IOException
public void setContentType(String type)
PageParser
.
setContentType
in interface ServletResponse
setContentType
in class ServletResponseWrapper
public void activateSiteMesh(String contentType, String encoding)
public void setContentLength(int contentLength)
setContentLength
in interface ServletResponse
setContentLength
in class ServletResponseWrapper
public void flushBuffer() throws IOException
flushBuffer
in interface ServletResponse
flushBuffer
in class ServletResponseWrapper
IOException
public void setHeader(String name, String value)
setHeader
in interface HttpServletResponse
setHeader
in class HttpServletResponseWrapper
public void addHeader(String name, String value)
addHeader
in interface HttpServletResponse
addHeader
in class HttpServletResponseWrapper
public void setStatus(int sc)
setStatus
in interface HttpServletResponse
setStatus
in class HttpServletResponseWrapper
public ServletOutputStream getOutputStream()
getOutputStream
in interface ServletResponse
getOutputStream
in class ServletResponseWrapper
public PrintWriter getWriter()
getWriter
in interface ServletResponse
getWriter
in class ServletResponseWrapper
public com.opensymphony.module.sitemesh.Page getPage() throws IOException
IOException
public void sendRedirect(String location) throws IOException
sendRedirect
in interface HttpServletResponse
sendRedirect
in class HttpServletResponseWrapper
IOException
public boolean isUsingStream()
public char[] getContents() throws IOException
IOException
public boolean isSitemeshActive()
public boolean isGspSitemeshActive()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |