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 TypeMethodDescriptionvoid
addNewCookie
(jakarta.ws.rs.core.NewCookie cookie) default void
close()
void
default AsyncOutputStream
int
boolean
void
reset()
reset status and headers.void
sendError
(int status) void
void
void
setStatus
(int status) default void
setSuppressExceptionDuringChunkedTransfer
(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:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
- Throws:
IOException
-
flushBuffer
- Throws:
IOException
-
setSuppressExceptionDuringChunkedTransfer
default void setSuppressExceptionDuringChunkedTransfer(boolean suppressExceptionDuringChunkedTransfer) -
suppressExceptionDuringChunkedTransfer
default boolean suppressExceptionDuringChunkedTransfer()
-