org.norther.tammi.spray.protocol
Enum HttpFilter.SessionIdPolicy

java.lang.Object
  extended by java.lang.Enum<HttpFilter.SessionIdPolicy>
      extended by org.norther.tammi.spray.protocol.HttpFilter.SessionIdPolicy
All Implemented Interfaces:
Serializable, Comparable<HttpFilter.SessionIdPolicy>
Enclosing interface:
HttpFilter

public static enum HttpFilter.SessionIdPolicy
extends Enum<HttpFilter.SessionIdPolicy>

The session id policy.


Enum Constant Summary
COOKIE_AND_URL
          Cookie and URL ids are accepted.
COOKIE_ONLY
          Accept cookie ids only.
COOKIE_PRIORITY
          Cookie ids have priority over URL ids.
URL_ONLY
          Accept URL ids only.
URL_PRIORITY
          URL ids have priority over cookie ids.
 
Method Summary
static HttpFilter.SessionIdPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static HttpFilter.SessionIdPolicy[] 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

COOKIE_AND_URL

public static final HttpFilter.SessionIdPolicy COOKIE_AND_URL
Cookie and URL ids are accepted.


COOKIE_PRIORITY

public static final HttpFilter.SessionIdPolicy COOKIE_PRIORITY
Cookie ids have priority over URL ids.


URL_PRIORITY

public static final HttpFilter.SessionIdPolicy URL_PRIORITY
URL ids have priority over cookie ids.


COOKIE_ONLY

public static final HttpFilter.SessionIdPolicy COOKIE_ONLY
Accept cookie ids only.


URL_ONLY

public static final HttpFilter.SessionIdPolicy URL_ONLY
Accept URL ids only.

Method Detail

values

public static HttpFilter.SessionIdPolicy[] 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 (HttpFilter.SessionIdPolicy c : HttpFilter.SessionIdPolicy.values())
    System.out.println(c);

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

valueOf

public static HttpFilter.SessionIdPolicy 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.