public class HttpServletResponseWrapper extends Object implements HttpResponse
| Modifier and Type | Class and Description |
|---|---|
protected class |
HttpServletResponseWrapper.DeferredOutputStream
RESTEASY-684 wants to defer access to outputstream until a write happens
|
| Modifier and Type | Field and Description |
|---|---|
protected ResteasyProviderFactory |
factory |
protected javax.ws.rs.core.MultivaluedMap<String,Object> |
outputHeaders |
protected OutputStream |
outputStream |
protected javax.servlet.http.HttpServletResponse |
response |
protected int |
status |
| Constructor and Description |
|---|
HttpServletResponseWrapper(javax.servlet.http.HttpServletResponse response,
ResteasyProviderFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewCookie(javax.ws.rs.core.NewCookie cookie) |
void |
flushBuffer() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getOutputHeaders() |
OutputStream |
getOutputStream() |
int |
getStatus() |
boolean |
isCommitted() |
void |
reset()
reset status and headers.
|
void |
sendError(int status) |
void |
sendError(int status,
String message) |
void |
setOutputStream(OutputStream os) |
void |
setStatus(int status) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcloseprotected javax.servlet.http.HttpServletResponse response
protected int status
protected ResteasyProviderFactory factory
protected OutputStream outputStream
public HttpServletResponseWrapper(javax.servlet.http.HttpServletResponse response,
ResteasyProviderFactory factory)
public int getStatus()
getStatus in interface HttpResponsepublic void setStatus(int status)
setStatus in interface HttpResponsepublic javax.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders in interface HttpResponsepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface HttpResponseIOExceptionpublic void setOutputStream(OutputStream os)
setOutputStream in interface HttpResponsepublic void addNewCookie(javax.ws.rs.core.NewCookie cookie)
addNewCookie in interface HttpResponsepublic void sendError(int status)
throws IOException
sendError in interface HttpResponseIOExceptionpublic void sendError(int status,
String message)
throws IOException
sendError in interface HttpResponseIOExceptionpublic boolean isCommitted()
isCommitted in interface HttpResponsepublic void reset()
HttpResponsereset in interface HttpResponsepublic void flushBuffer()
throws IOException
flushBuffer in interface HttpResponseIOExceptionCopyright © 2019 JBoss by Red Hat. All rights reserved.