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() |
javax.ws.rs.core.MultivaluedMap<String,String> |
getDecodedFormParameters() |
javax.ws.rs.core.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
|
javax.ws.rs.core.HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
javax.ws.rs.core.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 javax.ws.rs.core.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
requestUri
- request uriIllegalStateException
public void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
HttpRequest
HttpRequest.getUri()
.setRequestUri
in interface HttpRequest
baseUri
- base urirequestUri
- request uriIllegalStateException
public javax.ws.rs.core.HttpHeaders getHttpHeaders()
getHttpHeaders
in interface HttpRequest
public InputStream getInputStream()
getInputStream
in interface HttpRequest
public void setInputStream(InputStream stream)
HttpRequest
setInputStream
in interface HttpRequest
stream
- input streampublic String getHttpMethod()
getHttpMethod
in interface HttpRequest
public javax.ws.rs.core.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
public javax.ws.rs.core.MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters
in interface HttpRequest
public Object getAttribute(String attribute)
HttpRequest
getAttribute
in interface HttpRequest
attribute
- attribute namepublic 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 © 2018 JBoss by Red Hat. All rights reserved.