public class DelegatingHttpRequest extends Object implements HttpRequest
| Constructor and Description |
|---|
DelegatingHttpRequest(HttpRequest delegate) |
| Modifier and Type | Method and Description |
|---|---|
AsynchronousResponse |
createAsynchronousResponse(long suspendTimeout)
This method will create an asynchronous response and prepare the
request to be issued asynchronously
|
AsynchronousResponse |
getAsynchronousResponse()
Returns the AsynchronousResponse created by createAsynchronousResponse
|
Object |
getAttribute(String attribute)
Map of contextual data.
|
MultivaluedMap<String,String> |
getDecodedFormParameters() |
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
|
HttpHeaders |
getHttpHeaders() |
String |
getHttpMethod() |
InputStream |
getInputStream() |
String |
getPreprocessedPath()
Encoded preprocessed path with extension mappings and matrix parameters removed
|
UriInfo |
getUri() |
void |
initialRequestThreadFinished()
Callback by the initial calling thread.
|
boolean |
isInitial()
Asynchronous HTTP support.
|
boolean |
isSuspended()
Asynchronous HTTP support.
|
void |
removeAttribute(String name) |
void |
setAttribute(String name,
Object value) |
void |
setInputStream(InputStream stream)
If you are using a servlet container, this will *NOT* override the HttpServletRequest.getInputStream().
|
void |
setPreprocessedPath(String path) |
public DelegatingHttpRequest(HttpRequest delegate)
public HttpHeaders getHttpHeaders()
getHttpHeaders in interface HttpRequestpublic InputStream getInputStream()
getInputStream in interface HttpRequestpublic void setInputStream(InputStream stream)
HttpRequestsetInputStream in interface HttpRequestpublic UriInfo getUri()
getUri in interface HttpRequestpublic String getHttpMethod()
getHttpMethod in interface HttpRequestpublic String getPreprocessedPath()
HttpRequestgetPreprocessedPath in interface HttpRequestpublic void setPreprocessedPath(String path)
setPreprocessedPath in interface HttpRequestpublic MultivaluedMap<String,String> getFormParameters()
HttpRequestgetFormParameters in interface HttpRequestpublic MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters in interface HttpRequestpublic Object getAttribute(String attribute)
HttpRequestgetAttribute in interface HttpRequestpublic void setAttribute(String name, Object value)
setAttribute in interface HttpRequestpublic void removeAttribute(String name)
removeAttribute in interface HttpRequestpublic boolean isInitial()
HttpRequestisInitial in interface HttpRequestpublic boolean isSuspended()
HttpRequestisSuspended in interface HttpRequestpublic AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
HttpRequestcreateAsynchronousResponse in interface HttpRequestpublic AsynchronousResponse getAsynchronousResponse()
HttpRequestgetAsynchronousResponse in interface HttpRequestpublic void initialRequestThreadFinished()
HttpRequestinitialRequestThreadFinished in interface HttpRequestCopyright © 2018 JBoss by Red Hat. All rights reserved.