public class DefaultResponseListener extends java.lang.Object implements ResponseListener
| Constructor and Description |
|---|
DefaultResponseListener() |
| Modifier and Type | Method and Description |
|---|---|
void |
onCancelled(CancelledEvent event)
Callback when a request is cancelled
|
void |
onFailure(FailureEvent event)
Callback when a failure occurs on the client side (network issue, serializable error...)
|
void |
onFault(FaultEvent event)
Callback when a fault is received (usually server exceptions are received as faults)
|
void |
onResult(ResultEvent event)
Callback when a request has been successfully processed
|
void |
onTimeout(TimeoutEvent event)
Callback when a request times out
|
public void onResult(ResultEvent event)
ResponseListeneronResult in interface ResponseListenerevent - result event holding the result messagepublic void onFault(FaultEvent event)
ResponseListeneronFault in interface ResponseListenerevent - fault event holding the remote errorpublic void onFailure(FailureEvent event)
ResponseListeneronFailure in interface ResponseListenerevent - failure event holding the local exceptionpublic void onTimeout(TimeoutEvent event)
ResponseListeneronTimeout in interface ResponseListenerevent - timeout event holding the local exceptionpublic void onCancelled(CancelledEvent event)
ResponseListeneronCancelled in interface ResponseListenerevent - cancel event holding the local exception