org.slim3.struts.util
Class TokenUtil

java.lang.Object
  extended by org.slim3.struts.util.TokenUtil

public final class TokenUtil
extends Object

A utility for transaction token.

Since:
3.0
Author:
higa

Method Summary
static boolean isTokenValid(boolean reset)
          Determines if there is a transaction token in session.
static void saveToken()
          Saves a transaction token into session.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

saveToken

public static void saveToken()
Saves a transaction token into session.


isTokenValid

public static boolean isTokenValid(boolean reset)
Determines if there is a transaction token in session.

Parameters:
reset - whether token is reset after checking it
Returns:
whether there is a transaction token in session.


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.