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
|
Modifier and Type | Field and Description |
---|---|
protected ResteasyProviderFactory |
factory |
protected MultivaluedMap<String,Object> |
outputHeaders |
protected OutputStream |
outputStream |
protected HttpServletResponse |
response |
protected int |
status |
Constructor and Description |
---|
HttpServletResponseWrapper(HttpServletResponse response,
ResteasyProviderFactory factory) |
Modifier and Type | Method and Description |
---|---|
void |
addNewCookie(NewCookie cookie) |
void |
flushBuffer() |
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) |
protected HttpServletResponse response
protected int status
protected MultivaluedMap<String,Object> outputHeaders
protected ResteasyProviderFactory factory
protected OutputStream outputStream
public HttpServletResponseWrapper(HttpServletResponse response, ResteasyProviderFactory factory)
public int getStatus()
getStatus
in interface HttpResponse
public void setStatus(int status)
setStatus
in interface HttpResponse
public MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders
in interface HttpResponse
public OutputStream getOutputStream() throws IOException
getOutputStream
in interface HttpResponse
IOException
public void setOutputStream(OutputStream os)
setOutputStream
in interface HttpResponse
public void addNewCookie(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()
HttpResponse
reset
in interface HttpResponse
public void flushBuffer() throws IOException
flushBuffer
in interface HttpResponse
IOException
Copyright © 2021 JBoss by Red Hat. All rights reserved.