Class VertxHttpRequest
- java.lang.Object
-
- org.jboss.resteasy.plugins.server.BaseHttpRequest
-
- org.jboss.resteasy.plugins.server.vertx.VertxHttpRequest
-
- All Implemented Interfaces:
HttpRequest
public class VertxHttpRequest extends org.jboss.resteasy.plugins.server.BaseHttpRequestAbstraction for an inbound http request on the server, or a response from a server to a clientWe have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework
- Version:
- $Revision: 1 $
- Author:
- Bill Burke, Norman Maurer, Kristoffer Sjogren
-
-
Field Summary
Fields Modifier and Type Field Description protected Map<String,Object>attributesprotected org.jboss.resteasy.core.SynchronousDispatcherdispatcherprotected org.jboss.resteasy.specimpl.ResteasyHttpHeadershttpHeadersprotected StringhttpMethodprotected InputStreaminputStreamprotected VertxHttpResponseresponse
-
Constructor Summary
Constructors Constructor Description VertxHttpRequest(io.vertx.core.Context context, io.vertx.core.http.HttpServerRequest request, org.jboss.resteasy.specimpl.ResteasyUriInfo uri, org.jboss.resteasy.core.SynchronousDispatcher dispatcher, VertxHttpResponse response, boolean is100ContinueExpected)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforward(String path)ResteasyAsynchronousContextgetAsyncContext()ObjectgetAttribute(String attribute)Enumeration<String>getAttributeNames()jakarta.ws.rs.core.HttpHeadersgetHttpHeaders()StringgetHttpMethod()InputStreamgetInputStream()jakarta.ws.rs.core.MultivaluedMap<String,String>getMutableHeaders()StringgetRemoteAddress()StringgetRemoteHost()VertxHttpResponsegetResponse()booleanis100ContinueExpected()booleanisFlushed()voidremoveAttribute(String name)voidsetAttribute(String name, Object value)voidsetHttpMethod(String method)voidsetInputStream(InputStream stream)booleanwasForwarded()
-
-
-
Field Detail
-
httpHeaders
protected org.jboss.resteasy.specimpl.ResteasyHttpHeaders httpHeaders
-
dispatcher
protected org.jboss.resteasy.core.SynchronousDispatcher dispatcher
-
httpMethod
protected String httpMethod
-
inputStream
protected InputStream inputStream
-
response
protected VertxHttpResponse response
-
-
Constructor Detail
-
VertxHttpRequest
public VertxHttpRequest(io.vertx.core.Context context, io.vertx.core.http.HttpServerRequest request, org.jboss.resteasy.specimpl.ResteasyUriInfo uri, org.jboss.resteasy.core.SynchronousDispatcher dispatcher, VertxHttpResponse response, boolean is100ContinueExpected)
-
-
Method Detail
-
setHttpMethod
public void setHttpMethod(String method)
-
getAttributeNames
public Enumeration<String> getAttributeNames()
-
getAsyncContext
public ResteasyAsynchronousContext getAsyncContext()
-
isFlushed
public boolean isFlushed()
-
removeAttribute
public void removeAttribute(String name)
-
getHttpHeaders
public jakarta.ws.rs.core.HttpHeaders getHttpHeaders()
-
getInputStream
public InputStream getInputStream()
-
setInputStream
public void setInputStream(InputStream stream)
-
getHttpMethod
public String getHttpMethod()
-
getResponse
public VertxHttpResponse getResponse()
-
is100ContinueExpected
public boolean is100ContinueExpected()
-
forward
public void forward(String path)
-
wasForwarded
public boolean wasForwarded()
-
getRemoteHost
public String getRemoteHost()
-
getRemoteAddress
public String getRemoteAddress()
-
-