Class VertxHttpResponse
- java.lang.Object
-
- io.quarkus.resteasy.runtime.standalone.VertxHttpResponse
-
- All Implemented Interfaces:
Closeable,AutoCloseable,org.jboss.resteasy.spi.HttpResponse
public class VertxHttpResponse extends Object implements org.jboss.resteasy.spi.HttpResponse
-
-
Constructor Summary
Constructors Constructor Description VertxHttpResponse(io.vertx.core.http.HttpServerRequest request, org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory, io.vertx.core.http.HttpMethod method, BufferAllocator allocator, VertxOutput output, io.vertx.ext.web.RoutingContext routingContext)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddNewCookie(javax.ws.rs.core.NewCookie cookie)(package private) voidcheckException()voidfinish()voidflushBuffer()javax.ws.rs.core.MultivaluedMap<String,Object>getOutputHeaders()OutputStreamgetOutputStream()intgetStatus()booleanisCommitted()voidreset()voidsendError(int status)voidsendError(int status, String message)voidsetOutputStream(OutputStream os)voidsetStatus(int status)static voidtransformHeaders(VertxHttpResponse vertxResponse, io.vertx.core.http.HttpServerResponse response, org.jboss.resteasy.spi.ResteasyProviderFactory factory)voidwriteBlocking(io.netty.buffer.ByteBuf buffer, boolean finished)CompletionStage<Void>writeNonBlocking(io.netty.buffer.ByteBuf buffer, boolean finished)
-
-
-
Constructor Detail
-
VertxHttpResponse
public VertxHttpResponse(io.vertx.core.http.HttpServerRequest request, org.jboss.resteasy.spi.ResteasyProviderFactory providerFactory, io.vertx.core.http.HttpMethod method, BufferAllocator allocator, VertxOutput output, io.vertx.ext.web.RoutingContext routingContext)
-
-
Method Detail
-
setOutputStream
public void setOutputStream(OutputStream os)
- Specified by:
setOutputStreamin interfaceorg.jboss.resteasy.spi.HttpResponse
-
getStatus
public int getStatus()
- Specified by:
getStatusin interfaceorg.jboss.resteasy.spi.HttpResponse
-
setStatus
public void setStatus(int status)
- Specified by:
setStatusin interfaceorg.jboss.resteasy.spi.HttpResponse
-
getOutputHeaders
public javax.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
- Specified by:
getOutputHeadersin interfaceorg.jboss.resteasy.spi.HttpResponse
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStreamin interfaceorg.jboss.resteasy.spi.HttpResponse- Throws:
IOException
-
addNewCookie
public void addNewCookie(javax.ws.rs.core.NewCookie cookie)
- Specified by:
addNewCookiein interfaceorg.jboss.resteasy.spi.HttpResponse
-
checkException
void checkException() throws IOException- Throws:
IOException
-
sendError
public void sendError(int status) throws IOException- Specified by:
sendErrorin interfaceorg.jboss.resteasy.spi.HttpResponse- Throws:
IOException
-
sendError
public void sendError(int status, String message) throws IOException- Specified by:
sendErrorin interfaceorg.jboss.resteasy.spi.HttpResponse- Throws:
IOException
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommittedin interfaceorg.jboss.resteasy.spi.HttpResponse
-
reset
public void reset()
- Specified by:
resetin interfaceorg.jboss.resteasy.spi.HttpResponse
-
transformHeaders
public static void transformHeaders(VertxHttpResponse vertxResponse, io.vertx.core.http.HttpServerResponse response, org.jboss.resteasy.spi.ResteasyProviderFactory factory)
-
finish
public void finish() throws IOException- Throws:
IOException
-
flushBuffer
public void flushBuffer() throws IOException- Specified by:
flushBufferin interfaceorg.jboss.resteasy.spi.HttpResponse- Throws:
IOException
-
writeBlocking
public void writeBlocking(io.netty.buffer.ByteBuf buffer, boolean finished) throws IOException- Throws:
IOException
-
writeNonBlocking
public CompletionStage<Void> writeNonBlocking(io.netty.buffer.ByteBuf buffer, boolean finished)
-
-