Package org.apache.commons.net.imap
Enum IMAPCommand
- All Implemented Interfaces:
Serializable
,Comparable<IMAPCommand>
,java.lang.constant.Constable
IMAPCommand stores IMAP command codes.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic final String
getCommand
(IMAPCommand command) Get the IMAP protocol string command corresponding to a command code.Get 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
-
NOOP
-
LOGOUT
-
STARTTLS
-
AUTHENTICATE
-
LOGIN
-
XOAUTH
-
SELECT
-
EXAMINE
-
CREATE
-
DELETE
-
RENAME
-
SUBSCRIBE
-
UNSUBSCRIBE
-
LIST
-
LSUB
-
STATUS
-
APPEND
-
CHECK
-
CLOSE
-
EXPUNGE
-
SEARCH
-
FETCH
-
STORE
-
COPY
-
UID
-
-
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
Get the IMAP protocol string command corresponding to a command code.- Parameters:
command
- the IMAPCommand whose command string is required.- Returns:
- The IMAP protocol string command corresponding to a command code.
-
getIMAPCommand
Get the IMAP protocol string command for this command- Returns:
- The IMAP protocol string command corresponding to this command
-