java.lang.Object
io.helidon.webclient.sse.SseSourceHandlerProvider
- All Implemented Interfaces:
SourceHandlerProvider<SseEvent>
A handler for SSE sources.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionhandle
(X source, HttpClientResponse response, MediaContext mediaContext) Handles a source.boolean
supports
(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:SourceHandlerProvider
Checks if a provider supports the type.- Specified by:
supports
in 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:SourceHandlerProvider
Handles a source.- Specified by:
handle
in interfaceSourceHandlerProvider<SseEvent>
- Type Parameters:
X
- type of source- Parameters:
source
- the sourceresponse
- the HTTP responsemediaContext
- the media context
-