- Type Parameters:
T- event type
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(io.helidon.common.GenericType<? extends Source<?>> type, HttpClientResponse response) Checks if a provider supports the type.
-
Method Details
-
supports
boolean supports(io.helidon.common.GenericType<? extends Source<?>> type, HttpClientResponse response) 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
-