public class WebStatFilter extends Object implements javax.servlet.Filter
限定符和类型 | 类和说明 |
---|---|
static class |
WebStatFilter.StatHttpServletResponseWrapper |
限定符和类型 | 字段和说明 |
---|---|
static int |
DEFAULT_MAX_STAT_SESSION_COUNT |
static String |
PARAM_NAME_EXCLUSIONS |
static String |
PARAM_NAME_PRINCIPAL_COOKIE_NAME |
static String |
PARAM_NAME_PRINCIPAL_SESSION_NAME |
static String |
PARAM_NAME_SESSION_STAT_ENABLE |
static String |
PARAM_NAME_SESSION_STAT_MAX_COUNT |
构造器和说明 |
---|
WebStatFilter() |
限定符和类型 | 方法和说明 |
---|---|
void |
destroy() |
void |
doFilter(javax.servlet.ServletRequest request,
javax.servlet.ServletResponse response,
javax.servlet.FilterChain chain) |
String |
getContextPath() |
String |
getPrincipal(javax.servlet.http.HttpServletRequest httpRequest) |
String |
getPrincipalCookieName() |
String |
getPrincipalSessionName() |
String |
getRequestURI(javax.servlet.http.HttpServletRequest request) |
String |
getSessionId(javax.servlet.http.HttpServletRequest httpRequest) |
WebSessionStat |
getSessionStat(javax.servlet.http.HttpServletRequest request) |
int |
getSessionStatMaxCount() |
com.alibaba.druid.support.http.WebStatFilter.WebStatFilterContextListener |
getStatFilterContextListener() |
WebAppStat |
getWebAppStat() |
void |
init(javax.servlet.FilterConfig config) |
boolean |
isExclusion(String requestURI) |
boolean |
isSessionStatEnable() |
void |
setSessionStatEnable(boolean sessionStatEnable) |
public static final String PARAM_NAME_SESSION_STAT_MAX_COUNT
public static final String PARAM_NAME_PRINCIPAL_SESSION_NAME
public static final String PARAM_NAME_PRINCIPAL_COOKIE_NAME
public static final int DEFAULT_MAX_STAT_SESSION_COUNT
public void doFilter(javax.servlet.ServletRequest request, javax.servlet.ServletResponse response, javax.servlet.FilterChain chain) throws IOException, javax.servlet.ServletException
doFilter
在接口中 javax.servlet.Filter
IOException
javax.servlet.ServletException
public WebSessionStat getSessionStat(javax.servlet.http.HttpServletRequest request)
public String getSessionId(javax.servlet.http.HttpServletRequest httpRequest)
public String getPrincipal(javax.servlet.http.HttpServletRequest httpRequest)
public boolean isExclusion(String requestURI)
public String getRequestURI(javax.servlet.http.HttpServletRequest request)
public String getPrincipalSessionName()
public String getPrincipalCookieName()
public void init(javax.servlet.FilterConfig config) throws javax.servlet.ServletException
init
在接口中 javax.servlet.Filter
javax.servlet.ServletException
public void destroy()
destroy
在接口中 javax.servlet.Filter
public boolean isSessionStatEnable()
public void setSessionStatEnable(boolean sessionStatEnable)
public WebAppStat getWebAppStat()
public String getContextPath()
public int getSessionStatMaxCount()
public com.alibaba.druid.support.http.WebStatFilter.WebStatFilterContextListener getStatFilterContextListener()
Copyright © 2012 Alibaba Group. All Rights Reserved.