Class SessionsEndpoint
java.lang.Object
org.springframework.boot.actuate.session.SessionsEndpoint
@Endpoint
to expose information about HTTP Session
s on a
Servlet stack.- Since:
- 2.0.0
- Author:
- Vedran Pavic
-
Constructor Summary
ConstructorDescriptionSessionsEndpoint
(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository) Deprecated, for removal: This API element is subject to removal in a future version.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. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteSession
(String sessionId) getSession
(String sessionId) sessionsForUsername
(String username)
-
Constructor Details
-
SessionsEndpoint
@Deprecated(since="3.3.0", forRemoval=true) public SessionsEndpoint(org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> sessionRepository) Deprecated, for removal: This API element is subject to removal in a future version.since 3.3.0 for removal in 3.5.0 in favor ofSessionsEndpoint(SessionRepository, FindByIndexNameSessionRepository)
Create a newSessionsEndpoint
instance.- Parameters:
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.- Parameters:
sessionRepository
- the session repositoryindexedSessionRepository
- the indexed session repository- Since:
- 3.3.0
-
-
Method Details
-
sessionsForUsername
-
getSession
-
deleteSession
-
SessionsEndpoint(SessionRepository, FindByIndexNameSessionRepository)