Class HttpServletResponseWrapper
java.lang.Object
org.jboss.resteasy.plugins.server.servlet.HttpServletResponseWrapper
- All Implemented Interfaces:
Closeable
,AutoCloseable
,HttpResponse
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Nested Class Summary
Modifier and TypeClassDescriptionclass
protected class
RESTEASY-684 wants to defer access to outputstream until a write happensclass
class
-
Field Summary
Modifier and TypeFieldDescriptionprotected final ResteasyProviderFactory
protected final jakarta.servlet.http.HttpServletRequest
protected final jakarta.servlet.http.HttpServletResponse
protected int
protected boolean
-
Constructor Summary
ConstructorDescriptionHttpServletResponseWrapper
(jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpServletRequest request, ResteasyProviderFactory factory) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewCookie
(jakarta.ws.rs.core.NewCookie cookie) void
int
boolean
void
reset()
reset status and headers.void
sendError
(int status) void
void
void
setStatus
(int status) void
setSuppressExceptionDuringChunkedTransfer
(boolean suppressExceptionDuringChunkedTransfer) boolean
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.resteasy.spi.HttpResponse
close, getAsyncOutputStream
-
Field Details
-
response
protected final jakarta.servlet.http.HttpServletResponse response -
status
protected int status -
outputHeaders
-
factory
-
suppressExceptionDuringChunkedTransfer
protected volatile boolean suppressExceptionDuringChunkedTransfer -
request
protected final jakarta.servlet.http.HttpServletRequest request -
contextDataMap
-
-
Constructor Details
-
HttpServletResponseWrapper
public HttpServletResponseWrapper(jakarta.servlet.http.HttpServletResponse response, jakarta.servlet.http.HttpServletRequest request, ResteasyProviderFactory factory)
-
-
Method Details
-
setSuppressExceptionDuringChunkedTransfer
public void setSuppressExceptionDuringChunkedTransfer(boolean suppressExceptionDuringChunkedTransfer) - Specified by:
setSuppressExceptionDuringChunkedTransfer
in interfaceHttpResponse
-
suppressExceptionDuringChunkedTransfer
public boolean suppressExceptionDuringChunkedTransfer()- Specified by:
suppressExceptionDuringChunkedTransfer
in interfaceHttpResponse
-
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(jakarta.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
-
flushBuffer
- Specified by:
flushBuffer
in interfaceHttpResponse
- Throws:
IOException
-