public class HttpServletInputMessage extends Object implements HttpRequest
| Modifier and Type | Field and Description |
|---|---|
protected AbstractAsynchronousResponse |
asynchronousResponse |
protected MultivaluedMap<String,String> |
decodedFormParameters |
protected SynchronousDispatcher |
dispatcher |
protected MultivaluedMap<String,String> |
formParameters |
protected HttpHeaders |
httpHeaders |
protected String |
httpMethod |
protected HttpResponse |
httpResponse |
protected CountDownLatch |
latch |
protected InputStream |
overridenStream |
protected String |
preProcessedPath |
protected javax.servlet.http.HttpServletRequest |
request |
protected boolean |
suspended |
protected long |
suspendTimeout |
protected UriInfo |
uri |
| Constructor and Description |
|---|
HttpServletInputMessage(javax.servlet.http.HttpServletRequest request,
HttpResponse httpResponse,
HttpHeaders httpHeaders,
UriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher) |
| Modifier and Type | Method and Description |
|---|---|
AsynchronousResponse |
createAsynchronousResponse(long suspendTimeout)
This method will create an asynchronous response and prepare the
request to be issued asynchronously
|
AsynchronousResponse |
getAsynchronousResponse()
Returns the AsynchronousResponse created by createAsynchronousResponse
|
Object |
getAttribute(String attribute)
Map of contextual data.
|
MultivaluedMap<String,String> |
getDecodedFormParameters() |
MultivaluedMap<String,String> |
getFormParameters()
application/x-www-form-urlencoded parameters
This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream
|
HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
String |
getPreprocessedPath()
Encoded preprocessed path with extension mappings and matrix parameters removed
|
MultivaluedMap<String,String> |
getPutDecodedFormParameters() |
MultivaluedMap<String,String> |
getPutFormParameters() |
UriInfo |
getUri() |
void |
initialRequestThreadFinished()
Callback by the initial calling thread.
|
boolean |
isInitial()
Asynchronous HTTP support.
|
boolean |
isSuspended()
Asynchronous HTTP support.
|
boolean |
isTimeout() |
protected boolean |
mapEquals(Map<String,String[]> parameterMap,
MultivaluedMap<String,String> queryMap) |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setInputStream(InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
|
void |
setPreprocessedPath(String path) |
protected HttpHeaders httpHeaders
protected javax.servlet.http.HttpServletRequest request
protected CountDownLatch latch
protected long suspendTimeout
protected SynchronousDispatcher dispatcher
protected HttpResponse httpResponse
protected boolean suspended
protected UriInfo uri
protected String httpMethod
protected String preProcessedPath
protected MultivaluedMap<String,String> formParameters
protected MultivaluedMap<String,String> decodedFormParameters
protected AbstractAsynchronousResponse asynchronousResponse
protected InputStream overridenStream
public HttpServletInputMessage(javax.servlet.http.HttpServletRequest request,
HttpResponse httpResponse,
HttpHeaders httpHeaders,
UriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher)
public MultivaluedMap<String,String> getPutFormParameters()
public MultivaluedMap<String,String> getPutDecodedFormParameters()
public Object getAttribute(String attribute)
HttpRequestgetAttribute in interface HttpRequestpublic void setAttribute(String name, Object value)
setAttribute in interface HttpRequestpublic void removeAttribute(String name)
removeAttribute in interface HttpRequestpublic MultivaluedMap<String,String> getFormParameters()
HttpRequestgetFormParameters in interface HttpRequestpublic MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters in interface HttpRequestpublic HttpHeaders getHttpHeaders()
getHttpHeaders in interface HttpRequestpublic InputStream getInputStream()
getInputStream in interface HttpRequestpublic void setInputStream(InputStream stream)
HttpRequestsetInputStream in interface HttpRequestpublic UriInfo getUri()
getUri in interface HttpRequestpublic String getHttpMethod()
getHttpMethod in interface HttpRequestpublic String getPreprocessedPath()
HttpRequestgetPreprocessedPath in interface HttpRequestpublic void setPreprocessedPath(String path)
setPreprocessedPath in interface HttpRequestpublic AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
HttpRequestcreateAsynchronousResponse in interface HttpRequestpublic AsynchronousResponse getAsynchronousResponse()
HttpRequestgetAsynchronousResponse in interface HttpRequestpublic boolean isInitial()
HttpRequestisInitial in interface HttpRequestpublic boolean isTimeout()
public boolean isSuspended()
HttpRequestisSuspended in interface HttpRequestpublic void initialRequestThreadFinished()
HttpRequestinitialRequestThreadFinished in interface HttpRequestCopyright © 2014. All Rights Reserved.