public class MWRequestImpl<T> extends Object implements MWRequest<T>
| Modifier and Type | Field and Description |
|---|---|
org.apache.http.client.methods.HttpUriRequest |
httpGetError |
org.apache.http.client.methods.HttpUriRequest |
httpGetResponse |
org.apache.http.client.methods.HttpUriRequest |
httpPost |
Object |
lock |
boolean |
markedForCancellation |
| Constructor and Description |
|---|
MWRequestImpl(MWClient client,
MWRequestListener<T> listener,
MWRequestInfo<T> clientRequestInfo,
ApacheFevalHandler fevalHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
abort() |
boolean |
cancel() |
MWClient |
getClient()
Get the client to which the request is attached.
|
MWRequestInfo<T> |
getClientRequestInfo() |
Future<T> |
getFuture()
Returns a future object that can be used to get the result or cancel this request.
|
MWRequestStateVisitor<T> |
getFutureVisitor() |
String |
getRequestURL()
Get the URL for this request
|
MWRequestState<T> |
getState()
Get the current state of the request.
|
UUID |
getTempId() |
void |
markCreated() |
void |
markReadingError(org.apache.http.client.methods.HttpGet httpGet) |
void |
markReadingResponse(org.apache.http.client.methods.HttpGet httpGet) |
void |
release()
Release resources on the server
|
void |
sendCancelRequest() |
String |
toString() |
void |
updateStateAndNotify(MWRequestState<T> newState) |
public final Object lock
public boolean markedForCancellation
public org.apache.http.client.methods.HttpUriRequest httpPost
public org.apache.http.client.methods.HttpUriRequest httpGetResponse
public org.apache.http.client.methods.HttpUriRequest httpGetError
public MWRequestImpl(MWClient client, MWRequestListener<T> listener, MWRequestInfo<T> clientRequestInfo, ApacheFevalHandler fevalHandler)
public void release()
MWRequestpublic Future<T> getFuture()
MWRequestpublic MWRequestState<T> getState()
MWRequestpublic MWClient getClient()
MWRequestpublic MWRequestInfo<T> getClientRequestInfo()
public MWRequestStateVisitor<T> getFutureVisitor()
public UUID getTempId()
public void markReadingResponse(org.apache.http.client.methods.HttpGet httpGet)
public void markReadingError(org.apache.http.client.methods.HttpGet httpGet)
public void markCreated()
public void updateStateAndNotify(MWRequestState<T> newState)
public boolean cancel()
public void sendCancelRequest()
public void abort()
public String getRequestURL()
MWRequestgetRequestURL in interface MWRequest<T>Copyright © 2015–2021. All rights reserved.