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 Summary

    Modifier and Type
    Method
    Description
    Create a legacy filter.
    static boolean
    Check if the filter is enabled.
    default boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Not needed anymore
    default boolean
    Deprecated, for removal: This API element is subject to removal in a future version.
    Not needed anymore
  • 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
    • 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