Java javax.servlet.http HttpServletResponseWrapper fields, constructors, methods, implement or subclass

Example usage for Java javax.servlet.http HttpServletResponseWrapper fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.servlet.http HttpServletResponseWrapper.

The text is from its open source code.

Subclass

javax.servlet.http.HttpServletResponseWrapper has subclasses.
Click this link to see all its subclasses.

Constructor

HttpServletResponseWrapper(HttpServletResponse response)
Constructs a response adaptor wrapping the given response.

Method

voidaddCookie(Cookie cookie)
The default behavior of this method is to call addCookie(Cookie cookie) on the wrapped response object.
voidaddHeader(String name, String value)
The default behavior of this method is to return addHeader(String name, String value) on the wrapped response object.
ServletResponsegetResponse()
Return the wrapped ServletResponse object.
PrintWritergetWriter()
The default behavior of this method is to return getWriter() on the wrapped response object.
voidsetResponse(ServletResponse response)
Sets the response being wrapped.
voidsetStatus(int sc)
The default behavior of this method is to call setStatus(int sc) on the wrapped response object.
StringtoString()
Returns a string representation of the object.