Provides a convenient implementation of the ServletResponse interface that
can be subclassed by developers wishing to adapt the response from a Servlet.
This class implements the Wrapper or Decorator pattern. Methods default to
calling through to the wrapped response object.
Method from javax.servlet.ServletResponseWrapper Detail: |
public void flushBuffer() throws IOException {
this.response.flushBuffer();
}
The default behavior of this method is to call flushBuffer()
on the wrapped response object. |
public int getBufferSize() {
return this.response.getBufferSize();
}
The default behavior of this method is to return getBufferSize()
on the wrapped response object. |
public String getCharacterEncoding() {
return this.response.getCharacterEncoding();
}
The default behavior of this method is to return getCharacterEncoding()
on the wrapped response object. |
public String getContentType() {
return this.response.getContentType();
}
The default behavior of this method is to return getContentType()
on the wrapped response object. |
public Locale getLocale() {
return this.response.getLocale();
}
The default behavior of this method is to return getLocale()
on the wrapped response object. |
public ServletOutputStream getOutputStream() throws IOException {
return this.response.getOutputStream();
}
The default behavior of this method is to return getOutputStream()
on the wrapped response object. |
public ServletResponse getResponse() {
return this.response;
}
Return the wrapped ServletResponse object. |
public PrintWriter getWriter() throws IOException {
return this.response.getWriter();
}
The default behavior of this method is to return getWriter()
on the wrapped response object. |
public boolean isCommitted() {
return this.response.isCommitted();
}
The default behavior of this method is to return isCommitted()
on the wrapped response object. |
public void reset() {
this.response.reset();
}
The default behavior of this method is to call reset()
on the wrapped response object. |
public void resetBuffer() {
this.response.resetBuffer();
}
The default behavior of this method is to call resetBuffer()
on the wrapped response object. |
public void setBufferSize(int size) {
this.response.setBufferSize(size);
}
The default behavior of this method is to call setBufferSize(int size)
on the wrapped response object. |
public void setCharacterEncoding(String charset) {
this.response.setCharacterEncoding(charset);
}
The default behavior of this method is to call setCharacterEncoding(String charset)
on the wrapped response object. |
public void setContentLength(int len) {
this.response.setContentLength(len);
}
The default behavior of this method is to call setContentLength(int len)
on the wrapped response object. |
public void setContentType(String type) {
this.response.setContentType(type);
}
The default behavior of this method is to call setContentType(String type)
on the wrapped response object. |
public void setLocale(Locale loc) {
this.response.setLocale(loc);
}
The default behavior of this method is to call setLocale(Locale loc)
on the wrapped response object. |
public void setResponse(ServletResponse response) {
if (response == null) {
throw new IllegalArgumentException("Response cannot be null");
}
this.response = response;
}
Sets the response being wrapped. |