org.jasig.cas.web.flow
Class TerminateWebSessionListener

java.lang.Object
  extended by org.springframework.webflow.execution.FlowExecutionListenerAdapter
      extended by org.jasig.cas.web.flow.TerminateWebSessionListener
All Implemented Interfaces:
org.springframework.webflow.execution.FlowExecutionListener

public final class TerminateWebSessionListener
extends org.springframework.webflow.execution.FlowExecutionListenerAdapter

Listener to expire web session as soon as the webflow is ended. The goal is to decrease memory consumption by deleting as soon as possible the web sessions created mainly for login process.

Since:
3.5.1
Author:
Jerome Leleu, Marvin S. Addison

Constructor Summary
TerminateWebSessionListener()
           
 
Method Summary
 int getTimeToDieInSeconds()
           
 void sessionEnded(org.springframework.webflow.execution.RequestContext context, org.springframework.webflow.execution.FlowSession session, String outcome, org.springframework.webflow.core.collection.AttributeMap output)
           
 void sessionStarted(org.springframework.webflow.execution.RequestContext context, org.springframework.webflow.execution.FlowSession session)
           
 void setServiceManagerUrl(String url)
          Sets the URL to the service manager Web application.
 void setTimeToDieInSeconds(int timeToDieInSeconds)
           
 
Methods inherited from class org.springframework.webflow.execution.FlowExecutionListenerAdapter
eventSignaled, exceptionThrown, paused, requestProcessed, requestSubmitted, resuming, sessionCreating, sessionEnding, sessionStarting, stateEntered, stateEntering, transitionExecuting, viewRendered, viewRendering
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TerminateWebSessionListener

public TerminateWebSessionListener()
Method Detail

sessionStarted

public void sessionStarted(org.springframework.webflow.execution.RequestContext context,
                           org.springframework.webflow.execution.FlowSession session)
Specified by:
sessionStarted in interface org.springframework.webflow.execution.FlowExecutionListener
Overrides:
sessionStarted in class org.springframework.webflow.execution.FlowExecutionListenerAdapter

sessionEnded

public void sessionEnded(org.springframework.webflow.execution.RequestContext context,
                         org.springframework.webflow.execution.FlowSession session,
                         String outcome,
                         org.springframework.webflow.core.collection.AttributeMap output)
Specified by:
sessionEnded in interface org.springframework.webflow.execution.FlowExecutionListener
Overrides:
sessionEnded in class org.springframework.webflow.execution.FlowExecutionListenerAdapter

getTimeToDieInSeconds

public int getTimeToDieInSeconds()

setTimeToDieInSeconds

public void setTimeToDieInSeconds(int timeToDieInSeconds)

setServiceManagerUrl

public void setServiceManagerUrl(String url)
Sets the URL to the service manager Web application.

Parameters:
url - URL to service manager.


Copyright © 2004-2013 Jasig. All Rights Reserved.