Class DefaultChatSessionContext
- java.lang.Object
-
- java.util.AbstractMap<K,V>
-
- java.util.HashMap<String,Object>
-
- org.telegram.telegrambots.session.DefaultChatSessionContext
-
- All Implemented Interfaces:
Serializable,Cloneable,Map<String,Object>,org.apache.shiro.session.mgt.SessionContext
public class DefaultChatSessionContext extends HashMap<String,Object> implements org.apache.shiro.session.mgt.SessionContext
- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object,V extends Object>
-
-
Constructor Summary
Constructors Constructor Description DefaultChatSessionContext(long sessionId, String host)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetHost()SerializablegetSessionId()voidsetHost(String host)voidsetSessionId(Serializable serializable)-
Methods inherited from class java.util.HashMap
clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
Methods inherited from class java.util.AbstractMap
equals, hashCode, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Constructor Detail
-
DefaultChatSessionContext
public DefaultChatSessionContext(long sessionId, String host)
-
-
Method Detail
-
getHost
public String getHost()
- Specified by:
getHostin interfaceorg.apache.shiro.session.mgt.SessionContext
-
setHost
public void setHost(String host)
- Specified by:
setHostin interfaceorg.apache.shiro.session.mgt.SessionContext
-
getSessionId
public Serializable getSessionId()
- Specified by:
getSessionIdin interfaceorg.apache.shiro.session.mgt.SessionContext
-
setSessionId
public void setSessionId(Serializable serializable)
- Specified by:
setSessionIdin interfaceorg.apache.shiro.session.mgt.SessionContext
-
-