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 `TemplateSecureSessionValidator` except that it does not transfer 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.

  Note that you will need to set the template.login property to the login template.

  Version:
    $Id: TemplateSessionValidator.java 1812601 2017-10-19 06:40:28Z gk $
  Author:
    John D. McNally, Dave Bryson, Henning P. Schmiedehausen, Peter Courcoux
  See Also:
    `TemplateSecureSessionValidator`

- - ### Field Summary

    - ### Fields inherited from class org.apache.turbine.modules.actions.sessionvalidator.SessionValidator

      `screenHomepage, screenInvalidState, security, templateHomepage, templateInvalidState`

    - ### Fields inherited from class org.apache.turbine.modules.Action

      `CACHE_SIZE_DEFAULT, CACHE_SIZE_KEY, NAME, PREFIX`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `TemplateSessionValidator()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `doPerform(PipelineData pipelineData)` Execute the action.

    - ### Methods inherited from class org.apache.turbine.modules.actions.sessionvalidator.SessionValidator

      `handleFormCounterToken`

    - ### Methods inherited from class org.apache.turbine.modules.Action

      `getPrefix, perform`

    - ### Methods inherited from class org.apache.turbine.modules.Assembler

      `getRunData`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### TemplateSessionValidator

          public TemplateSessionValidator()

  - ### Method Detail

    - #### doPerform

          public void doPerform(PipelineData pipelineData)
                         throws Exception

      Execute the action.
      Specified by:
        `doPerform` in class `Action`
      Parameters:
        `pipelineData` - Turbine information.
      Throws:
        `Exception` - The anonymous user could not be obtained from the security service

Copyright © 2000–2018 The Apache Software Foundation. All rights reserved.