org.tinygroup.weblayer.webcontext.session
接口 SessionConfig


public interface SessionConfig

包含session系统的配置。

作者:
renhui

嵌套类摘要
static interface SessionConfig.CookieConfig
          代表cookie的配置。
static interface SessionConfig.IdConfig
          代表session ID的配置。
static interface SessionConfig.StoreMappingsConfig
          代表store mappings的配置。
static interface SessionConfig.StoresConfig
          代表stores的配置。
static interface SessionConfig.UrlEncodeConfig
          代表url encode的配置。
 
字段摘要
static Long FORCE_EXPIRATION_PERIOD_DEFAULT
           
static Boolean KEEP_IN_TOUCH_DEFAULT
           
static Integer MAX_INACTIVE_INTERVAL_DEFAULT
           
static String MODEL_KEY_DEFAULT
           
 
方法摘要
 long getForceExpirationPeriod()
          Session强制作废期限(秒)。
 SessionConfig.IdConfig getId()
          取得session ID的配置。
 int getMaxInactiveInterval()
          Session的最长不活动时间(秒)。
 String getModelKey()
          代表session model在session中被保存的键值。
 SessionInterceptor[] getSessionInterceptors()
          取得用来监听session行为的interceptors。
 SessionModelEncoder[] getSessionModelEncoders()
          取得model encoders。
 SessionConfig.StoreMappingsConfig getStoreMappings()
          取得所有store mappings。
 SessionConfig.StoresConfig getStores()
          取得所有stores。
 boolean isKeepInTouch()
          是否每次请求都touch session。
 

字段详细信息

MAX_INACTIVE_INTERVAL_DEFAULT

static final Integer MAX_INACTIVE_INTERVAL_DEFAULT

FORCE_EXPIRATION_PERIOD_DEFAULT

static final Long FORCE_EXPIRATION_PERIOD_DEFAULT

MODEL_KEY_DEFAULT

static final String MODEL_KEY_DEFAULT
另请参见:
常量字段值

KEEP_IN_TOUCH_DEFAULT

static final Boolean KEEP_IN_TOUCH_DEFAULT
方法详细信息

getMaxInactiveInterval

int getMaxInactiveInterval()
Session的最长不活动时间(秒)。假如用户不活动,超过这个时限,session将被作废。值0表示永不过期。


getForceExpirationPeriod

long getForceExpirationPeriod()
Session强制作废期限(秒)。无论用户活动与否,从session创建之时算起,超过这个期限,session将被强制作废。值 0表示永不作废。


getModelKey

String getModelKey()
代表session model在session中被保存的键值。Session model保存着当前session的状态,它也被保存在session中。在store-mappings设置中,你可以把session model分配到一个session store中。


isKeepInTouch

boolean isKeepInTouch()
是否每次请求都touch session。如果设为false,只在session值有改变时touch。当将session model保存在cookie store中时,这样做可以减少流量。


getId

SessionConfig.IdConfig getId()
取得session ID的配置。


getStores

SessionConfig.StoresConfig getStores()
取得所有stores。


getStoreMappings

SessionConfig.StoreMappingsConfig getStoreMappings()
取得所有store mappings。


getSessionModelEncoders

SessionModelEncoder[] getSessionModelEncoders()
取得model encoders。


getSessionInterceptors

SessionInterceptor[] getSessionInterceptors()
取得用来监听session行为的interceptors。



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