Package org.jboss.resteasy.spi
Interface HttpResponse
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
HttpServletResponseWrapper,MockHttpResponse
Bridge interface between the base Resteasy JAX-RS implementation and the actual HTTP transport (i.e. a servlet container)
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewCookie(NewCookie cookie) default voidclose()voiddefault AsyncOutputStreamintbooleanvoidreset()reset status and headers.voidsendError(int status) voidvoidvoidsetStatus(int status) default voidsetSuppressExceptionDuringChunkedTransfer(boolean suppressExceptionDuringChunkedTransfer) default boolean
-
Method Details
-
getStatus
int getStatus() -
setStatus
void setStatus(int status) -
getOutputHeaders
MultivaluedMap<String,Object> getOutputHeaders() -
getOutputStream
- Throws:
IOException
-
setOutputStream
-
getAsyncOutputStream
- Throws:
IOException
-
addNewCookie
-
sendError
- Throws:
IOException
-
sendError
- Throws:
IOException
-
isCommitted
boolean isCommitted() -
reset
void reset()reset status and headers. Will fail if response is committed -
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
flushBuffer
- Throws:
IOException
-
setSuppressExceptionDuringChunkedTransfer
default void setSuppressExceptionDuringChunkedTransfer(boolean suppressExceptionDuringChunkedTransfer) -
suppressExceptionDuringChunkedTransfer
default boolean suppressExceptionDuringChunkedTransfer()
-