Interface HttpRequest
- All Known Implementing Classes:
BaseHttpRequest, DelegatingHttpRequest, HttpServletInputMessage, MockHttpRequest, PrefixedFormFieldsHttpRequest, Servlet3AsyncHttpRequest
public interface HttpRequest
Bridge interface between the base Resteasy JAX-RS implementation and the actual HTTP transport (i.e. a servlet container)
- Version:
- $Revision: 1 $
-
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 bygetUri().voidsetRequestUri(URI baseUri, URI requestUri) Updates the object returned bygetUri().boolean
-
Method Details
-
getHttpHeaders
javax.ws.rs.core.HttpHeaders getHttpHeaders() -
getMutableHeaders
-
getInputStream
InputStream getInputStream() -
setInputStream
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream(). It will only override it for the resteasy HttpRequest- Parameters:
stream-
-
getUri
ResteasyUriInfo getUri()This method *MUST* always return the same instance. -
getHttpMethod
String getHttpMethod() -
setHttpMethod
-
setRequestUri
Updates the object returned bygetUri().- Throws:
IllegalStateException
-
setRequestUri
Updates the object returned bygetUri().- Throws:
IllegalStateException
-
getFormParameters
-
getDecodedFormParameters
-
getAttribute
-
setAttribute
-
removeAttribute
-
getAttributeNames
Enumeration<String> getAttributeNames() -
getAsyncContext
ResteasyAsynchronousContext getAsyncContext() -
isInitial
boolean isInitial() -
forward
-
wasForwarded
boolean wasForwarded()
-