Package org.jboss.resteasy.spi
Interface HttpResponse
- All Superinterfaces:
AutoCloseable,Closeable
- All Known Implementing Classes:
HttpServerResponse,HttpServletResponseWrapper,MockHttpResponse,NettyHttpResponse,ReactorNettyHttpResponse,VertxHttpResponse
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(jakarta.ws.rs.core.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
-
getOutputStream
- Throws:
IOException
-
setOutputStream
-
getAsyncOutputStream
- Throws:
IOException
-
addNewCookie
void addNewCookie(jakarta.ws.rs.core.NewCookie cookie) -
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()
-