Class SessionsEndpoint
java.lang.Object
org.springframework.boot.session.endpoint.SessionsEndpoint
-
Constructor Summary
ConstructorsConstructorDescriptionSessionsEndpoint
(org.springframework.session.SessionRepository<? extends org.springframework.session.Session> sessionRepository, @Nullable org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> indexedSessionRepository) Create a newSessionsEndpoint
instance. -
Method Summary
Modifier and TypeMethodDescriptionvoid
deleteSession
(String sessionId) @Nullable SessionsDescriptor.SessionDescriptor
getSession
(String sessionId) @Nullable SessionsDescriptor
sessionsForUsername
(String username)
-
Constructor Details
-
SessionsEndpoint
public SessionsEndpoint(org.springframework.session.SessionRepository<? extends org.springframework.session.Session> sessionRepository, @Nullable org.springframework.session.FindByIndexNameSessionRepository<? extends org.springframework.session.Session> indexedSessionRepository) Create a newSessionsEndpoint
instance.- Parameters:
sessionRepository
- the session repositoryindexedSessionRepository
- the indexed session repository
-
-
Method Details
-
sessionsForUsername
-
getSession
@ReadOperation public @Nullable SessionsDescriptor.SessionDescriptor getSession(@Selector String sessionId) -
deleteSession
-