public interface Olingo2ResponseHandler<T>
Modifier and Type | Method and Description |
---|---|
void |
onCanceled()
Handle Olingo2 request cancellation.
|
void |
onException(Exception ex)
Handle exception raised from Olingo2 request.
|
void |
onResponse(T response,
Map<String,String> responseHeaders)
Handle response data on successful completion of Olingo2 request.
|
void onResponse(T response, Map<String,String> responseHeaders)
response
- response data from Olingo2, may be NULL for Olingo2 operations with no response data.responseHeaders
- the response HTTP headers received from the endpoint.void onException(Exception ex)
ex
- exception from Olingo2 request.
May be an instance of ODataException
or
some other exception, such as IOException
void onCanceled()
Apache Camel