|
RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1 | |||||||||
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 javax.ws.rs.core.MultivaluedMap<String,String> |
decodedFormParameters
|
protected SynchronousDispatcher |
dispatcher
|
protected javax.ws.rs.core.MultivaluedMap<String,String> |
formParameters
|
protected javax.ws.rs.core.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 javax.ws.rs.core.UriInfo |
uri
|
Constructor Summary | |
---|---|
HttpServletInputMessage(javax.servlet.http.HttpServletRequest request,
HttpResponse httpResponse,
javax.ws.rs.core.HttpHeaders httpHeaders,
javax.ws.rs.core.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. |
javax.ws.rs.core.MultivaluedMap<String,String> |
getDecodedFormParameters()
|
javax.ws.rs.core.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 |
javax.ws.rs.core.HttpHeaders |
getHttpHeaders()
|
String |
getHttpMethod()
|
InputStream |
getInputStream()
|
String |
getPreprocessedPath()
Encoded preprocessed path with extension mappings and matrix parameters removed |
javax.ws.rs.core.MultivaluedMap<String,String> |
getPutDecodedFormParameters()
|
javax.ws.rs.core.MultivaluedMap<String,String> |
getPutFormParameters()
|
javax.ws.rs.core.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,
javax.ws.rs.core.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)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected javax.ws.rs.core.HttpHeaders httpHeaders
protected javax.servlet.http.HttpServletRequest request
protected CountDownLatch latch
protected long suspendTimeout
protected SynchronousDispatcher dispatcher
protected HttpResponse httpResponse
protected boolean suspended
protected javax.ws.rs.core.UriInfo uri
protected String httpMethod
protected String preProcessedPath
protected javax.ws.rs.core.MultivaluedMap<String,String> formParameters
protected javax.ws.rs.core.MultivaluedMap<String,String> decodedFormParameters
protected AbstractAsynchronousResponse asynchronousResponse
protected InputStream overridenStream
Constructor Detail |
---|
public HttpServletInputMessage(javax.servlet.http.HttpServletRequest request, HttpResponse httpResponse, javax.ws.rs.core.HttpHeaders httpHeaders, javax.ws.rs.core.UriInfo uri, String httpMethod, SynchronousDispatcher dispatcher)
Method Detail |
---|
public javax.ws.rs.core.MultivaluedMap<String,String> getPutFormParameters()
public javax.ws.rs.core.MultivaluedMap<String,String> getPutDecodedFormParameters()
public Object getAttribute(String attribute)
HttpRequest
getAttribute
in interface HttpRequest
public void setAttribute(String name, Object value)
setAttribute
in interface HttpRequest
public void removeAttribute(String name)
removeAttribute
in interface HttpRequest
public javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters()
HttpRequest
getFormParameters
in interface HttpRequest
public javax.ws.rs.core.MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters
in interface HttpRequest
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
getHttpHeaders
in interface HttpRequest
public InputStream getInputStream()
getInputStream
in interface HttpRequest
public void setInputStream(InputStream stream)
HttpRequest
setInputStream
in interface HttpRequest
public javax.ws.rs.core.UriInfo getUri()
getUri
in interface HttpRequest
public String getHttpMethod()
getHttpMethod
in interface HttpRequest
public String getPreprocessedPath()
HttpRequest
getPreprocessedPath
in interface HttpRequest
public void setPreprocessedPath(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
protected boolean mapEquals(Map<String,String[]> parameterMap, javax.ws.rs.core.MultivaluedMap<String,String> queryMap)
|
RESTEasy JAX-RS Implementation 2.3.6.Final-redhat-1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |