Package org.apache.commons.net.imap
Enum IMAPCommand
- java.lang.Object
-
- java.lang.Enum<IMAPCommand>
-
- org.apache.commons.net.imap.IMAPCommand
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<IMAPCommand>
public enum IMAPCommand extends java.lang.Enum<IMAPCommand>
IMAPCommand stores IMAP command codes.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static java.lang.String
getCommand(IMAPCommand command)
Get the IMAP protocol string command corresponding to a command code.java.lang.String
getIMAPCommand()
Get the IMAP protocol string command for this commandstatic IMAPCommand
valueOf(java.lang.String name)
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 Detail
-
CAPABILITY
public static final IMAPCommand CAPABILITY
-
NOOP
public static final IMAPCommand NOOP
-
LOGOUT
public static final IMAPCommand LOGOUT
-
STARTTLS
public static final IMAPCommand STARTTLS
-
AUTHENTICATE
public static final IMAPCommand AUTHENTICATE
-
LOGIN
public static final IMAPCommand LOGIN
-
XOAUTH
public static final IMAPCommand XOAUTH
-
SELECT
public static final IMAPCommand SELECT
-
EXAMINE
public static final IMAPCommand EXAMINE
-
CREATE
public static final IMAPCommand CREATE
-
DELETE
public static final IMAPCommand DELETE
-
RENAME
public static final IMAPCommand RENAME
-
SUBSCRIBE
public static final IMAPCommand SUBSCRIBE
-
UNSUBSCRIBE
public static final IMAPCommand UNSUBSCRIBE
-
LIST
public static final IMAPCommand LIST
-
LSUB
public static final IMAPCommand LSUB
-
STATUS
public static final IMAPCommand STATUS
-
APPEND
public static final IMAPCommand APPEND
-
CHECK
public static final IMAPCommand CHECK
-
CLOSE
public static final IMAPCommand CLOSE
-
EXPUNGE
public static final IMAPCommand EXPUNGE
-
SEARCH
public static final IMAPCommand SEARCH
-
FETCH
public static final IMAPCommand FETCH
-
STORE
public static final IMAPCommand STORE
-
COPY
public static final IMAPCommand COPY
-
UID
public static final IMAPCommand UID
-
-
Method Detail
-
values
public static IMAPCommand[] 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 (IMAPCommand c : IMAPCommand.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static IMAPCommand valueOf(java.lang.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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getCommand
public static final java.lang.String getCommand(IMAPCommand command)
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
public java.lang.String getIMAPCommand()
Get the IMAP protocol string command for this command- Returns:
- The IMAP protocol string command corresponding to this command
-
-