Interface ContentRetrieverListener
A
ContentRetriever listener that listens for requests, responses and errors.- Since:
- 1.11.0
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidonError(ContentRetrieverErrorContext errorContext) This method is called when an error occurs during retrieval.default voidonRequest(ContentRetrieverRequestContext requestContext) This method is called before the request is executed against the retriever.default voidonResponse(ContentRetrieverResponseContext responseContext) This method is called after a successful retrieval.
-
Method Details
-
onRequest
This method is called before the request is executed against the retriever.- Parameters:
requestContext- The request context. It contains theQueryand attributes. The attributes can be used to pass data between methods of this listener or between multiple listeners.
-
onResponse
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
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.
-