public class RestRequestImpl extends java.lang.Object implements RestRequest, RequestExecutionCallbacks
| Constructor and Description |
|---|
RestRequestImpl(ConnectionDefinition connectionDefinition,
WebserviceImpl webservice) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel() |
void |
execute() |
void |
executeAndWait() |
boolean |
isExecuting() |
void |
onException(java.lang.Exception exception) |
void |
onRequestCompleted(ResponseImpl response) |
void |
onTimeout() |
public RestRequestImpl(ConnectionDefinition connectionDefinition, WebserviceImpl webservice)
public void execute()
throws AlreadyExecutingException
execute in interface RestRequestAlreadyExecutingExceptionpublic void executeAndWait()
throws AlreadyExecutingException
executeAndWait in interface RestRequestAlreadyExecutingExceptionpublic boolean isExecuting()
isExecuting in interface RestRequestpublic void cancel()
cancel in interface RestRequestpublic void onRequestCompleted(ResponseImpl response)
onRequestCompleted in interface RequestExecutionCallbackspublic void onException(java.lang.Exception exception)
onException in interface RequestExecutionCallbackspublic void onTimeout()
onTimeout in interface RequestExecutionCallbacks