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
public class HttpServletInputMessage extends BaseHttpRequest
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
Fields Modifier and Type Field Description protected SynchronousDispatcherdispatcherprotected SynchronousExecutionContextexecutionContextprotected ResteasyHttpHeadershttpHeadersprotected java.lang.StringhttpMethodprotected HttpResponsehttpResponseprotected java.io.InputStreamoverridenStreamprotected javax.servlet.http.HttpServletRequestrequestprotected javax.servlet.ServletContextservletContextprotected javax.servlet.http.HttpServletResponseservletResponseprotected booleanwasForwarded-
Fields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
decodedFormParameters, formParameters, uri
-
-
Constructor Summary
Constructors Constructor Description HttpServletInputMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse servletResponse, javax.servlet.ServletContext servletContext, HttpResponse httpResponse, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, java.lang.String httpMethod, SynchronousDispatcher dispatcher)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidforward(java.lang.String path)ResteasyAsynchronousContextgetAsyncContext()java.lang.ObjectgetAttribute(java.lang.String attribute)Map of contextual data.java.util.Enumeration<java.lang.String>getAttributeNames()javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>getDecodedFormParameters()javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>getFormParameters()application/x-www-form-urlencoded parametersjavax.ws.rs.core.HttpHeadersgetHttpHeaders()java.lang.StringgetHttpMethod()java.io.InputStreamgetInputStream()javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>getMutableHeaders()javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>getPutDecodedFormParameters()javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String>getPutFormParameters()protected booleanmapEquals(java.util.Map<java.lang.String,java.lang.String[]> parameterMap, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> queryMap)voidremoveAttribute(java.lang.String name)voidsetAttribute(java.lang.String name, java.lang.Object value)voidsetHttpMethod(java.lang.String method)voidsetInputStream(java.io.InputStream stream)If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().booleanwasForwarded()-
Methods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
getUri, isInitial, setRequestUri, setRequestUri
-
-
-
-
Field Detail
-
httpHeaders
protected ResteasyHttpHeaders httpHeaders
-
request
protected javax.servlet.http.HttpServletRequest request
-
servletResponse
protected javax.servlet.http.HttpServletResponse servletResponse
-
servletContext
protected javax.servlet.ServletContext servletContext
-
dispatcher
protected SynchronousDispatcher dispatcher
-
httpResponse
protected HttpResponse httpResponse
-
httpMethod
protected java.lang.String httpMethod
-
overridenStream
protected java.io.InputStream overridenStream
-
executionContext
protected SynchronousExecutionContext executionContext
-
wasForwarded
protected boolean wasForwarded
-
-
Constructor Detail
-
HttpServletInputMessage
public HttpServletInputMessage(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse servletResponse, javax.servlet.ServletContext servletContext, HttpResponse httpResponse, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, java.lang.String httpMethod, SynchronousDispatcher dispatcher)
-
-
Method Detail
-
getMutableHeaders
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getMutableHeaders()
-
getPutFormParameters
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getPutFormParameters()
-
getPutDecodedFormParameters
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getPutDecodedFormParameters()
-
getAttribute
public java.lang.Object getAttribute(java.lang.String attribute)
Description copied from interface:HttpRequestMap of contextual data. Similar to HttpServletRequest attributes- Returns:
-
setAttribute
public void setAttribute(java.lang.String name, java.lang.Object value)
-
removeAttribute
public void removeAttribute(java.lang.String name)
-
getAttributeNames
public java.util.Enumeration<java.lang.String> getAttributeNames()
-
getFormParameters
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> 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
public javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> getDecodedFormParameters()
- Specified by:
getDecodedFormParametersin interfaceHttpRequest- Overrides:
getDecodedFormParametersin classBaseHttpRequest
-
getHttpHeaders
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
-
getInputStream
public java.io.InputStream getInputStream()
-
setInputStream
public void setInputStream(java.io.InputStream stream)
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
-
getHttpMethod
public java.lang.String getHttpMethod()
-
setHttpMethod
public void setHttpMethod(java.lang.String method)
-
getAsyncContext
public ResteasyAsynchronousContext getAsyncContext()
-
forward
public void forward(java.lang.String path)
-
wasForwarded
public boolean wasForwarded()
-
mapEquals
protected boolean mapEquals(java.util.Map<java.lang.String,java.lang.String[]> parameterMap, javax.ws.rs.core.MultivaluedMap<java.lang.String,java.lang.String> queryMap)
-
-