public class SessionApplicationStatePersistenceStrategy extends Object implements ApplicationStatePersistenceStrategy
Session
, which will be created as necessary.Constructor and Description |
---|
SessionApplicationStatePersistenceStrategy(Request request) |
Modifier and Type | Method and Description |
---|---|
protected <T> String |
buildKey(Class<T> ssoClass) |
<T> boolean |
exists(Class<T> ssoClass)
Returns true if the SSO already exists, false if null.
|
<T> T |
get(Class<T> ssoClass,
ApplicationStateCreator<T> creator)
Gets the SSO from the domain.
|
<T> T |
getIfExists(Class<T> ssoClass)
Returns the SSO if it exists or null.
|
protected <T> Object |
getOrCreate(Class<T> ssoClass,
ApplicationStateCreator<T> creator) |
protected Session |
getSession() |
<T> void |
set(Class<T> ssoClass,
T sso)
Stores a new SSO, possibly replacing the existing one.
|
public SessionApplicationStatePersistenceStrategy(Request request)
protected Session getSession()
public <T> T get(Class<T> ssoClass, ApplicationStateCreator<T> creator)
ApplicationStatePersistenceStrategy
get
in interface ApplicationStatePersistenceStrategy
protected <T> Object getOrCreate(Class<T> ssoClass, ApplicationStateCreator<T> creator)
public <T> T getIfExists(Class<T> ssoClass)
ApplicationStatePersistenceStrategy
getIfExists
in interface ApplicationStatePersistenceStrategy
public <T> void set(Class<T> ssoClass, T sso)
ApplicationStatePersistenceStrategy
set
in interface ApplicationStatePersistenceStrategy
sso
- instance to store, or null to delete existingpublic <T> boolean exists(Class<T> ssoClass)
ApplicationStatePersistenceStrategy
exists
in interface ApplicationStatePersistenceStrategy
5.6.3 - Copyright © 2003-2021 The Apache Software Foundation.