Class HttpServletInputMessage
java.lang.Object
org.jboss.resteasy.plugins.server.BaseHttpRequest
org.jboss.resteasy.plugins.server.servlet.HttpServletInputMessage
- All Implemented Interfaces:
HttpRequest
- Direct Known Subclasses:
Servlet3AsyncHttpRequest
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
- Version:
- $Revision: 1 $
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected SynchronousDispatcherprotected SynchronousExecutionContextprotected ResteasyHttpHeadersprotected Stringprotected HttpResponseprotected InputStreamprotected javax.servlet.http.HttpServletRequestprotected javax.servlet.ServletContextprotected javax.servlet.http.HttpServletResponseprotected booleanFields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
decodedFormParameters, formParameters, uri -
Constructor Summary
ConstructorsConstructorDescriptionHttpServletInputMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse servletResponse, javax.servlet.ServletContext servletContext, HttpResponse httpResponse, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher) -
Method Summary
Modifier and TypeMethodDescriptionvoidgetAttribute(String attribute) Map of contextual data.application/x-www-form-urlencoded parametersjavax.ws.rs.core.HttpHeadersprotected booleanmapEquals(Map<String, String[]> parameterMap, javax.ws.rs.core.MultivaluedMap<String, String> queryMap) voidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetHttpMethod(String method) voidsetInputStream(InputStream stream) If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().booleanMethods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
getUri, isInitial, setRequestUri, setRequestUri
-
Field Details
-
httpHeaders
-
request
protected javax.servlet.http.HttpServletRequest request -
servletResponse
protected javax.servlet.http.HttpServletResponse servletResponse -
servletContext
protected javax.servlet.ServletContext servletContext -
dispatcher
-
httpResponse
-
httpMethod
-
overridenStream
-
executionContext
-
wasForwarded
protected boolean wasForwarded
-
-
Constructor Details
-
HttpServletInputMessage
public HttpServletInputMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse servletResponse, javax.servlet.ServletContext servletContext, HttpResponse httpResponse, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher)
-
-
Method Details
-
getMutableHeaders
-
getPutFormParameters
-
getPutDecodedFormParameters
-
getAttribute
Description copied from interface:HttpRequestMap of contextual data. Similar to HttpServletRequest attributes- Returns:
-
setAttribute
-
removeAttribute
-
getAttributeNames
-
getFormParameters
Description copied from interface:HttpRequestapplication/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- Specified by:
getFormParametersin interfaceHttpRequest- Overrides:
getFormParametersin classBaseHttpRequest- Returns:
- null if no parameters, this is encoded map
-
getDecodedFormParameters
- Specified by:
getDecodedFormParametersin interfaceHttpRequest- Overrides:
getDecodedFormParametersin classBaseHttpRequest
-
getHttpHeaders
public javax.ws.rs.core.HttpHeaders getHttpHeaders() -
getInputStream
-
setInputStream
Description copied from interface:HttpRequestIf you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream(). It will only override it for the resteasy HttpRequest- Parameters:
stream-
-
getHttpMethod
-
setHttpMethod
-
getAsyncContext
-
forward
-
wasForwarded
public boolean wasForwarded() -
mapEquals
-