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 HttpRequest
public InputStream getInputStream()
getInputStream
in interface HttpRequest
public void setInputStream(InputStream stream)
HttpRequest
setInputStream
in interface HttpRequest
public UriInfo getUri()
getUri
in interface HttpRequest
public String getHttpMethod()
getHttpMethod
in interface HttpRequest
public String getPreprocessedPath()
HttpRequest
getPreprocessedPath
in interface HttpRequest
public void setPreprocessedPath(String path)
setPreprocessedPath
in interface HttpRequest
public MultivaluedMap<String,String> getFormParameters()
HttpRequest
getFormParameters
in interface HttpRequest
public MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters
in interface HttpRequest
public Object getAttribute(String attribute)
HttpRequest
getAttribute
in interface HttpRequest
public void setAttribute(String name, Object value)
setAttribute
in interface HttpRequest
public void removeAttribute(String name)
removeAttribute
in interface HttpRequest
public boolean isInitial()
HttpRequest
isInitial
in interface HttpRequest
public boolean isSuspended()
HttpRequest
isSuspended
in interface HttpRequest
public AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
HttpRequest
createAsynchronousResponse
in interface HttpRequest
public AsynchronousResponse getAsynchronousResponse()
HttpRequest
getAsynchronousResponse
in interface HttpRequest
public void initialRequestThreadFinished()
HttpRequest
initialRequestThreadFinished
in interface HttpRequest
Copyright © 2014. All Rights Reserved.