org.jboss.resteasy.plugins.server.servlet
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/flush/close happens
|
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) |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getOutputHeaders() |
OutputStream |
getOutputStream() |
int |
getStatus() |
boolean |
isCommitted() |
void |
reset() |
void |
sendError(int status) |
void |
sendError(int status,
String message) |
void |
setStatus(int status) |
public HttpServletResponseWrapper(javax.servlet.http.HttpServletResponse response, ResteasyProviderFactory factory)
public int getStatus()
getStatus
in interface HttpResponse
public void setStatus(int status)
setStatus
in interface HttpResponse
public javax.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders
in interface HttpResponse
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface HttpResponse
IOException
public void addNewCookie(javax.ws.rs.core.NewCookie cookie)
addNewCookie
in interface HttpResponse
public void sendError(int status) throws IOException
sendError
in interface HttpResponse
IOException
public void sendError(int status, String message) throws IOException
sendError
in interface HttpResponse
IOException
public boolean isCommitted()
isCommitted
in interface HttpResponse
public void reset()
reset
in interface HttpResponse
Copyright © 2015. All Rights Reserved.