public class GrailsPageResponseWrapper extends HttpServletResponseWrapper
| Fields inherited from class | Fields |
|---|---|
class HttpServletResponseWrapper |
SC_CONTINUE, SC_SWITCHING_PROTOCOLS, SC_OK, SC_CREATED, SC_ACCEPTED, SC_NON_AUTHORITATIVE_INFORMATION, SC_NO_CONTENT, SC_RESET_CONTENT, SC_PARTIAL_CONTENT, SC_MULTIPLE_CHOICES, SC_MOVED_PERMANENTLY, SC_MOVED_TEMPORARILY, SC_FOUND, SC_SEE_OTHER, SC_NOT_MODIFIED, SC_USE_PROXY, SC_TEMPORARY_REDIRECT, SC_PERMANENT_REDIRECT, SC_BAD_REQUEST, SC_UNAUTHORIZED, SC_PAYMENT_REQUIRED, SC_FORBIDDEN, SC_NOT_FOUND, SC_METHOD_NOT_ALLOWED, SC_NOT_ACCEPTABLE, SC_PROXY_AUTHENTICATION_REQUIRED, SC_REQUEST_TIMEOUT, SC_CONFLICT, SC_GONE, SC_LENGTH_REQUIRED, SC_PRECONDITION_FAILED, SC_REQUEST_ENTITY_TOO_LARGE, SC_REQUEST_URI_TOO_LONG, SC_UNSUPPORTED_MEDIA_TYPE, SC_REQUESTED_RANGE_NOT_SATISFIABLE, SC_EXPECTATION_FAILED, SC_MISDIRECTED_REQUEST, SC_UNPROCESSABLE_CONTENT, SC_UPGRADE_REQUIRED, SC_INTERNAL_SERVER_ERROR, SC_NOT_IMPLEMENTED, SC_BAD_GATEWAY, SC_SERVICE_UNAVAILABLE, SC_GATEWAY_TIMEOUT, SC_HTTP_VERSION_NOT_SUPPORTED |
| Constructor and description |
|---|
GrailsPageResponseWrapper(HttpServletRequest request, HttpServletResponse response, com.opensymphony.module.sitemesh.PageParserSelector parserSelector) |
| Type Params | Return Type | Name and description |
|---|---|---|
|
public java.io.PrintWriter |
activateDestination() |
|
public java.io.PrintWriter |
activateDestination() |
|
public java.io.PrintWriter |
activateDestination() |
|
public void |
activateGrailsLayout(java.lang.String contentType, java.lang.String encoding) |
|
public void |
addHeader(java.lang.String name, java.lang.String value)Prevent content-length being set if page is parseable. |
|
protected void |
applyContentType(java.lang.String type) |
|
protected void |
clearBuffer() |
|
public ServletOutputStream |
create() |
|
public ServletOutputStream |
create() |
|
public ServletOutputStream |
create() |
|
public void |
deactivateGrailsLayout() |
|
public void |
flushBuffer()Prevent buffer from being flushed if this is a page being parsed. |
|
public char[] |
getContents() |
|
public ServletOutputStream |
getOutputStream() |
|
public com.opensymphony.module.sitemesh.Page |
getPage() |
|
public java.io.PrintWriter |
getWriter() |
|
public boolean |
isGrailsLayoutActive() |
|
public boolean |
isGspGrailsLayoutActive() |
|
public boolean |
isUsingStream() |
|
public void |
sendError(int sc) |
|
public void |
sendError(int sc, java.lang.String msg) |
|
public void |
sendRedirect(java.lang.String location) |
|
public void |
setContentLength(int contentLength)Prevent content-length being set if page is parseable. |
|
public 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. |
|
public void |
setHeader(java.lang.String name, java.lang.String value)Prevent content-length being set if page is parseable. |
|
public 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 | Name |
|---|---|
class HttpServletResponseWrapper |
addCookie, addDateHeader, addHeader, addIntHeader, containsHeader, encodeRedirectURL, encodeURL, equals, flushBuffer, getBufferSize, getCharacterEncoding, getClass, getContentType, getHeader, getHeaderNames, getHeaders, getLocale, getOutputStream, getResponse, getStatus, getTrailerFields, getWriter, hashCode, isCommitted, isWrapperFor, isWrapperFor, notify, notifyAll, reset, resetBuffer, sendError, sendError, sendRedirect, sendRedirect, sendRedirect, sendRedirect, setBufferSize, setCharacterEncoding, setCharacterEncoding, setContentLength, setContentLengthLong, setContentType, setDateHeader, setHeader, setIntHeader, setLocale, setResponse, setStatus, setTrailerFields, toString, wait, wait, wait |
Prevent content-length being set if page is parseable.
Prevent buffer from being flushed if this is a page being parsed.
Prevent content-length being set if page is parseable.
Set the content-type of the request and store it so it can be passed to the com.opensymphony.module.sitemesh.PageParser.
Prevent content-length being set if page is parseable.
If 'not modified' (304) HTTP status is being sent - then abort parsing, as there shouldn't be any body