org.tinygroup.weblayer.webcontext.session.valueencode.impl
类 SimpleValueEncoder
java.lang.Object
org.tinygroup.support.BeanSupport
org.tinygroup.weblayer.webcontext.session.valueencode.AbstractSessionValueEncoder
org.tinygroup.weblayer.webcontext.session.valueencode.impl.SimpleValueEncoder
- 所有已实现的接口:
- org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, SessionValueEncoder
public class SimpleValueEncoder
- extends AbstractSessionValueEncoder
将一个简单类型编码成字符串,或反之。支持加密。
- 作者:
- renhui
| 从类 org.tinygroup.support.BeanSupport 继承的方法 |
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, init, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanName, toString |
SimpleValueEncoder
public SimpleValueEncoder()
setType
public void setType(Class<?> type)
doURLEncode
protected boolean doURLEncode()
- 指定者:
- 类
AbstractSessionValueEncoder 中的 doURLEncode
doCompress
protected boolean doCompress()
- 简单值不压缩,取得的字符串较短。
- 指定者:
- 类
AbstractSessionValueEncoder 中的 doCompress
encodeValue
protected String encodeValue(Object value)
throws Exception
- 指定者:
- 类
AbstractSessionValueEncoder 中的 encodeValue
- 抛出:
Exception
decodeValue
protected Object decodeValue(String encodedValue)
throws Exception
- 指定者:
- 类
AbstractSessionValueEncoder 中的 decodeValue
- 抛出:
Exception
Copyright © 2006–2013 开源组织. All rights reserved.