Class AbstractWebStatImpl
- java.lang.Object
-
- com.alibaba.druid.support.jakarta.AbstractWebStatImpl
-
- Direct Known Subclasses:
WebStatFilter
public class AbstractWebStatImpl extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classAbstractWebStatImpl.WebStatFilterContextListener
-
Field Summary
Fields Modifier and Type Field Description protected StringcontextPathprotected booleancreateSessionstatic intDEFAULT_MAX_STAT_SESSION_COUNTprotected StringprincipalCookieNameprotected StringprincipalSessionNameprotected booleanprofileEnableprotected StringrealIpHeaderprotected booleansessionStatEnableprotected intsessionStatMaxCountprotected AbstractWebStatImpl.WebStatFilterContextListenerstatFilterContextListenerprotected WebAppStatwebAppStat
-
Constructor Summary
Constructors Constructor Description AbstractWebStatImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContextPath()StringgetPrincipal(jakarta.servlet.http.HttpServletRequest httpRequest)StringgetPrincipalCookieName()StringgetPrincipalSessionName()protected StringgetRemoteAddress(jakarta.servlet.http.HttpServletRequest request)StringgetRequestURI(jakarta.servlet.http.HttpServletRequest request)StringgetSessionId(jakarta.servlet.http.HttpServletRequest httpRequest)WebSessionStatgetSessionStat(jakarta.servlet.http.HttpServletRequest request)intgetSessionStatMaxCount()booleanisProfileEnable()booleanisSessionStatEnable()voidsetProfileEnable(boolean profileEnable)voidsetSessionStatEnable(boolean sessionStatEnable)
-
-
-
Field Detail
-
DEFAULT_MAX_STAT_SESSION_COUNT
public static final int DEFAULT_MAX_STAT_SESSION_COUNT
- See Also:
- Constant Field Values
-
webAppStat
protected WebAppStat webAppStat
-
sessionStatEnable
protected boolean sessionStatEnable
-
sessionStatMaxCount
protected int sessionStatMaxCount
-
createSession
protected boolean createSession
-
profileEnable
protected boolean profileEnable
-
contextPath
protected String contextPath
-
principalSessionName
protected String principalSessionName
-
principalCookieName
protected String principalCookieName
-
realIpHeader
protected String realIpHeader
-
statFilterContextListener
protected AbstractWebStatImpl.WebStatFilterContextListener statFilterContextListener
-
-
Method Detail
-
isSessionStatEnable
public boolean isSessionStatEnable()
-
setSessionStatEnable
public void setSessionStatEnable(boolean sessionStatEnable)
-
isProfileEnable
public boolean isProfileEnable()
-
setProfileEnable
public void setProfileEnable(boolean profileEnable)
-
getContextPath
public String getContextPath()
-
getSessionStatMaxCount
public int getSessionStatMaxCount()
-
getRequestURI
public String getRequestURI(jakarta.servlet.http.HttpServletRequest request)
-
getPrincipalSessionName
public String getPrincipalSessionName()
-
getPrincipalCookieName
public String getPrincipalCookieName()
-
getSessionStat
public WebSessionStat getSessionStat(jakarta.servlet.http.HttpServletRequest request)
-
getRemoteAddress
protected String getRemoteAddress(jakarta.servlet.http.HttpServletRequest request)
-
getSessionId
public String getSessionId(jakarta.servlet.http.HttpServletRequest httpRequest)
-
getPrincipal
public String getPrincipal(jakarta.servlet.http.HttpServletRequest httpRequest)
-
-