Interface GenericHttpFilter


public sealed interface GenericHttpFilter
Base interface for different filter types. Note that while the base interface is exposed, so you can pass around instances of these filters, the different implementations are internal only.
Since:
4.0.0
Author:
Jonas Konrad
  • Method Details

    • isSuspended

      @Deprecated(forRemoval=true) default boolean isSuspended()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Not needed anymore
      When the filter is using the continuation it needs to be suspended and wait for the response.
      Returns:
      true if suspended
    • isFiltersException

      @Deprecated(forRemoval=true) default boolean isFiltersException()
      Deprecated, for removal: This API element is subject to removal in a future version.
      Not needed anymore
      Returns:
      true if the filter can receive the processing exception.
    • createLegacyFilter

      @Internal static GenericHttpFilter createLegacyFilter(HttpFilter bean, FilterOrder order)
      Create a legacy filter.
      Parameters:
      bean - The HttpFilter bean.
      order - The order
      Returns:
      new filter
      Since:
      4.2.0
    • terminalFilter

      Create a terminal filter.
      Parameters:
      fn - The function that supplier MutableHttpResponse from HttpRequest.
      Returns:
      new terminal filter
      Since:
      4.2.0
    • terminalReactiveFilter

      @Internal static GenericHttpFilter terminalReactiveFilter(Publisher<? extends HttpResponse<?>> responsePublisher)
      Create a terminal reactive filter.
      Parameters:
      responsePublisher - The response publisher
      Returns:
      new terminal filter
      Since:
      4.2.0
    • isEnabled

      @Internal static boolean isEnabled(GenericHttpFilter filter)
      Check if the filter is enabled.
      Parameters:
      filter - The filter
      Returns:
      true if enabled
      Since:
      4.2.0