Class VertxHttpResponse
java.lang.Object
org.jboss.resteasy.plugins.server.vertx.VertxHttpResponse
- All Implemented Interfaces:
Closeable,AutoCloseable,HttpResponse
-
Constructor Summary
ConstructorsConstructorDescriptionVertxHttpResponse(io.vertx.core.http.HttpServerResponse response, ResteasyProviderFactory providerFactory) VertxHttpResponse(io.vertx.core.http.HttpServerResponse response, ResteasyProviderFactory providerFactory, io.vertx.core.http.HttpMethod method) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewCookie(jakarta.ws.rs.core.NewCookie cookie) voidfinish()voidintbooleanvoidvoidreset()reset status and headers.voidsendError(int status) voidvoidvoidsetStatus(int status) static voidtransformHeaders(VertxHttpResponse vertxResponse, io.vertx.core.http.HttpServerResponse response, ResteasyProviderFactory factory) 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
close, getAsyncOutputStream, setSuppressExceptionDuringChunkedTransfer, suppressExceptionDuringChunkedTransfer
-
Constructor Details
-
VertxHttpResponse
public VertxHttpResponse(io.vertx.core.http.HttpServerResponse response, ResteasyProviderFactory providerFactory) -
VertxHttpResponse
public VertxHttpResponse(io.vertx.core.http.HttpServerResponse response, ResteasyProviderFactory providerFactory, io.vertx.core.http.HttpMethod method)
-
-
Method Details
-
setOutputStream
- Specified by:
setOutputStreamin interfaceHttpResponse
-
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- Throws:
IOException
-
addNewCookie
public void addNewCookie(jakarta.ws.rs.core.NewCookie cookie) - Specified by:
addNewCookiein interfaceHttpResponse
-
sendError
- Specified by:
sendErrorin interfaceHttpResponse- Throws:
IOException
-
sendError
- Specified by:
sendErrorin interfaceHttpResponse- Throws:
IOException
-
isCommitted
public boolean isCommitted()- Specified by:
isCommittedin interfaceHttpResponse
-
reset
public void reset()Description copied from interface:HttpResponsereset status and headers. Will fail if response is committed- Specified by:
resetin interfaceHttpResponse
-
transformHeaders
public static void transformHeaders(VertxHttpResponse vertxResponse, io.vertx.core.http.HttpServerResponse response, ResteasyProviderFactory factory) -
prepareChunkStream
public void prepareChunkStream() -
finish
- Throws:
IOException
-
flushBuffer
- Specified by:
flushBufferin interfaceHttpResponse- Throws:
IOException
-