org.tinygroup.weblayer.webcontext.session.encode
public abstract class AbstractSerializationEncoder extends BeanSupport implements SessionEncoder
Serializer提供的序列化机制来编码对象,以及解码字符串。
编码步骤为:
Serializer序列化,默认使用HessianSerializer。Encrypter存在,用它加密,否则,不加密。解码步骤相反。
| Modifier and Type | Field and 描述 |
|---|---|
protected Encrypter |
encrypter |
protected Serializer |
serializer |
| Constructor and 描述 |
|---|
AbstractSerializationEncoder() |
| Modifier and Type | Method and 描述 |
|---|---|
Map<String,Object> |
decode(String encodedValue,
SessionStore.StoreContext storeContext)
解码。
|
String |
encode(Map<String,Object> attrs,
SessionStore.StoreContext storeContext)
编码。
|
protected void |
init() |
String |
toString() |
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanNameprotected Serializer serializer
protected Encrypter encrypter
protected void init()
throws Exception
init 类 {1} 中的 {0} BeanSupportExceptionpublic String encode(Map<String,Object> attrs, SessionStore.StoreContext storeContext) throws SessionEncoderException
encode 接口 {1} 中的 {0} SessionEncoderSessionEncoderException - 如果编码失败public Map<String,Object> decode(String encodedValue, SessionStore.StoreContext storeContext) throws SessionEncoderException
decode 接口 {1} 中的 {0} SessionEncoderSessionEncoderException - 如果解码失败public String toString()
toString 类 {1} 中的 {0} BeanSupportCopyright © 2006–2015 TinyGroup. All rights reserved.