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 clientWe have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
-
Field Summary
Fields Modifier and Type Field Description protected SynchronousDispatcherdispatcherprotected SynchronousExecutionContextexecutionContextprotected ResteasyHttpHeadershttpHeadersprotected StringhttpMethodprotected HttpResponsehttpResponseprotected InputStreamoverridenStreamprotected jakarta.servlet.http.HttpServletRequestrequestprotected jakarta.servlet.ServletContextservletContextprotected jakarta.servlet.http.HttpServletResponseservletResponseprotected booleanwasForwarded-
Fields inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
decodedFormParameters, formParameters, uri
-
-
Constructor Summary
Constructors Constructor Description HttpServletInputMessage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse, jakarta.servlet.ServletContext servletContext, HttpResponse httpResponse, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher)
-
Method Summary
-
Methods inherited from class org.jboss.resteasy.plugins.server.BaseHttpRequest
getUri, isInitial, setRequestUri, setRequestUri
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.jboss.resteasy.spi.HttpRequest
getFormEntityPart
-
-
-
-
Field Detail
-
httpHeaders
protected ResteasyHttpHeaders httpHeaders
-
request
protected jakarta.servlet.http.HttpServletRequest request
-
servletResponse
protected jakarta.servlet.http.HttpServletResponse servletResponse
-
servletContext
protected jakarta.servlet.ServletContext servletContext
-
dispatcher
protected SynchronousDispatcher dispatcher
-
httpResponse
protected HttpResponse httpResponse
-
httpMethod
protected String httpMethod
-
overridenStream
protected InputStream overridenStream
-
executionContext
protected SynchronousExecutionContext executionContext
-
wasForwarded
protected boolean wasForwarded
-
-
Constructor Detail
-
HttpServletInputMessage
public HttpServletInputMessage(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse servletResponse, jakarta.servlet.ServletContext servletContext, HttpResponse httpResponse, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher)
-
-
Method Detail
-
getPutFormParameters
public jakarta.ws.rs.core.MultivaluedMap<String,String> getPutFormParameters()
-
getPutDecodedFormParameters
public jakarta.ws.rs.core.MultivaluedMap<String,String> getPutDecodedFormParameters()
-
removeAttribute
public void removeAttribute(String name)
-
getAttributeNames
public Enumeration<String> getAttributeNames()
-
getFormParameters
public jakarta.ws.rs.core.MultivaluedMap<String,String> getFormParameters()
- Specified by:
getFormParametersin interfaceHttpRequest- Overrides:
getFormParametersin classBaseHttpRequest
-
getFormEntityParts
public List<jakarta.ws.rs.core.EntityPart> getFormEntityParts()
-
getDecodedFormParameters
public jakarta.ws.rs.core.MultivaluedMap<String,String> getDecodedFormParameters()
- Specified by:
getDecodedFormParametersin interfaceHttpRequest- Overrides:
getDecodedFormParametersin classBaseHttpRequest
-
formParametersRead
public boolean formParametersRead()
- Specified by:
formParametersReadin interfaceHttpRequest- Overrides:
formParametersReadin classBaseHttpRequest
-
getHttpHeaders
public jakarta.ws.rs.core.HttpHeaders getHttpHeaders()
-
getInputStream
public InputStream getInputStream()
-
setInputStream
public void setInputStream(InputStream stream)
-
getHttpMethod
public String getHttpMethod()
-
setHttpMethod
public void setHttpMethod(String method)
-
getAsyncContext
public ResteasyAsynchronousContext getAsyncContext()
-
forward
public void forward(String path)
-
wasForwarded
public boolean wasForwarded()
-
mapEquals
protected boolean mapEquals(Map<String,String[]> parameterMap, jakarta.ws.rs.core.MultivaluedMap<String,String> queryMap)
-
getRemoteHost
public String getRemoteHost()
-
getRemoteAddress
public String getRemoteAddress()
-
-