org.norther.tammi.spray.session
Enum Manager.SessionPolicy

java.lang.Object
  extended by java.lang.Enum<Manager.SessionPolicy>
      extended by org.norther.tammi.spray.session.Manager.SessionPolicy
All Implemented Interfaces:
Serializable, Comparable<Manager.SessionPolicy>
Enclosing interface:
Manager

public static enum Manager.SessionPolicy
extends Enum<Manager.SessionPolicy>

The session policy.


Enum Constant Summary
ALLOW_MULTIPLE
          Allows multiple sessions for the same principal.
EXPIRE_EXISTING
          Expires an existing session for the same principal.
JOIN_EXISTING
          Joins an existing session for the same principal.
ROAM_EXISTING
          Like join for the same user agent and client IP address, like allow for others.
 
Method Summary
static Manager.SessionPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Manager.SessionPolicy[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ALLOW_MULTIPLE

public static final Manager.SessionPolicy ALLOW_MULTIPLE
Allows multiple sessions for the same principal.


EXPIRE_EXISTING

public static final Manager.SessionPolicy EXPIRE_EXISTING
Expires an existing session for the same principal.


JOIN_EXISTING

public static final Manager.SessionPolicy JOIN_EXISTING
Joins an existing session for the same principal.


ROAM_EXISTING

public static final Manager.SessionPolicy ROAM_EXISTING
Like join for the same user agent and client IP address, like allow for others.

Method Detail

values

public static Manager.SessionPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (Manager.SessionPolicy c : Manager.SessionPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Manager.SessionPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2004 The Norther Organization. All rights reserved.