Class HttpServletResponseWrapper
java.lang.Object
org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper
- All Implemented Interfaces:
HttpResponse
- Version:
- $Revision: 1 $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected class
RESTEASY-684 wants to defer access to outputstream until a write/flush/close happens -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected ResteasyProviderFactory
protected OutputStream
protected javax.servlet.http.HttpServletResponse
protected int
-
Constructor Summary
ConstructorsConstructorDescriptionHttpServletResponseWrapper
(javax.servlet.http.HttpServletResponse response, ResteasyProviderFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewCookie
(javax.ws.rs.core.NewCookie cookie) int
boolean
void
reset()
reset status and headers.void
sendError
(int status) void
void
void
setStatus
(int status)
-
Field Details
-
response
protected javax.servlet.http.HttpServletResponse response -
status
protected int status -
outputHeaders
-
factory
-
outputStream
-
-
Constructor Details
-
HttpServletResponseWrapper
public HttpServletResponseWrapper(javax.servlet.http.HttpServletResponse response, ResteasyProviderFactory factory)
-
-
Method Details
-
getStatus
public int getStatus()- Specified by:
getStatus
in interfaceHttpResponse
-
setStatus
public void setStatus(int status) - Specified by:
setStatus
in interfaceHttpResponse
-
getOutputHeaders
- Specified by:
getOutputHeaders
in interfaceHttpResponse
-
getOutputStream
- Specified by:
getOutputStream
in interfaceHttpResponse
- Throws:
IOException
-
setOutputStream
- Specified by:
setOutputStream
in interfaceHttpResponse
-
addNewCookie
public void addNewCookie(javax.ws.rs.core.NewCookie cookie) - Specified by:
addNewCookie
in interfaceHttpResponse
-
sendError
- Specified by:
sendError
in interfaceHttpResponse
- Throws:
IOException
-
sendError
- Specified by:
sendError
in interfaceHttpResponse
- Throws:
IOException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommitted
in interfaceHttpResponse
-
reset
public void reset()Description copied from interface:HttpResponse
reset status and headers. Will fail if response is committed- Specified by:
reset
in interfaceHttpResponse
-