public interface SessionEncoder
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
decode(String encodedValue,
SessionStore.StoreContext storeContext)
将字符串解码成对象。
|
String |
encode(Map<String,Object> attrs,
SessionStore.StoreContext storeContext)
将对象编码成字符串。
|
String encode(Map<String,Object> attrs, SessionStore.StoreContext storeContext) throws SessionEncoderException
SessionEncoderException
- 如果编码失败Map<String,Object> decode(String encodedValue, SessionStore.StoreContext storeContext) throws SessionEncoderException
如果有多个encoders存在,当前encoder解码失败抛出异常以后,系统会去尝试用其它encoders解码
SessionEncoderException
- 如果解码失败Copyright © 2006–2018 TinyGroup. All rights reserved.