Package org.apache.commons.net.imap
Enum IMAPCommand
- All Implemented Interfaces:
Serializable
,Comparable<IMAPCommand>
IMAPCommand stores IMAP command codes.
-
Enum Constant Summary
Enum ConstantDescriptionValid in authenticated state.Valid in Not Authenticated stateValid in any state.Valid in selected state (substate of authenticated).Valid in selected state (substate of authenticated).Valid in selected state (substate of authenticated).Valid in authenticated state.Valid in authenticated state.Valid in authenticated state.Valid in selected state (substate of authenticated).Valid in selected state (substate of authenticated).Valid in authenticated state.Valid in Not Authenticated stateValid in any state.Valid in authenticated state.Valid in any state.Valid in authenticated state.Valid in selected state (substate of authenticated).Valid in authenticated state.Valid in Not Authenticated stateValid in authenticated state.Valid in selected state (substate of authenticated).Valid in authenticated state.Valid in selected state (substate of authenticated).Valid in authenticated state. -
Method Summary
Modifier and TypeMethodDescriptionstatic final String
getCommand
(IMAPCommand command) Gets the IMAP protocol string command corresponding to a command code.Gets the IMAP protocol string command for this commandstatic IMAPCommand
Returns the enum constant of this type with the specified name.static IMAPCommand[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
CAPABILITY
Valid in any state. -
NOOP
Valid in any state. -
LOGOUT
Valid in any state. -
STARTTLS
Valid in Not Authenticated state -
AUTHENTICATE
Valid in Not Authenticated state -
LOGIN
Valid in Not Authenticated state -
XOAUTH
-
SELECT
Valid in authenticated state. -
EXAMINE
Valid in authenticated state. -
CREATE
Valid in authenticated state. -
DELETE
Valid in authenticated state. -
RENAME
Valid in authenticated state. -
SUBSCRIBE
Valid in authenticated state. -
UNSUBSCRIBE
Valid in authenticated state. -
LIST
Valid in authenticated state. -
LSUB
Valid in authenticated state. -
STATUS
Valid in authenticated state. -
APPEND
Valid in authenticated state. -
CHECK
Valid in selected state (substate of authenticated). -
CLOSE
Valid in selected state (substate of authenticated). -
EXPUNGE
Valid in selected state (substate of authenticated). -
SEARCH
Valid in selected state (substate of authenticated). -
FETCH
Valid in selected state (substate of authenticated). -
STORE
Valid in selected state (substate of authenticated). -
COPY
Valid in selected state (substate of authenticated). -
UID
Valid in selected state (substate of authenticated).
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
getCommand
Gets the IMAP protocol string command corresponding to a command code.- Parameters:
command
- theIMAPCommand
whose command string is required. Must not be null.- Returns:
- The IMAP protocol string command corresponding to a command code.
-
getIMAPCommand
Gets the IMAP protocol string command for this command- Returns:
- The IMAP protocol string command corresponding to this command
-