Class ReactorNettyHttpResponse
java.lang.Object
org.jboss.resteasy.plugins.server.reactor.netty.ReactorNettyHttpResponse
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpResponse
This is the 1-way bridge from RestEasy to reactor-netty's
HttpServerResponse. Headers come via direct call. RestEasy will write the
response body to the output stream it gets from getOutputStream().-
Constructor Summary
ConstructorsConstructorDescriptionReactorNettyHttpResponse(io.netty.handler.codec.http.HttpMethod method, reactor.netty.http.server.HttpServerResponse resp, reactor.core.publisher.Sinks.Empty<Void> completionSink) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewCookie(jakarta.ws.rs.core.NewCookie cookie) voidclose()voidintbooleanvoidreset()voidsendError(int status) voidvoidvoidsetStatus(int status) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.jboss.resteasy.spi.HttpResponse
getAsyncOutputStream, setSuppressExceptionDuringChunkedTransfer, suppressExceptionDuringChunkedTransfer
-
Constructor Details
-
ReactorNettyHttpResponse
public ReactorNettyHttpResponse(io.netty.handler.codec.http.HttpMethod method, reactor.netty.http.server.HttpServerResponse resp, reactor.core.publisher.Sinks.Empty<Void> completionSink)
-
-
Method Details
-
getStatus
public int getStatus()- Specified by:
getStatusin interfaceHttpResponse
-
setStatus
public void setStatus(int status) - Specified by:
setStatusin interfaceHttpResponse
-
getOutputHeaders
- Specified by:
getOutputHeadersin interfaceHttpResponse
-
getOutputStream
- Specified by:
getOutputStreamin interfaceHttpResponse
-
setOutputStream
- Specified by:
setOutputStreamin interfaceHttpResponse
-
addNewCookie
public void addNewCookie(jakarta.ws.rs.core.NewCookie cookie) - Specified by:
addNewCookiein interfaceHttpResponse
-
sendError
public void sendError(int status) - Specified by:
sendErrorin interfaceHttpResponse
-
sendError
- Specified by:
sendErrorin interfaceHttpResponse
-
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin interfaceHttpResponse
-
reset
public void reset()- Specified by:
resetin interfaceHttpResponse
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Specified by:
closein interfaceHttpResponse- Throws:
IOException
-
flushBuffer
- Specified by:
flushBufferin interfaceHttpResponse- Throws:
IOException
-