Interface SRUCallback<V extends eu.clarin.sru.client.SRUAbstractRequest,​S extends eu.clarin.sru.client.SRUAbstractResponse<V>>

    • Method Detail

      • onSuccess

        void onSuccess​(S response)
        Invoked when the request has been completed successfully.
        Parameters:
        response - the response to the request
      • onError

        void onError​(V request,
                     SRUClientException error)
        Invoked when the request yielded an error
        Parameters:
        request - the original request
        error - the error