Interface Olingo4ResponseHandler<T>


  • public interface Olingo4ResponseHandler<T>
    Callback interface to asynchronously process Olingo4 response.
    • Method Detail

      • onResponse

        void onResponse​(T response,
                        Map<String,​String> responseHeaders)
        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

        void onException​(Exception ex)
        Handle exception raised from Olingo4 request.
        Parameters:
        ex - exception from Olingo4 request. May be an instance of ODataException or some other exception, such as IOException
      • onCanceled

        void onCanceled()
        Handle Olingo4 request cancellation. May be caused by the underlying HTTP connection being shutdown asynchronously.