org.tinygroup.weblayer.webcontext.session.valueencode.impl
类 MappedValuesEncoder

java.lang.Object
  继承者 org.tinygroup.support.BeanSupport
      继承者 org.tinygroup.weblayer.webcontext.session.valueencode.AbstractSessionValueEncoder
          继承者 org.tinygroup.weblayer.webcontext.session.valueencode.impl.MappedValuesEncoder
所有已实现的接口:
org.springframework.beans.factory.BeanNameAware, org.springframework.beans.factory.DisposableBean, org.springframework.beans.factory.InitializingBean, SessionValueEncoder

public class MappedValuesEncoder
extends AbstractSessionValueEncoder

将一个Map编码成字符串,或反之。支持加密。

作者:
Michael Zhou

字段摘要
 
从类 org.tinygroup.weblayer.webcontext.session.valueencode.AbstractSessionValueEncoder 继承的字段
encrypter
 
构造方法摘要
MappedValuesEncoder()
           
 
方法摘要
protected  Object decodeValue(String encodedValue)
           
protected  boolean doCompress()
          复杂值压缩,取得的字符串较短。
protected  boolean doURLEncode()
           
protected  String encodeValue(Object value)
           
protected  String getEqualSign()
           
 void setValueType(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
 

构造方法详细信息

MappedValuesEncoder

public MappedValuesEncoder()
方法详细信息

setValueType

public void setValueType(Class<?> type)

doURLEncode

protected boolean doURLEncode()
指定者:
AbstractSessionValueEncoder 中的 doURLEncode

doCompress

protected boolean doCompress()
复杂值压缩,取得的字符串较短。

指定者:
AbstractSessionValueEncoder 中的 doCompress

getEqualSign

protected String getEqualSign()

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.