org.tinygroup.weblayer.webcontext.session.impl
类 SessionAttribute

java.lang.Object
  继承者 org.tinygroup.weblayer.webcontext.session.impl.SessionAttribute

public class SessionAttribute
extends Object

代表session中的一个属性。

作者:
renhui

构造方法摘要
SessionAttribute(String name, SessionImpl session, String storeName, SessionStore.StoreContext storeContext)
          创建一个attribute。
 
方法摘要
 String getName()
          取得attribute的名字。
 SessionStore getStore()
          取得store。
 String getStoreName()
          取得store名称。
 Object getValue()
          取得attribute的值。
 boolean isModified()
          值是否被改变。
 void setValue(Object value)
          设置attribute的值。
 String toString()
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

构造方法详细信息

SessionAttribute

public SessionAttribute(String name,
                        SessionImpl session,
                        String storeName,
                        SessionStore.StoreContext storeContext)
创建一个attribute。

参数:
name - attribute的名称
方法详细信息

getName

public String getName()
取得attribute的名字。

返回:
attribute的名字

getValue

public Object getValue()
取得attribute的值。

返回:
attribute的值

setValue

public void setValue(Object value)
设置attribute的值。

当值为null时,表示该属性将被删除。

参数:
value - attribute的值

isModified

public boolean isModified()
值是否被改变。

返回:
如果被改变,则返回true

getStoreName

public String getStoreName()
取得store名称。

返回:
store的名称

getStore

public SessionStore getStore()
取得store。

返回:
SessionStore实例

toString

public String toString()
覆盖:
Object 中的 toString


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