public class VertxHttpRequest extends BaseHttpRequest
We have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework
Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
attributes |
protected SynchronousDispatcher |
dispatcher |
protected ResteasyHttpHeaders |
httpHeaders |
protected String |
httpMethod |
protected InputStream |
inputStream |
protected VertxHttpResponse |
response |
decodedFormParameters, formParameters, uri
Constructor and Description |
---|
VertxHttpRequest(io.vertx.core.Context context,
io.vertx.core.http.HttpServerRequest request,
ResteasyUriInfo uri,
SynchronousDispatcher dispatcher,
VertxHttpResponse response,
boolean is100ContinueExpected) |
Modifier and Type | Method and Description |
---|---|
void |
forward(String path) |
ResteasyAsynchronousContext |
getAsyncContext() |
Object |
getAttribute(String attribute)
Map of contextual data.
|
Enumeration<String> |
getAttributeNames() |
javax.ws.rs.core.HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getMutableHeaders() |
String |
getRemoteAddress()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
VertxHttpResponse |
getResponse() |
boolean |
is100ContinueExpected() |
boolean |
isFlushed() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setHttpMethod(String method) |
void |
setInputStream(InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
|
boolean |
wasForwarded() |
formParametersRead, getDecodedFormParameters, getFormParameters, getUri, isInitial, setRequestUri, setRequestUri
protected ResteasyHttpHeaders httpHeaders
protected SynchronousDispatcher dispatcher
protected String httpMethod
protected InputStream inputStream
protected VertxHttpResponse response
public VertxHttpRequest(io.vertx.core.Context context, io.vertx.core.http.HttpServerRequest request, ResteasyUriInfo uri, SynchronousDispatcher dispatcher, VertxHttpResponse response, boolean is100ContinueExpected)
public void setHttpMethod(String method)
public Enumeration<String> getAttributeNames()
public ResteasyAsynchronousContext getAsyncContext()
public boolean isFlushed()
public Object getAttribute(String attribute)
HttpRequest
attribute
- attribute namepublic void removeAttribute(String name)
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
public InputStream getInputStream()
public void setInputStream(InputStream stream)
HttpRequest
stream
- input streampublic String getHttpMethod()
public VertxHttpResponse getResponse()
public boolean is100ContinueExpected()
public void forward(String path)
public boolean wasForwarded()
public String getRemoteHost()
HttpRequest
String
containing the fully
qualified name of the clientpublic String getRemoteAddress()
HttpRequest
String
containing the
IP address of the client that sent the requestCopyright © 2020 JBoss by Red Hat. All rights reserved.