|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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<java.lang.String,java.lang.String> |
decodedFormParameters
|
protected SynchronousDispatcher |
dispatcher
|
protected MultivaluedMap<java.lang.String,java.lang.String> |
formParameters
|
protected HttpHeaders |
httpHeaders
|
protected java.lang.String |
httpMethod
|
protected HttpResponse |
httpResponse
|
protected java.util.concurrent.CountDownLatch |
latch
|
protected java.io.InputStream |
overridenStream
|
protected java.lang.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,
java.lang.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 |
java.lang.Object |
getAttribute(java.lang.String attribute)
Map of contextual data. |
MultivaluedMap<java.lang.String,java.lang.String> |
getDecodedFormParameters()
|
MultivaluedMap<java.lang.String,java.lang.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()
|
java.lang.String |
getHttpMethod()
|
java.io.InputStream |
getInputStream()
|
java.lang.String |
getPreprocessedPath()
Encoded preprocessed path with extension mappings and matrix parameters removed |
MultivaluedMap<java.lang.String,java.lang.String> |
getPutDecodedFormParameters()
|
MultivaluedMap<java.lang.String,java.lang.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(java.lang.String name)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
|
void |
setInputStream(java.io.InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream(). |
void |
setPreprocessedPath(java.lang.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 java.util.concurrent.CountDownLatch latch
protected long suspendTimeout
protected SynchronousDispatcher dispatcher
protected HttpResponse httpResponse
protected boolean suspended
protected UriInfo uri
protected java.lang.String httpMethod
protected java.lang.String preProcessedPath
protected MultivaluedMap<java.lang.String,java.lang.String> formParameters
protected MultivaluedMap<java.lang.String,java.lang.String> decodedFormParameters
protected AbstractAsynchronousResponse asynchronousResponse
protected java.io.InputStream overridenStream
Constructor Detail |
---|
public HttpServletInputMessage(javax.servlet.http.HttpServletRequest request, HttpResponse httpResponse, HttpHeaders httpHeaders, UriInfo uri, java.lang.String httpMethod, SynchronousDispatcher dispatcher)
Method Detail |
---|
public MultivaluedMap<java.lang.String,java.lang.String> getPutFormParameters()
public MultivaluedMap<java.lang.String,java.lang.String> getPutDecodedFormParameters()
public java.lang.Object getAttribute(java.lang.String attribute)
HttpRequest
getAttribute
in interface HttpRequest
public void setAttribute(java.lang.String name, java.lang.Object value)
setAttribute
in interface HttpRequest
public void removeAttribute(java.lang.String name)
removeAttribute
in interface HttpRequest
public MultivaluedMap<java.lang.String,java.lang.String> getFormParameters()
HttpRequest
getFormParameters
in interface HttpRequest
public MultivaluedMap<java.lang.String,java.lang.String> getDecodedFormParameters()
getDecodedFormParameters
in interface HttpRequest
public HttpHeaders getHttpHeaders()
getHttpHeaders
in interface HttpRequest
public java.io.InputStream getInputStream()
getInputStream
in interface HttpRequest
public void setInputStream(java.io.InputStream stream)
HttpRequest
setInputStream
in interface HttpRequest
public UriInfo getUri()
getUri
in interface HttpRequest
public java.lang.String getHttpMethod()
getHttpMethod
in interface HttpRequest
public java.lang.String getPreprocessedPath()
HttpRequest
getPreprocessedPath
in interface HttpRequest
public void setPreprocessedPath(java.lang.String path)
setPreprocessedPath
in interface HttpRequest
public AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
HttpRequest
createAsynchronousResponse
in interface HttpRequest
public AsynchronousResponse getAsynchronousResponse()
HttpRequest
getAsynchronousResponse
in interface HttpRequest
public boolean isInitial()
HttpRequest
isInitial
in interface HttpRequest
public boolean isTimeout()
public boolean isSuspended()
HttpRequest
isSuspended
in interface HttpRequest
public void initialRequestThreadFinished()
HttpRequest
initialRequestThreadFinished
in interface HttpRequest
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |