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 TypeMethodDescriptionvoidgetAttribute(String attribute) Map of contextual data.application/x-www-form-urlencoded parametersjavax.ws.rs.core.HttpHeadersgetUri()This method *MUST* always return the same instance.booleanvoidremoveAttribute(String name) voidsetAttribute(String name, Object value) voidsetHttpMethod(String method) voidsetInputStream(InputStream stream) If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().voidsetRequestUri(URI requestUri) Updates the object returned byHttpRequest.getUri().voidsetRequestUri(URI baseUri, URI requestUri) Updates the object returned byHttpRequest.getUri().boolean
-
Field Details
-
delegate
-
-
Constructor Details
-
DelegatingHttpRequest
-
-
Method Details
-
getMutableHeaders
- Specified by:
getMutableHeadersin interfaceHttpRequest
-
setHttpMethod
- Specified by:
setHttpMethodin interfaceHttpRequest
-
getUri
Description copied from interface:HttpRequestThis method *MUST* always return the same instance.- Specified by:
getUriin interfaceHttpRequest
-
setRequestUri
Description copied from interface:HttpRequestUpdates the object returned byHttpRequest.getUri().- Specified by:
setRequestUriin interfaceHttpRequest- Throws:
IllegalStateException
-
setRequestUri
Description copied from interface:HttpRequestUpdates the object returned byHttpRequest.getUri().- Specified by:
setRequestUriin interfaceHttpRequest- Throws:
IllegalStateException
-
getHttpHeaders
public javax.ws.rs.core.HttpHeaders getHttpHeaders()- Specified by:
getHttpHeadersin interfaceHttpRequest
-
getInputStream
- Specified by:
getInputStreamin interfaceHttpRequest
-
setInputStream
Description copied from interface:HttpRequestIf you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream(). It will only override it for the resteasy HttpRequest- Specified by:
setInputStreamin interfaceHttpRequest- Parameters:
stream-
-
getHttpMethod
- Specified by:
getHttpMethodin interfaceHttpRequest
-
getFormParameters
Description copied from interface:HttpRequestapplication/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:
getFormParametersin interfaceHttpRequest- Returns:
- null if no parameters, this is encoded map
-
getDecodedFormParameters
- Specified by:
getDecodedFormParametersin interfaceHttpRequest
-
getAttribute
Description copied from interface:HttpRequestMap of contextual data. Similar to HttpServletRequest attributes- Specified by:
getAttributein interfaceHttpRequest- Returns:
-
setAttribute
- Specified by:
setAttributein interfaceHttpRequest
-
removeAttribute
- Specified by:
removeAttributein interfaceHttpRequest
-
getAttributeNames
- Specified by:
getAttributeNamesin interfaceHttpRequest
-
isInitial
public boolean isInitial()- Specified by:
isInitialin interfaceHttpRequest
-
getAsyncContext
- Specified by:
getAsyncContextin interfaceHttpRequest
-
forward
- Specified by:
forwardin interfaceHttpRequest
-
wasForwarded
public boolean wasForwarded()- Specified by:
wasForwardedin interfaceHttpRequest
-