public class DelegatingHttpRequest extends Object implements HttpRequest
Constructor and Description |
---|
DelegatingHttpRequest(HttpRequest delegate) |
Modifier and Type | Method and Description |
---|---|
void |
forward(String path) |
ResteasyAsynchronousContext |
getAsyncContext() |
Object |
getAttribute(String attribute)
Map of contextual data.
|
Enumeration<String> |
getAttributeNames() |
MultivaluedMap<String,String> |
getDecodedFormParameters() |
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
|
HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
MultivaluedMap<String,String> |
getMutableHeaders() |
ResteasyUriInfo |
getUri()
This method *MUST* always return the same instance.
|
boolean |
isInitial() |
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setHttpMethod(String method) |
void |
setInputStream(InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
|
void |
setRequestUri(URI requestUri)
Updates the object returned by
HttpRequest.getUri() . |
void |
setRequestUri(URI baseUri,
URI requestUri)
Updates the object returned by
HttpRequest.getUri() . |
boolean |
wasForwarded() |
public DelegatingHttpRequest(HttpRequest delegate)
public MultivaluedMap<String,String> getMutableHeaders()
getMutableHeaders
in interface HttpRequest
public void setHttpMethod(String method)
setHttpMethod
in interface HttpRequest
public ResteasyUriInfo getUri()
HttpRequest
getUri
in interface HttpRequest
public void setRequestUri(URI requestUri) throws IllegalStateException
HttpRequest
HttpRequest.getUri()
.setRequestUri
in interface HttpRequest
IllegalStateException
public void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
HttpRequest
HttpRequest.getUri()
.setRequestUri
in interface HttpRequest
IllegalStateException
public HttpHeaders getHttpHeaders()
getHttpHeaders
in interface HttpRequest
public InputStream getInputStream()
getInputStream
in interface HttpRequest
public void setInputStream(InputStream stream)
HttpRequest
setInputStream
in interface HttpRequest
public String getHttpMethod()
getHttpMethod
in interface HttpRequest
public MultivaluedMap<String,String> getFormParameters()
HttpRequest
getFormParameters
in interface HttpRequest
public MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters
in interface HttpRequest
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 Enumeration<String> getAttributeNames()
getAttributeNames
in interface HttpRequest
public boolean isInitial()
isInitial
in interface HttpRequest
public ResteasyAsynchronousContext getAsyncContext()
getAsyncContext
in interface HttpRequest
public void forward(String path)
forward
in interface HttpRequest
public boolean wasForwarded()
wasForwarded
in interface HttpRequest
Copyright © 2017 JBoss by Red Hat. All rights reserved.