- Type Parameters:
T- event type
- All Known Implementing Classes:
SseSourceHandlerProvider
public interface SourceHandlerProvider<T>
ServiceLoader provider interface for Source handlers.-
Method Summary
Modifier and TypeMethodDescriptionhandle(X source, HttpClientResponse response, MediaContext mediaContext) Handles a source.booleansupports(GenericType<? extends Source<?>> type, HttpClientResponse response) Checks if a provider supports the type.
-
Method Details
-
supports
Checks if a provider supports the type.- Parameters:
type- the source typeresponse- the HTTP response- Returns:
- outcome of test
-
handle
Handles a source.- Type Parameters:
X- type of source- Parameters:
source- the sourceresponse- the HTTP responsemediaContext- the media context
-