Interface SourceHandlerProvider<T>

Type Parameters:
T - event type

public interface SourceHandlerProvider<T>
ServiceLoader provider interface for Source handlers.
  • Method Summary

    Modifier and Type
    Method
    Description
    <X extends Source<T>>
    void
    handle(X source, HttpClientResponse response, io.helidon.http.media.MediaContext mediaContext)
    Handles a source.
    boolean
    supports(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 type
      response - the HTTP response
      Returns:
      outcome of test
    • handle

      <X extends Source<T>> void handle(X source, HttpClientResponse response, io.helidon.http.media.MediaContext mediaContext)
      Handles a source.
      Type Parameters:
      X - type of source
      Parameters:
      source - the source
      response - the HTTP response
      mediaContext - the media context