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() |
HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
MultivaluedMap<String,String> |
getMutableHeaders() |
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() |
getDecodedFormParameters, getFormParameters, getUri, isInitial, setRequestUri, setRequestUri
protected 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 MultivaluedMap<String,String> getMutableHeaders()
public HttpHeaders getHttpHeaders()
public InputStream getInputStream()
public void setInputStream(InputStream stream)
HttpRequest
public String getHttpMethod()
public void setHttpMethod(String method)
public Object getAttribute(String attribute)
HttpRequest
public void removeAttribute(String name)
public Enumeration<String> getAttributeNames()
public ResteasyAsynchronousContext getAsyncContext()
public void forward(String path)
public boolean wasForwarded()
Copyright © 2015. All Rights Reserved.