public class HiddenHttpMethodFilter extends org.springframework.web.filter.OncePerRequestFilter
Based off the Spring implementation, but also supports the X-HTTP-Method-Override HTTP header.
Modifiers | Name | Description |
---|---|---|
protected static class |
HiddenHttpMethodFilter.HttpMethodRequestWrapper |
Simple javax.servlet.http.HttpServletRequest wrapper that returns the supplied method for javax.servlet.http.HttpServletRequest#getMethod(). |
Modifiers | Name | Description |
---|---|---|
static java.lang.String |
DEFAULT_METHOD_PARAM |
Default method parameter: _method |
static java.lang.String |
HEADER_X_HTTP_METHOD_OVERRIDE |
Fields inherited from class | Fields |
---|---|
class org.springframework.web.filter.OncePerRequestFilter |
ALREADY_FILTERED_SUFFIX |
Type Params | Return Type | Name and description |
---|---|---|
|
protected void |
doFilterInternal(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, javax.servlet.FilterChain filterChain) |
|
protected java.lang.String |
getHttpMethodOverride(javax.servlet.http.HttpServletRequest request) |
|
public void |
setMethodParam(java.lang.String methodParam) Set the parameter name to look for HTTP methods. |
Methods inherited from class | Name |
---|---|
class org.springframework.web.filter.OncePerRequestFilter |
org.springframework.web.filter.OncePerRequestFilter#doFilter(javax.servlet.ServletRequest, javax.servlet.ServletResponse, javax.servlet.FilterChain), org.springframework.web.filter.OncePerRequestFilter#getEnvironment(), org.springframework.web.filter.OncePerRequestFilter#setEnvironment(org.springframework.core.env.Environment), org.springframework.web.filter.OncePerRequestFilter#getFilterConfig(), org.springframework.web.filter.OncePerRequestFilter#setServletContext(javax.servlet.ServletContext), org.springframework.web.filter.OncePerRequestFilter#afterPropertiesSet(), org.springframework.web.filter.OncePerRequestFilter#setBeanName(java.lang.String), org.springframework.web.filter.OncePerRequestFilter#init(javax.servlet.FilterConfig), org.springframework.web.filter.OncePerRequestFilter#destroy(), org.springframework.web.filter.OncePerRequestFilter#wait(long, int), org.springframework.web.filter.OncePerRequestFilter#wait(long), org.springframework.web.filter.OncePerRequestFilter#wait(), org.springframework.web.filter.OncePerRequestFilter#equals(java.lang.Object), org.springframework.web.filter.OncePerRequestFilter#toString(), org.springframework.web.filter.OncePerRequestFilter#hashCode(), org.springframework.web.filter.OncePerRequestFilter#getClass(), org.springframework.web.filter.OncePerRequestFilter#notify(), org.springframework.web.filter.OncePerRequestFilter#notifyAll() |
Default method parameter: _method
Set the parameter name to look for HTTP methods.