public class HiddenHttpMethodFilter
extends org.springframework.web.filter.OncePerRequestFilter
HiddenHttpMethodFilter| Modifier and Type | Class and Description |
|---|---|
protected static class |
HiddenHttpMethodFilter.HttpMethodRequestWrapper
Simple
HttpServletRequest wrapper that returns the supplied method for
HttpServletRequest.getMethod(). |
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
DEFAULT_METHOD_PARAM
Default method parameter:
_method |
static java.lang.String |
HEADER_X_HTTP_METHOD_OVERRIDE |
| Constructor and Description |
|---|
HiddenHttpMethodFilter() |
| Modifier and Type | Method 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) |
void |
setMethodParam(java.lang.String methodParam)
Set the parameter name to look for HTTP methods.
|
doFilter, getAlreadyFilteredAttributeName, isAsyncDispatch, isAsyncStarted, shouldNotFilter, shouldNotFilterAsyncDispatch, shouldNotFilterErrorDispatchpublic static final java.lang.String DEFAULT_METHOD_PARAM
_methodpublic static final java.lang.String HEADER_X_HTTP_METHOD_OVERRIDE
public void setMethodParam(java.lang.String methodParam)
DEFAULT_METHOD_PARAMprotected void doFilterInternal(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
javax.servlet.FilterChain filterChain)
throws javax.servlet.ServletException,
java.io.IOException
doFilterInternal in class org.springframework.web.filter.OncePerRequestFilterjavax.servlet.ServletExceptionjava.io.IOExceptionprotected java.lang.String getHttpMethodOverride(javax.servlet.http.HttpServletRequest request)