public class VertxHttpResponse extends Object implements HttpResponse
| Constructor and Description |
|---|
VertxHttpResponse(io.vertx.core.http.HttpServerResponse response,
ResteasyProviderFactory providerFactory) |
VertxHttpResponse(io.vertx.core.http.HttpServerResponse response,
ResteasyProviderFactory providerFactory,
io.vertx.core.http.HttpMethod method) |
| Modifier and Type | Method and Description |
|---|---|
void |
addNewCookie(javax.ws.rs.core.NewCookie cookie) |
void |
finish() |
void |
flushBuffer() |
javax.ws.rs.core.MultivaluedMap<String,Object> |
getOutputHeaders() |
OutputStream |
getOutputStream() |
int |
getStatus() |
boolean |
isCommitted() |
void |
prepareChunkStream() |
void |
reset()
reset status and headers.
|
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,
ResteasyProviderFactory factory) |
public VertxHttpResponse(io.vertx.core.http.HttpServerResponse response,
ResteasyProviderFactory providerFactory)
public VertxHttpResponse(io.vertx.core.http.HttpServerResponse response,
ResteasyProviderFactory providerFactory,
io.vertx.core.http.HttpMethod method)
public void setOutputStream(OutputStream os)
setOutputStream in interface HttpResponsepublic int getStatus()
getStatus in interface HttpResponsepublic void setStatus(int status)
setStatus in interface HttpResponsepublic javax.ws.rs.core.MultivaluedMap<String,Object> getOutputHeaders()
getOutputHeaders in interface HttpResponsepublic OutputStream getOutputStream() throws IOException
getOutputStream in interface HttpResponseIOExceptionpublic void addNewCookie(javax.ws.rs.core.NewCookie cookie)
addNewCookie in interface HttpResponsepublic void sendError(int status)
throws IOException
sendError in interface HttpResponseIOExceptionpublic void sendError(int status,
String message)
throws IOException
sendError in interface HttpResponseIOExceptionpublic boolean isCommitted()
isCommitted in interface HttpResponsepublic void reset()
HttpResponsereset in interface HttpResponsepublic static void transformHeaders(VertxHttpResponse vertxResponse, io.vertx.core.http.HttpServerResponse response, ResteasyProviderFactory factory)
public void prepareChunkStream()
public void finish()
throws IOException
IOExceptionpublic void flushBuffer()
throws IOException
flushBuffer in interface HttpResponseIOExceptionCopyright © 2018 JBoss by Red Hat. All rights reserved.