public class GrailsPageResponseWrapper extends HttpServletResponseWrapper
| Constructor and description |
|---|
GrailsPageResponseWrapper(HttpServletRequest request, HttpServletResponse response, 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 Page |
getPage() |
|
public java.io.PrintWriter |
getWriter() |
|
public boolean |
isGrailsLayoutActive() |
|
public boolean |
isGspGrailsLayoutActive() |
|
public boolean |
isUsingStream() |
|
public void |
reset()Prevent reset() from clearing the content type and buffer activation state
while we are actively buffering content for layout decoration. |
|
public void |
resetBuffer()Prevent the underlying response buffer from being cleared while we are buffering content for layout decoration. |
|
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 |
Prevent content-length being set if page is parseable.
Prevent buffer from being flushed if this is a page being parsed.
Prevent reset() from clearing the content type and buffer activation state
while we are actively buffering content for layout decoration. Tomcat 11 may call
reset() during forward dispatch processing.
Prevent the underlying response buffer from being cleared while we are buffering content for layout decoration. Our content is captured in GrailsBuffer, not in the servlet container's response buffer, so the container's resetBuffer() call during forward dispatch should not affect our captured content.
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