Interface ContentRetrieverListener


@Experimental public interface ContentRetrieverListener
A ContentRetriever listener that listens for requests, responses and errors.
Since:
1.11.0
  • Method Details

    • onRequest

      default void onRequest(ContentRetrieverRequestContext requestContext)
      This method is called before the request is executed against the retriever.
      Parameters:
      requestContext - The request context. It contains the Query and attributes. The attributes can be used to pass data between methods of this listener or between multiple listeners.
    • onResponse

      default void onResponse(ContentRetrieverResponseContext responseContext)
      This method is called after a successful retrieval.
      Parameters:
      responseContext - The response context. It contains retrieved content, corresponding query and attributes. The attributes can be used to pass data between methods of this listener or between multiple listeners.
    • onError

      default void onError(ContentRetrieverErrorContext errorContext)
      This method is called when an error occurs during retrieval.
      Parameters:
      errorContext - The error context. It contains the error, corresponding query and attributes. The attributes can be used to pass data between methods of this listener or between multiple listeners.