public class HttpServletInputMessage extends BaseHttpRequest
We have this abstraction so that we can reuse marshalling objects in a client framework and serverside framework
Modifier and Type | Field and Description |
---|---|
protected SynchronousDispatcher |
dispatcher |
protected SynchronousExecutionContext |
executionContext |
protected ResteasyHttpHeaders |
httpHeaders |
protected String |
httpMethod |
protected HttpResponse |
httpResponse |
protected InputStream |
overridenStream |
protected HttpServletRequest |
request |
protected ServletContext |
servletContext |
protected HttpServletResponse |
servletResponse |
protected boolean |
wasForwarded |
decodedFormParameters, formParameters, uri
Constructor and Description |
---|
HttpServletInputMessage(HttpServletRequest request,
HttpServletResponse servletResponse,
ServletContext servletContext,
HttpResponse httpResponse,
ResteasyHttpHeaders httpHeaders,
ResteasyUriInfo uri,
String httpMethod,
SynchronousDispatcher dispatcher) |
getUri, isInitial, setRequestUri, setRequestUri
protected ResteasyHttpHeaders httpHeaders
protected HttpServletRequest request
protected HttpServletResponse servletResponse
protected ServletContext servletContext
protected SynchronousDispatcher dispatcher
protected HttpResponse httpResponse
protected String httpMethod
protected InputStream overridenStream
protected SynchronousExecutionContext executionContext
protected boolean wasForwarded
public HttpServletInputMessage(HttpServletRequest request, HttpServletResponse servletResponse, ServletContext servletContext, HttpResponse httpResponse, ResteasyHttpHeaders httpHeaders, ResteasyUriInfo uri, String httpMethod, SynchronousDispatcher dispatcher)
public MultivaluedMap<String,String> getMutableHeaders()
public MultivaluedMap<String,String> getPutFormParameters()
public MultivaluedMap<String,String> getPutDecodedFormParameters()
public Object getAttribute(String attribute)
HttpRequest
attribute
- attribute namepublic void removeAttribute(String name)
public Enumeration<String> getAttributeNames()
public MultivaluedMap<String,String> getFormParameters()
HttpRequest
This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream
getFormParameters
in interface HttpRequest
getFormParameters
in class BaseHttpRequest
public MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters
in interface HttpRequest
getDecodedFormParameters
in class BaseHttpRequest
public boolean formParametersRead()
public HttpHeaders getHttpHeaders()
public InputStream getInputStream()
public void setInputStream(InputStream stream)
HttpRequest
stream
- input streampublic String getHttpMethod()
public void setHttpMethod(String method)
public ResteasyAsynchronousContext getAsyncContext()
public void forward(String path)
public boolean wasForwarded()
Copyright © 2021 JBoss by Red Hat. All rights reserved.