Class OrderedHiddenHttpMethodFilter
java.lang.Object
org.springframework.web.filter.GenericFilterBean
org.springframework.web.filter.OncePerRequestFilter
org.springframework.web.filter.HiddenHttpMethodFilter
org.springframework.boot.web.servlet.filter.OrderedHiddenHttpMethodFilter
- All Implemented Interfaces:
jakarta.servlet.Filter,org.springframework.beans.factory.Aware,org.springframework.beans.factory.BeanNameAware,org.springframework.beans.factory.DisposableBean,org.springframework.beans.factory.InitializingBean,OrderedFilter,org.springframework.context.EnvironmentAware,org.springframework.core.env.EnvironmentCapable,org.springframework.core.Ordered,org.springframework.web.context.ServletContextAware
public class OrderedHiddenHttpMethodFilter
extends org.springframework.web.filter.HiddenHttpMethodFilter
implements OrderedFilter
HiddenHttpMethodFilter that also implements Ordered.- Since:
- 2.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe default order is high to ensure the filter is applied before Spring Security.Fields inherited from class org.springframework.web.filter.HiddenHttpMethodFilter
DEFAULT_METHOD_PARAMFields inherited from class org.springframework.web.filter.OncePerRequestFilter
ALREADY_FILTERED_SUFFIXFields inherited from class org.springframework.web.filter.GenericFilterBean
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCEFields inherited from interface org.springframework.boot.web.servlet.filter.OrderedFilter
REQUEST_WRAPPER_FILTER_MAX_ORDER -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.springframework.web.filter.HiddenHttpMethodFilter
doFilterInternal, setMethodParamMethods inherited from class org.springframework.web.filter.OncePerRequestFilter
doFilter, doFilterNestedErrorDispatch, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchMethods inherited from class org.springframework.web.filter.GenericFilterBean
addRequiredProperty, afterPropertiesSet, createEnvironment, destroy, getEnvironment, getFilterConfig, getFilterName, getServletContext, init, initBeanWrapper, initFilterBean, setBeanName, setEnvironment, setServletContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface jakarta.servlet.Filter
destroy, doFilter, init
-
Field Details
-
DEFAULT_ORDER
public static final int DEFAULT_ORDERThe default order is high to ensure the filter is applied before Spring Security.- See Also:
-
-
Constructor Details
-
OrderedHiddenHttpMethodFilter
public OrderedHiddenHttpMethodFilter()
-
-
Method Details
-
getOrder
public int getOrder()- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
setOrder
public void setOrder(int order) Set the order for this filter.- Parameters:
order- the order to set
-