org.norther.tammi.spray.authenticator
Enum DefaultHttpServiceAuthFilter.LoginStatus

java.lang.Object
  extended by java.lang.Enum<DefaultHttpServiceAuthFilter.LoginStatus>
      extended by org.norther.tammi.spray.authenticator.DefaultHttpServiceAuthFilter.LoginStatus
All Implemented Interfaces:
Serializable, Comparable<DefaultHttpServiceAuthFilter.LoginStatus>
Enclosing class:
DefaultHttpServiceAuthFilter

protected static enum DefaultHttpServiceAuthFilter.LoginStatus
extends Enum<DefaultHttpServiceAuthFilter.LoginStatus>

The login status.

Author:
Ilkka Priha

Enum Constant Summary
AUTHENTICATED
          Authenticated.
IN_LOGIN_PAGE
          Already in login page.
LOGGED_IN
          Logged in.
LOGIN_FAILED
          Login failed.
TO_LOGIN_PAGE
          Redirect to login page.
 
Method Summary
static DefaultHttpServiceAuthFilter.LoginStatus valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DefaultHttpServiceAuthFilter.LoginStatus[] 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

AUTHENTICATED

public static final DefaultHttpServiceAuthFilter.LoginStatus AUTHENTICATED
Authenticated.


TO_LOGIN_PAGE

public static final DefaultHttpServiceAuthFilter.LoginStatus TO_LOGIN_PAGE
Redirect to login page.


IN_LOGIN_PAGE

public static final DefaultHttpServiceAuthFilter.LoginStatus IN_LOGIN_PAGE
Already in login page.


LOGIN_FAILED

public static final DefaultHttpServiceAuthFilter.LoginStatus LOGIN_FAILED
Login failed.


LOGGED_IN

public static final DefaultHttpServiceAuthFilter.LoginStatus LOGGED_IN
Logged in.

Method Detail

values

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

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

valueOf

public static DefaultHttpServiceAuthFilter.LoginStatus 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.