Class BaseHttpRequest
java.lang.Object
org.jboss.resteasy.plugins.server.BaseHttpRequest
- All Implemented Interfaces:
HttpRequest
- Direct Known Subclasses:
HttpServerRequest
,HttpServletInputMessage
,MockHttpRequest
,NettyHttpRequest
,VertxHttpRequest
Helper for creating HttpRequest implementations. The async code is a fake implementation to work with
http engines that don't support async HTTP.
- Version:
- $Revision: 1 $
- Author:
- Bill Burke
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Were form parameters read before marshalling to body?application/x-www-form-urlencoded parametersgetUri()
This method *MUST* always return the same instance.boolean
void
setRequestUri
(URI requestUri) Updates the object returned byHttpRequest.getUri()
.void
setRequestUri
(URI baseUri, URI requestUri) Updates the object returned byHttpRequest.getUri()
.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.jboss.resteasy.spi.HttpRequest
forward, getAsyncContext, getAttribute, getAttributeNames, getFormEntityPart, getFormEntityParts, getHttpHeaders, getHttpMethod, getInputStream, getMutableHeaders, getRemoteAddress, getRemoteHost, removeAttribute, setAttribute, setHttpMethod, setInputStream, wasForwarded
-
Field Details
-
formParameters
-
decodedFormParameters
-
uri
-
-
Constructor Details
-
BaseHttpRequest
-
-
Method Details
-
getUri
Description copied from interface:HttpRequest
This method *MUST* always return the same instance.- Specified by:
getUri
in interfaceHttpRequest
- Returns:
- uri info
-
formParametersRead
public boolean formParametersRead()Description copied from interface:HttpRequest
Were form parameters read before marshalling to body?- Specified by:
formParametersRead
in interfaceHttpRequest
- Returns:
-
getFormParameters
Description copied from interface:HttpRequest
application/x-www-form-urlencoded parametersThis 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
-
isInitial
public boolean isInitial()- Specified by:
isInitial
in interfaceHttpRequest
-
setRequestUri
Description copied from interface:HttpRequest
Updates the object returned byHttpRequest.getUri()
.- Specified by:
setRequestUri
in interfaceHttpRequest
- Parameters:
requestUri
- request uri- Throws:
IllegalStateException
-
setRequestUri
Description copied from interface:HttpRequest
Updates the object returned byHttpRequest.getUri()
.- Specified by:
setRequestUri
in interfaceHttpRequest
- Parameters:
baseUri
- base urirequestUri
- request uri- Throws:
IllegalStateException
-