|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.resteasy.plugins.server.servlet.HttpServletInputMessage
public class HttpServletInputMessage
Abstraction for an inbound http request on the server, or a response from a server to a client
We have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
HttpServletInputMessage(javax.servlet.http.HttpServletRequest request,
HttpResponse httpResponse,
HttpHeaders httpHeaders,
UriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher)
|
|
| Method Summary | |
|---|---|
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()
|
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)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
public HttpServletInputMessage(javax.servlet.http.HttpServletRequest request,
HttpResponse httpResponse,
HttpHeaders httpHeaders,
UriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher)
| Method Detail |
|---|
public MultivaluedMap<String,String> getPutFormParameters()
public MultivaluedMap<String,String> getPutDecodedFormParameters()
public Object getAttribute(String attribute)
HttpRequest
getAttribute in interface HttpRequest
public void setAttribute(String name,
Object value)
setAttribute in interface HttpRequestpublic void removeAttribute(String name)
removeAttribute in interface HttpRequestpublic MultivaluedMap<String,String> getFormParameters()
HttpRequest
getFormParameters 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)
HttpRequest
setInputStream in interface HttpRequestpublic UriInfo getUri()
getUri in interface HttpRequestpublic String getHttpMethod()
getHttpMethod in interface HttpRequestpublic String getPreprocessedPath()
HttpRequest
getPreprocessedPath in interface HttpRequestpublic void setPreprocessedPath(String path)
setPreprocessedPath in interface HttpRequestpublic AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
HttpRequest
createAsynchronousResponse in interface HttpRequestpublic AsynchronousResponse getAsynchronousResponse()
HttpRequest
getAsynchronousResponse in interface HttpRequestpublic boolean isInitial()
HttpRequest
isInitial in interface HttpRequestpublic boolean isTimeout()
public boolean isSuspended()
HttpRequest
isSuspended in interface HttpRequestpublic void initialRequestThreadFinished()
HttpRequest
initialRequestThreadFinished in interface HttpRequest
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||