public interface SessionManager
|Modifier and Type||Method and Description|
Retrieves the session corresponding to the specified contextual data (such as a session ID if applicable), or
Starts a new session based on the specified contextual initialization data, which can be used by the underlying implementation to determine how exactly to create the internal Session instance.
Session start(SessionContext context)
SessionFactorywhich could use the context to construct the internal Session instance in a specific manner. This allows pluggable
Sessioncreation logic by simply injecting a
Session getSession(SessionKey key) throws SessionException
nullif no Session could be found. If a session is found but invalid (stopped or expired), a
SessionExceptionwill be thrown.
key- the Session key to use to look-up the Session
Sessioninstance corresponding to the given lookup key or
nullif no session could be acquired.
SessionException- if a session was found but it was invalid (stopped/expired).
Copyright © 2004–2019 The Apache Software Foundation. All rights reserved.