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 Instance Methods Concrete Methods Modifier and Type Method Description void
addNewCookie(javax.ws.rs.core.NewCookie cookie)
(package private) void
checkException()
void
finish()
void
flushBuffer()
javax.ws.rs.core.MultivaluedMap<String,Object>
getOutputHeaders()
OutputStream
getOutputStream()
int
getStatus()
boolean
isCommitted()
void
reset()
void
sendError(int status)
void
sendError(int status, String message)
void
setOutputStream(OutputStream os)
void
setStatus(int status)
void
writeBlocking(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:
setOutputStream
in interfaceorg.jboss.resteasy.spi.HttpResponse
-
getStatus
public int getStatus()
- Specified by:
getStatus
in interfaceorg.jboss.resteasy.spi.HttpResponse
-
setStatus
public void setStatus(int status)
- Specified by:
setStatus
in interfaceorg.jboss.resteasy.spi.HttpResponse
-
getOutputHeaders
public javax.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
- Specified by:
getOutputHeaders
in interfaceorg.jboss.resteasy.spi.HttpResponse
-
getOutputStream
public OutputStream getOutputStream() throws IOException
- Specified by:
getOutputStream
in interfaceorg.jboss.resteasy.spi.HttpResponse
- Throws:
IOException
-
addNewCookie
public void addNewCookie(javax.ws.rs.core.NewCookie cookie)
- Specified by:
addNewCookie
in interfaceorg.jboss.resteasy.spi.HttpResponse
-
checkException
void checkException() throws IOException
- Throws:
IOException
-
sendError
public void sendError(int status) throws IOException
- Specified by:
sendError
in interfaceorg.jboss.resteasy.spi.HttpResponse
- Throws:
IOException
-
sendError
public void sendError(int status, String message) throws IOException
- Specified by:
sendError
in interfaceorg.jboss.resteasy.spi.HttpResponse
- Throws:
IOException
-
isCommitted
public boolean isCommitted()
- Specified by:
isCommitted
in interfaceorg.jboss.resteasy.spi.HttpResponse
-
reset
public void reset()
- Specified by:
reset
in interfaceorg.jboss.resteasy.spi.HttpResponse
-
finish
public void finish() throws IOException
- Throws:
IOException
-
flushBuffer
public void flushBuffer() throws IOException
- Specified by:
flushBuffer
in 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)
-
-