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