org.apache.turbine.modules.actions.sessionvalidator
Class TemplateSessionValidator

java.lang.Object
  |
  +--org.apache.turbine.modules.Assembler
        |
        +--org.apache.turbine.modules.Action
              |
              +--org.apache.turbine.modules.actions.sessionvalidator.SessionValidator
                    |
                    +--org.apache.turbine.modules.actions.sessionvalidator.TemplateSessionValidator

public class TemplateSessionValidator
extends SessionValidator

SessionValidator for use with the Template Service, the TemplateSessionValidator is virtually identical to the TemplateSecureValidator except that it does not tranfer to the login page when it detects a null user (or a user not logged in).

The Template Service requires a different Session Validator because of the way it handles screens.

Version:
$Id: TemplateSessionValidator.java,v 1.3 2001/11/16 03:38:35 jvanzyl Exp $
Author:
John D. McNally, Dave Bryson
See Also:
TemplateSecureSessionValidator

Constructor Summary
TemplateSessionValidator()
           
 
Method Summary
 void doPerform(RunData data)
          Execute the action.
 boolean requiresNewSession(RunData data)
          By default, this is true.
 
Methods inherited from class org.apache.turbine.modules.Action
perform
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Constructor Detail

TemplateSessionValidator

public TemplateSessionValidator()
Method Detail

doPerform

public void doPerform(RunData data)
               throws java.lang.Exception
Execute the action.
Overrides:
doPerform in class Action
Parameters:
data - Turbine information.
Throws:
Exception, - a generic exception.

requiresNewSession

public boolean requiresNewSession(RunData data)
By default, this is true. It says that we require a new session in order to allow people to access the system. We accomplish this by doing a redirect and using the HttpSession spec.
Overrides:
requiresNewSession in class SessionValidator
Parameters:
data - Turbine information.
Returns:
True if we require a new session in order to allow people to access the system.


Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.