com.hs.mail.imap
Enum ImapSession.State

java.lang.Object
  extended by java.lang.Enum<ImapSession.State>
      extended by com.hs.mail.imap.ImapSession.State
All Implemented Interfaces:
Serializable, Comparable<ImapSession.State>
Enclosing class:
ImapSession

public static enum ImapSession.State
extends Enum<ImapSession.State>

Enumerates RFC3501 session states.


Enum Constant Summary
AUTHENTICATED
          RFC3501 3.2 Authenticated State
LOGOUT
          RFC3501 3.4 Logout State
NON_AUTHENTICATED
          RFC3501 3.1 Not Authenticated State
SELECTED
          RFC3501 3.3 Selected State
 
Method Summary
 String toString()
           
static ImapSession.State valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ImapSession.State[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

NON_AUTHENTICATED

public static final ImapSession.State NON_AUTHENTICATED
RFC3501 3.1 Not Authenticated State


AUTHENTICATED

public static final ImapSession.State AUTHENTICATED
RFC3501 3.2 Authenticated State


SELECTED

public static final ImapSession.State SELECTED
RFC3501 3.3 Selected State


LOGOUT

public static final ImapSession.State LOGOUT
RFC3501 3.4 Logout State

Method Detail

values

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

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

valueOf

public static ImapSession.State 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

toString

public String toString()
Overrides:
toString in class Enum<ImapSession.State>


Copyright © 2011. All Rights Reserved.