public class CommonFilter extends Object implements javax.servlet.Filter
| Modifier and Type | Field and Description |
|---|---|
static String |
HTTP_METHOD_SPECIFY
Specify whether the URL resource name should contain the HTTP method prefix (e.g.
|
static String |
WEB_CONTEXT_UNIFY
If enabled, use the default context name, or else use the URL path as the context name,
WebServletConfig.WEB_SERVLET_CONTEXT_NAME. |
| Constructor and Description |
|---|
CommonFilter() |
| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
void |
init(javax.servlet.FilterConfig filterConfig) |
public static final String HTTP_METHOD_SPECIFY
POST:).public static final String WEB_CONTEXT_UNIFY
WebServletConfig.WEB_SERVLET_CONTEXT_NAME. Please pay attention to the number of context (EntranceNode),
which may affect the memory footprint.public void init(javax.servlet.FilterConfig filterConfig)
init in interface javax.servlet.Filterpublic void doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain)
throws IOException,
javax.servlet.ServletException
doFilter in interface javax.servlet.FilterIOExceptionjavax.servlet.ServletExceptionpublic void destroy()
destroy in interface javax.servlet.FilterCopyright © 2023 Alibaba Group. All rights reserved.