类 SaSessionForFastjson2Customized
java.lang.Object
cn.dev33.satoken.session.SaSession
cn.dev33.satoken.dao.SaSessionForFastjson2Customized
- 所有已实现的接口:
cn.dev33.satoken.application.SaGetValueInterface,cn.dev33.satoken.application.SaSetValueInterface,Serializable
public class SaSessionForFastjson2Customized
extends cn.dev33.satoken.session.SaSession
Fastjson 定制版 SaSession,重写类型转换API
- 从以下版本开始:
- 2022-10-19
- 作者:
- kong
- 另请参阅:
-
字段概要
从类继承的字段 cn.dev33.satoken.session.SaSession
PERMISSION_LIST, ROLE_LIST, USER -
构造器概要
构造器构造器说明构建一个 SaSession 对象 -
方法概要
从类继承的方法 cn.dev33.satoken.session.SaSession
addTokenSign, addTokenSign, clear, delete, get, getCreateTime, getDataMap, getId, getTokenSign, getTokenSignList, keys, logout, logoutByTokenSignCountToZero, refreshDataMap, removeTokenSign, set, setByNull, setCreateTime, setId, setTokenSignList, tokenSignListCopy, tokenSignListCopyByDevice, trans, update, updateMaxTimeout, updateMinTimeout, updateTimeout从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.dev33.satoken.application.SaGetValueInterface
get, getDouble, getFloat, getInt, getLong, getString, getValueByDefaultValue, has, valueIsNull从接口继承的方法 cn.dev33.satoken.application.SaSetValueInterface
get
-
构造器详细资料
-
SaSessionForFastjson2Customized
public SaSessionForFastjson2Customized() -
SaSessionForFastjson2Customized
构建一个 SaSession 对象- 参数:
id- Session 的 id
-
-
方法详细资料
-
getModel
取值 (指定转换类型)- 类型参数:
T- 泛型- 参数:
key- keycs- 指定转换类型- 返回:
- 值
-
getModel
取值 (指定转换类型, 并指定值为Null时返回的默认值)- 类型参数:
T- 泛型- 参数:
key- keycs- 指定转换类型defaultValue- 值为Null时返回的默认值- 返回:
- 值
-
getTimeout
public long getTimeout()忽略 timeout 字段的序列化- 覆盖:
getTimeout在类中cn.dev33.satoken.session.SaSession
-