本文整理汇总了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.");
}
}
示例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.");
}
}
示例3: QuartzSessionValidationScheduler
import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public QuartzSessionValidationScheduler(ValidatingSessionManager sessionManager) {
this.sessionManager = sessionManager;
}
示例4: setSessionManager
import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public void setSessionManager(ValidatingSessionManager sessionManager) {
this.sessionManager = sessionManager;
}
示例5: Quartz2SessionValidationScheduler
import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public Quartz2SessionValidationScheduler(
ValidatingSessionManager sessionManager) {
this.sessionManager = sessionManager;
}
示例6: QuartzSessionValidationScheduler
import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public QuartzSessionValidationScheduler(ValidatingSessionManager sessionManager) {
this.sessionManager = sessionManager;
}
示例7: setSessionManager
import org.apache.shiro.session.mgt.ValidatingSessionManager; //导入依赖的package包/类
public void setSessionManager(ValidatingSessionManager sessionManager) {
this.sessionManager = sessionManager;
}