Class FilterRegistrationBeanUtil
java.lang.Object
org.hawaiiframework.logging.config.filter.FilterRegistrationBeanUtil
Utility for registering filter registration beans for servlet filters.
-
Method Summary
Modifier and TypeMethodDescriptionstatic <T extends jakarta.servlet.Filter>
org.springframework.boot.web.servlet.FilterRegistrationBean<T>createFilterRegistrationBean(T filter, int filterOrder) Helper method to wrap a filter in aFilterRegistrationBeanwith 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 aFilterRegistrationBeanwith the configured order.
-
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 aFilterRegistrationBeanwith 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 aFilterRegistrationBeanwith the configured order.- Type Parameters:
T- the specific filter type.- Parameters:
filter- the filterfilterOrder- the filter's order.dispatcherTypes- the request dispatcher types the filter is used for- Returns:
- the filter registration.
-