public interface HttpRequest
Modifier and Type | Method and Description |
---|---|
boolean |
formParametersRead()
Were form parameters read before marshalling to body?
|
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() |
String |
getRemoteAddress()
Returns the Internet Protocol (IP) address of the client
or last proxy that sent the request.
|
String |
getRemoteHost()
Returns the fully qualified name of the client
or the last proxy that sent the request.
|
javax.ws.rs.core.UriInfo |
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
getUri() . |
void |
setRequestUri(URI baseUri,
URI requestUri)
Updates the object returned by
getUri() . |
boolean |
wasForwarded() |
javax.ws.rs.core.HttpHeaders getHttpHeaders()
InputStream getInputStream()
void setInputStream(InputStream stream)
stream
- input streamjavax.ws.rs.core.UriInfo getUri()
String getHttpMethod()
void setHttpMethod(String method)
void setRequestUri(URI requestUri) throws IllegalStateException
getUri()
.requestUri
- request uriIllegalStateException
void setRequestUri(URI baseUri, URI requestUri) throws IllegalStateException
getUri()
.baseUri
- base urirequestUri
- request uriIllegalStateException
javax.ws.rs.core.MultivaluedMap<String,String> getFormParameters()
This is here because @FormParam needs it and for when there are servlet filters that eat up the input stream
boolean formParametersRead()
Object getAttribute(String attribute)
attribute
- attribute namevoid removeAttribute(String name)
Enumeration<String> getAttributeNames()
ResteasyAsynchronousContext getAsyncContext()
boolean isInitial()
void forward(String path)
boolean wasForwarded()
String getRemoteAddress()
String
containing the
IP address of the client that sent the requestString getRemoteHost()
String
containing the fully
qualified name of the clientCopyright © 2019 JBoss by Red Hat. All rights reserved.