当前位置: 首页>>代码示例>>Java>>正文


Java ValidatingSessionManager类代码示例

本文整理汇总了Java中org.apache.shiro.session.mgt.ValidatingSessionManager的典型用法代码示例。如果您正苦于以下问题:Java ValidatingSessionManager类的具体用法?Java ValidatingSessionManager怎么用?Java ValidatingSessionManager使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ValidatingSessionManager类属于org.apache.shiro.session.mgt包,在下文中一共展示了ValidatingSessionManager类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: execute

import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
/** 
 * Called when the job is executed by quartz. This method delegates to the <tt>validateSessions()</tt> method on the 
 * associated session manager. 
 *  
 * @param context 
 *            the Quartz job execution context for this execution. 
 */  
public void execute(JobExecutionContext context) throws JobExecutionException {  
  
    JobDataMap jobDataMap = context.getMergedJobDataMap();  
    ValidatingSessionManager sessionManager = (ValidatingSessionManager) jobDataMap.get(SESSION_MANAGER_KEY);  
  
    if (log.isDebugEnabled()) {  
        log.debug("Executing session validation Quartz job...");  
    }  
  
    sessionManager.validateSessions();  
  
    if (log.isDebugEnabled()) {  
        log.debug("Session validation Quartz job complete.");  
    }  
}
 
开发者ID:wjggwm,项目名称:webside,代码行数:23,代码来源:QuartzSessionValidationJob.java

示例2: execute

import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
/**
 * Called when the job is executed by quartz. This method delegates to the <tt>validateSessions()</tt> method on the
 * associated session manager.
 *
 * @param context the Quartz job execution context for this execution.
 */
public void execute(JobExecutionContext context) throws JobExecutionException {

    JobDataMap jobDataMap = context.getMergedJobDataMap();
    ValidatingSessionManager sessionManager = (ValidatingSessionManager) jobDataMap.get(SESSION_MANAGER_KEY);

    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("Executing session validation Quartz job...");
    }

    sessionManager.validateSessions();

    if (LOGGER.isDebugEnabled()) {
        LOGGER.debug("Session validation Quartz job complete.");
    }
}
 
开发者ID:Teddy-Zhu,项目名称:SilentGo,代码行数:22,代码来源:QuartzSessionValidationJob.java

示例3: QuartzSessionValidationScheduler

import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public QuartzSessionValidationScheduler(ValidatingSessionManager sessionManager) {  
    this.sessionManager = sessionManager;  
}
 
开发者ID:wjggwm,项目名称:webside,代码行数:4,代码来源:QuartzSessionValidationScheduler.java

示例4: setSessionManager

import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public void setSessionManager(ValidatingSessionManager sessionManager) {  
    this.sessionManager = sessionManager;  
}
 
开发者ID:wjggwm,项目名称:webside,代码行数:4,代码来源:QuartzSessionValidationScheduler.java

示例5: Quartz2SessionValidationScheduler

import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public Quartz2SessionValidationScheduler(  
        ValidatingSessionManager sessionManager) {  
    this.sessionManager = sessionManager;  
}
 
开发者ID:simbest,项目名称:simbest-cores,代码行数:5,代码来源:Quartz2SessionValidationScheduler.java

示例6: QuartzSessionValidationScheduler

import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public QuartzSessionValidationScheduler(ValidatingSessionManager sessionManager) {
    this.sessionManager = sessionManager;
}
 
开发者ID:Teddy-Zhu,项目名称:SilentGo,代码行数:4,代码来源:QuartzSessionValidationScheduler.java

示例7: setSessionManager

import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public void setSessionManager(ValidatingSessionManager sessionManager) {
    this.sessionManager = sessionManager;
}
 
开发者ID:Teddy-Zhu,项目名称:SilentGo,代码行数:4,代码来源:QuartzSessionValidationScheduler.java


注:本文中的org.apache.shiro.session.mgt.ValidatingSessionManager类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。