Package org.jboss.resteasy.util
Class DelegatingHttpRequest
java.lang.Object
org.jboss.resteasy.util.DelegatingHttpRequest
- All Implemented Interfaces:
HttpRequest
- Direct Known Subclasses:
PrefixedFormFieldsHttpRequest
- Version:
- $Revision: 1 $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
getAttribute
(String attribute) Map of contextual data.application/x-www-form-urlencoded parametersjavax.ws.rs.core.HttpHeaders
getUri()
This method *MUST* always return the same instance.boolean
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 byHttpRequest.getUri()
.void
setRequestUri
(URI baseUri, URI requestUri) Updates the object returned byHttpRequest.getUri()
.boolean
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingHttpRequest
-
-
Method Details
-
getMutableHeaders
- Specified by:
getMutableHeaders
in interfaceHttpRequest
-
setHttpMethod
- Specified by:
setHttpMethod
in interfaceHttpRequest
-
getUri
Description copied from interface:HttpRequest
This method *MUST* always return the same instance.- Specified by:
getUri
in interfaceHttpRequest
-
setRequestUri
Description copied from interface:HttpRequest
Updates the object returned byHttpRequest.getUri()
.- Specified by:
setRequestUri
in interfaceHttpRequest
- Throws:
IllegalStateException
-
setRequestUri
Description copied from interface:HttpRequest
Updates the object returned byHttpRequest.getUri()
.- Specified by:
setRequestUri
in interfaceHttpRequest
- Throws:
IllegalStateException
-
getHttpHeaders
public javax.ws.rs.core.HttpHeaders getHttpHeaders()- Specified by:
getHttpHeaders
in interfaceHttpRequest
-
getInputStream
- Specified by:
getInputStream
in interfaceHttpRequest
-
setInputStream
Description copied from interface:HttpRequest
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream(). It will only override it for the resteasy HttpRequest- Specified by:
setInputStream
in interfaceHttpRequest
- Parameters:
stream
-
-
getHttpMethod
- Specified by:
getHttpMethod
in interfaceHttpRequest
-
getFormParameters
Description copied from interface:HttpRequest
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- Specified by:
getFormParameters
in interfaceHttpRequest
- Returns:
- null if no parameters, this is encoded map
-
getDecodedFormParameters
- Specified by:
getDecodedFormParameters
in interfaceHttpRequest
-
getAttribute
Description copied from interface:HttpRequest
Map of contextual data. Similar to HttpServletRequest attributes- Specified by:
getAttribute
in interfaceHttpRequest
- Returns:
-
setAttribute
- Specified by:
setAttribute
in interfaceHttpRequest
-
removeAttribute
- Specified by:
removeAttribute
in interfaceHttpRequest
-
getAttributeNames
- Specified by:
getAttributeNames
in interfaceHttpRequest
-
isInitial
public boolean isInitial()- Specified by:
isInitial
in interfaceHttpRequest
-
getAsyncContext
- Specified by:
getAsyncContext
in interfaceHttpRequest
-
forward
- Specified by:
forward
in interfaceHttpRequest
-
wasForwarded
public boolean wasForwarded()- Specified by:
wasForwarded
in interfaceHttpRequest
-