Interface Olingo4ResponseHandler<T>
public interface Olingo4ResponseHandler<T>
Callback interface to asynchronously process Olingo4 response.
-
Method Summary
Modifier and TypeMethodDescriptionvoidHandle Olingo4 request cancellation.voidonException(Exception ex) Handle exception raised from Olingo4 request.voidonResponse(T response, Map<String, String> responseHeaders) Handle response data on successful completion of Olingo4 request.
-
Method Details
-
onResponse
Handle response data on successful completion of Olingo4 request.- Parameters:
response- response data from Olingo4, may be NULL for Olingo4 operations with no response data.responseHeaders- the response HTTP headers received from the endpoint.
-
onException
Handle exception raised from Olingo4 request.- Parameters:
ex- exception from Olingo4 request. May be an instance ofODataExceptionor some other exception, such asIOException
-
onCanceled
void onCanceled()Handle Olingo4 request cancellation. May be caused by the underlying HTTP connection being shutdown asynchronously.
-