org.tinygroup.weblayer.webcontext.session.valueencode
接口 SessionValueEncoder

所有已知实现类:
AbstractSessionValueEncoder, MappedValuesEncoder, SimpleValueEncoder

public interface SessionValueEncoder

将对象转换成字符串值或反之。

作者:
renhui

方法摘要
 Object decode(String encodedValue, SessionStore.StoreContext storeContext)
          将字符串解码成对象。
 String encode(Object value, SessionStore.StoreContext storeContext)
          将对象编码成字符串。
 

方法详细信息

encode

String encode(Object value,
              SessionStore.StoreContext storeContext)
              throws SessionValueEncoderException
将对象编码成字符串。

抛出:
SessionValueEncoderException - 如果编码失败

decode

Object decode(String encodedValue,
              SessionStore.StoreContext storeContext)
              throws SessionValueEncoderException
将字符串解码成对象。

抛出:
SessionValueEncoderException - 如果解码失败


Copyright © 2006–2014 开源组织. All rights reserved.