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.weblayer.webcontext.session.valueencode.AbstractSessionValueEncoder 继承的字段
encrypter
 
构造方法摘要
SimpleValueEncoder()
           
 
方法摘要
protected  Object decodeValue(String encodedValue)
           
protected  boolean doCompress()
          简单值不压缩,取得的字符串较短。
protected  boolean doURLEncode()
           
protected  String encodeValue(Object value)
           
 void setType(Class<?> type)
           
 
从类 org.tinygroup.weblayer.webcontext.session.valueencode.AbstractSessionValueEncoder 继承的方法
convertToString, convertToType, decode, encode, getCharset, getTypeConverter, setCharset, setEncrypter
 
从类 org.tinygroup.support.BeanSupport 继承的方法
afterPropertiesSet, assertInitialized, destroy, dispose, getBeanDescription, getBeanDescription, getBeanInterface, getBeanName, init, isInitialized, postDispose, postInit, preDispose, preInit, resolveBeanInterface, setBeanName, toString
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

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–2014 开源组织. All rights reserved.