类 SessionsEndpoint
java.lang.Object
org.springframework.boot.actuate.session.SessionsEndpoint
@Endpoint
to expose information about HTTP Session
s on a
Servlet stack.- 从以下版本开始:
- 2.0.0
- 作者:
- Vedran Pavic
-
构造器概要
构造器构造器说明SessionsEndpoint
(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository) 已过时, 待删除: 此 API 元素将从以后的版本中删除。SessionsEndpoint
(org.springframework.session.SessionRepository<? extends org.springframework.session.Session> sessionRepository, org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> indexedSessionRepository) Create a newSessionsEndpoint
instance. -
方法概要
修饰符和类型方法说明void
deleteSession
(String sessionId) getSession
(String sessionId) sessionsForUsername
(String username)
-
构造器详细资料
-
SessionsEndpoint
@Deprecated(since="3.3.0", forRemoval=true) public SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository) 已过时, 待删除: 此 API 元素将从以后的版本中删除。since 3.3.0 for removal in 3.5.0 in favor ofSessionsEndpoint(SessionRepository, FindByIndexNameSessionRepository)
Create a newSessionsEndpoint
instance.- 参数:
sessionRepository
- the session repository
-
SessionsEndpoint
public SessionsEndpoint(org.springframework.session.SessionRepository<? extends org.springframework.session.Session> sessionRepository, org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> indexedSessionRepository) Create a newSessionsEndpoint
instance.- 参数:
sessionRepository
- the session repositoryindexedSessionRepository
- the indexed session repository- 从以下版本开始:
- 3.3.0
-
-
方法详细资料
-
sessionsForUsername
-
getSession
-
deleteSession
-
SessionsEndpoint(SessionRepository, FindByIndexNameSessionRepository)