public abstract class BaseHttpRequest extends Object implements HttpRequest
| Modifier and Type | Field and Description |
|---|---|
protected AbstractAsynchronousResponse |
asynchronousResponse |
protected MultivaluedMap<String,String> |
decodedFormParameters |
protected SynchronousDispatcher |
dispatcher |
protected MultivaluedMap<String,String> |
formParameters |
protected HttpResponse |
httpResponse |
protected CountDownLatch |
latch |
protected boolean |
suspended |
protected long |
suspendTimeout |
| Constructor and Description |
|---|
BaseHttpRequest(SynchronousDispatcher dispatcher) |
| 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
|
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
|
void |
initialRequestThreadFinished()
Callback by the initial calling thread.
|
boolean |
isInitial()
Asynchronous HTTP support.
|
boolean |
isSuspended()
Asynchronous HTTP support.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetAttribute, getHttpHeaders, getHttpMethod, getInputStream, getPreprocessedPath, getUri, removeAttribute, setAttribute, setInputStream, setPreprocessedPathprotected CountDownLatch latch
protected long suspendTimeout
protected SynchronousDispatcher dispatcher
protected boolean suspended
protected MultivaluedMap<String,String> formParameters
protected MultivaluedMap<String,String> decodedFormParameters
protected AbstractAsynchronousResponse asynchronousResponse
protected HttpResponse httpResponse
public BaseHttpRequest(SynchronousDispatcher dispatcher)
public MultivaluedMap<String,String> getFormParameters()
HttpRequestgetFormParameters in interface HttpRequestpublic MultivaluedMap<String,String> getDecodedFormParameters()
getDecodedFormParameters in interface HttpRequestpublic AsynchronousResponse createAsynchronousResponse(long suspendTimeout)
HttpRequestcreateAsynchronousResponse in interface HttpRequestpublic AsynchronousResponse getAsynchronousResponse()
HttpRequestgetAsynchronousResponse in interface HttpRequestpublic boolean isInitial()
HttpRequestisInitial in interface HttpRequestpublic boolean isSuspended()
HttpRequestisSuspended in interface HttpRequestpublic void initialRequestThreadFinished()
HttpRequestinitialRequestThreadFinished in interface HttpRequestCopyright © 2018 JBoss by Red Hat. All rights reserved.