Class FilterRegistrationBeanUtil

java.lang.Object
org.hawaiiframework.logging.config.filter.FilterRegistrationBeanUtil

public final class FilterRegistrationBeanUtil extends Object
Utility for registering filter registration beans for servlet filters.
  • Method Summary

    Modifier and Type
    Method
    Description
    static <T extends jakarta.servlet.Filter>
    org.springframework.boot.web.servlet.FilterRegistrationBean<T>
    createFilterRegistrationBean(T filter, int filterOrder)
    Helper method to wrap a filter in a FilterRegistrationBean with the configured order.
    static <T extends jakarta.servlet.Filter>
    org.springframework.boot.web.servlet.FilterRegistrationBean<T>
    createFilterRegistrationBean(T filter, int filterOrder, EnumSet<jakarta.servlet.DispatcherType> dispatcherTypes)
    Helper method to wrap a filter in a FilterRegistrationBean with the configured order.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • createFilterRegistrationBean

      public static <T extends jakarta.servlet.Filter> org.springframework.boot.web.servlet.FilterRegistrationBean<T> createFilterRegistrationBean(T filter, int filterOrder)
      Helper method to wrap a filter in a FilterRegistrationBean with the configured order.
      Type Parameters:
      T - the specific filter type.
      Parameters:
      filter - the filter.
      filterOrder - the filter's order.
      Returns:
      the filter registration.
    • createFilterRegistrationBean

      public static <T extends jakarta.servlet.Filter> org.springframework.boot.web.servlet.FilterRegistrationBean<T> createFilterRegistrationBean(T filter, int filterOrder, EnumSet<jakarta.servlet.DispatcherType> dispatcherTypes)
      Helper method to wrap a filter in a FilterRegistrationBean with the configured order.
      Type Parameters:
      T - the specific filter type.
      Parameters:
      filter - the filter
      filterOrder - the filter's order.
      dispatcherTypes - the request dispatcher types the filter is used for
      Returns:
      the filter registration.