java.lang.Object
io.helidon.webclient.sse.SseSourceHandlerProvider
- All Implemented Interfaces:
SourceHandlerProvider<SseEvent>
A handler for SSE sources.
-
Constructor Summary
Constructors -
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.
-
Constructor Details
-
SseSourceHandlerProvider
public SseSourceHandlerProvider()
-
-
Method Details
-
supports
Description copied from interface:SourceHandlerProviderChecks if a provider supports the type.- Specified by:
supportsin interfaceSourceHandlerProvider<SseEvent>- Parameters:
type- the source typeresponse- the HTTP response- Returns:
- outcome of test
-
handle
public <X extends Source<SseEvent>> void handle(X source, HttpClientResponse response, MediaContext mediaContext) Description copied from interface:SourceHandlerProviderHandles a source.- Specified by:
handlein interfaceSourceHandlerProvider<SseEvent>- Type Parameters:
X- type of source- Parameters:
source- the sourceresponse- the HTTP responsemediaContext- the media context
-