public class VertxHttpResponse extends Object implements org.jboss.resteasy.spi.HttpResponse
| Modifier and Type | Field and Description |
|---|---|
(package private) io.vertx.core.http.HttpServerRequest |
request |
(package private) io.vertx.core.http.HttpServerResponse |
response |
| Constructor and 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) |
| Modifier and Type | Method and 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) |
static void |
transformHeaders(VertxHttpResponse vertxResponse,
io.vertx.core.http.HttpServerResponse response,
org.jboss.resteasy.spi.ResteasyProviderFactory factory) |
void |
writeBlocking(io.netty.buffer.ByteBuf buffer,
boolean finished) |
CompletionStage<Void> |
writeNonBlocking(io.netty.buffer.ByteBuf buffer,
boolean finished) |
final io.vertx.core.http.HttpServerRequest request
final io.vertx.core.http.HttpServerResponse response
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)
public void setOutputStream(OutputStream os)
setOutputStream in interface org.jboss.resteasy.spi.HttpResponsepublic int getStatus()
getStatus in interface org.jboss.resteasy.spi.HttpResponsepublic void setStatus(int status)
setStatus in interface org.jboss.resteasy.spi.HttpResponsepublic javax.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders in interface org.jboss.resteasy.spi.HttpResponsepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface org.jboss.resteasy.spi.HttpResponseIOExceptionpublic void addNewCookie(javax.ws.rs.core.NewCookie cookie)
addNewCookie in interface org.jboss.resteasy.spi.HttpResponsevoid checkException()
throws IOException
IOExceptionpublic void sendError(int status)
throws IOException
sendError in interface org.jboss.resteasy.spi.HttpResponseIOExceptionpublic void sendError(int status,
String message)
throws IOException
sendError in interface org.jboss.resteasy.spi.HttpResponseIOExceptionpublic boolean isCommitted()
isCommitted in interface org.jboss.resteasy.spi.HttpResponsepublic void reset()
reset in interface org.jboss.resteasy.spi.HttpResponsepublic static void transformHeaders(VertxHttpResponse vertxResponse, io.vertx.core.http.HttpServerResponse response, org.jboss.resteasy.spi.ResteasyProviderFactory factory)
public void finish()
throws IOException
IOExceptionpublic void flushBuffer()
throws IOException
flushBuffer in interface org.jboss.resteasy.spi.HttpResponseIOExceptionpublic void writeBlocking(io.netty.buffer.ByteBuf buffer,
boolean finished)
throws IOException
IOExceptionpublic CompletionStage<Void> writeNonBlocking(io.netty.buffer.ByteBuf buffer, boolean finished)
Copyright © 2021 JBoss by Red Hat. All rights reserved.