Session.SessionImpl| Constructor and Description |
|---|
SessionImpl() |
| Modifier and Type | Method and Description |
|---|---|
<T> boolean |
containsSessionProperty(Class<T> type)
Returns
true if a session property exists for the given type. |
<T> boolean |
containsSessionProperty(Class<T> type,
String name)
Returns
true if a session property exists for the given type and name combination. |
boolean |
containsSessionProperty(String name)
Returns
true if a session property exists with the given name. |
void |
copySessionPropertiesFrom(Session session)
Copies all session properties from the given source session into this one.
|
<T> T |
getSessionProperty(Class<T> type)
Returns the session property value associated with the given type.
|
<T> T |
getSessionProperty(Class<T> type,
String name)
Returns the session property value associated with the given type and name combination.
|
<T> T |
getSessionProperty(String name)
Returns the session property value associated with the given name.
|
Set<String> |
keySet()
Returns the set of all session property keys.
|
void |
removeSessionProperties()
Removes all session properties from this session.
|
<T> void |
setSessionProperty(Class<T> type,
Object value)
Sets a session property value keyed by type.
|
<T> void |
setSessionProperty(Class<T> type,
String name,
Object value)
Sets a session property value keyed by the given type and name combination.
|
void |
setSessionProperty(String name,
Object value)
Sets a session property value keyed by name.
|
public Set<String> keySet()
Sessionpublic <T> boolean containsSessionProperty(Class<T> type, String name)
Sessiontrue if a session property exists for the given type and name combination.containsSessionProperty in interface SessionT - the type used as part of the property keytype - the class used as part of the property key, or null to match by name onlyname - the property name, or null to match by type onlytrue if the property existspublic <T> boolean containsSessionProperty(Class<T> type)
Sessiontrue if a session property exists for the given type.containsSessionProperty in interface SessionT - the type used as the property keytype - the class used as the property keytrue if the property existspublic boolean containsSessionProperty(String name)
Sessiontrue if a session property exists with the given name.containsSessionProperty in interface Sessionname - the property nametrue if the property existspublic <T> T getSessionProperty(Class<T> type, String name)
SessiongetSessionProperty in interface SessionT - the expected value typetype - the class used as part of the property key, or null to match by name onlyname - the property name, or null to match by type onlynull if not foundpublic <T> T getSessionProperty(Class<T> type)
SessiongetSessionProperty in interface SessionT - the expected value typetype - the class used as the property keynull if not foundpublic <T> T getSessionProperty(String name)
SessiongetSessionProperty in interface SessionT - the expected value typename - the property namenull if not foundpublic <T> void setSessionProperty(Class<T> type, String name, Object value)
SessionsetSessionProperty in interface SessionT - the type used as part of the property keytype - the class used as part of the property key, or null to match by name onlyname - the property name, or null to match by type onlyvalue - the value to storepublic <T> void setSessionProperty(Class<T> type, Object value)
SessionsetSessionProperty in interface SessionT - the type used as the property keytype - the class used as the property keyvalue - the value to storepublic void setSessionProperty(String name, Object value)
SessionsetSessionProperty in interface Sessionname - the property namevalue - the value to storepublic void copySessionPropertiesFrom(Session session)
SessioncopySessionPropertiesFrom in interface Sessionsession - the source session to copy from, may be nullpublic void removeSessionProperties()
SessionremoveSessionProperties in interface SessionCopyright (c) 2006-2026 North Concepts Inc. All Rights Reserved.