public class HttpServerRequest extends BaseHttpRequest
| Modifier and Type | Field and Description |
|---|---|
protected Map<String,Object> |
attributes |
protected SynchronousDispatcher |
dispatcher |
protected com.sun.net.httpserver.HttpExchange |
exchange |
protected ResteasyHttpHeaders |
httpHeaders |
protected String |
httpMethod |
protected HttpResponse |
httpResponse |
protected String |
preProcessedPath |
decodedFormParameters, formParameters, uri| Constructor and Description |
|---|
HttpServerRequest(SynchronousDispatcher dispatcher,
HttpResponse httpResponse,
com.sun.net.httpserver.HttpExchange exchange) |
| 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.
|
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, setRequestUriprotected SynchronousDispatcher dispatcher
protected HttpResponse httpResponse
protected com.sun.net.httpserver.HttpExchange exchange
protected ResteasyHttpHeaders httpHeaders
protected String preProcessedPath
protected String httpMethod
public HttpServerRequest(SynchronousDispatcher dispatcher, HttpResponse httpResponse, com.sun.net.httpserver.HttpExchange exchange)
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
public InputStream getInputStream()
public void setInputStream(InputStream stream)
HttpRequeststream - input streampublic String getHttpMethod()
public void setHttpMethod(String method)
public Object getAttribute(String attribute)
HttpRequestattribute - attribute namepublic void removeAttribute(String name)
public Enumeration<String> getAttributeNames()
public ResteasyAsynchronousContext getAsyncContext()
public void forward(String path)
public boolean wasForwarded()
public String getRemoteHost()
HttpRequestString containing the fully
qualified name of the clientpublic String getRemoteAddress()
HttpRequestString containing the
IP address of the client that sent the requestCopyright © 2020 JBoss by Red Hat. All rights reserved.