public interface ResponseHandler
| Modifier and Type | Method and Description |
|---|---|
void |
onCompletion(HttpResponse response)
Invoked on successful completion of asynchronous processing of an
HttpResponse. |
void |
onFailure(Exception exception)
Invoked when a failure occurs during asynchronous processing of an
HttpResponse. |
void onCompletion(HttpResponse response)
HttpResponse.
Exceptions found while processing the response are to be notified through
the exceptionCallback, which might (depending on HandledCompletionExceptionResult)
produce a new value as the result of handling such error
response - the result of processingvoid onFailure(Exception exception)
HttpResponse.exception - the exception thrown during processingCopyright © 2003–2017 MuleSoft, Inc.. All rights reserved.