Package org.apache.commons.net.imap
Enum IMAPCommand
- All Implemented Interfaces:
- Serializable,- Comparable<IMAPCommand>
IMAPCommand stores IMAP command codes.
- 
Enum Constant SummaryEnum ConstantsEnum 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 SummaryModifier and TypeMethodDescriptionstatic final StringgetCommand(IMAPCommand command) Gets the IMAP protocol string command corresponding to a command code.Gets the IMAP protocol string command for this commandstatic IMAPCommandReturns 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- 
CAPABILITYValid in any state.
- 
NOOPValid in any state.
- 
LOGOUTValid in any state.
- 
STARTTLSValid in Not Authenticated state
- 
AUTHENTICATEValid in Not Authenticated state
- 
LOGINValid in Not Authenticated state
- 
XOAUTH
- 
SELECTValid in authenticated state.
- 
EXAMINEValid in authenticated state.
- 
CREATEValid in authenticated state.
- 
DELETEValid in authenticated state.
- 
RENAMEValid in authenticated state.
- 
SUBSCRIBEValid in authenticated state.
- 
UNSUBSCRIBEValid in authenticated state.
- 
LISTValid in authenticated state.
- 
LSUBValid in authenticated state.
- 
STATUSValid in authenticated state.
- 
APPENDValid in authenticated state.
- 
CHECKValid in selected state (substate of authenticated).
- 
CLOSEValid in selected state (substate of authenticated).
- 
EXPUNGEValid in selected state (substate of authenticated).
- 
SEARCHValid in selected state (substate of authenticated).
- 
FETCHValid in selected state (substate of authenticated).
- 
STOREValid in selected state (substate of authenticated).
- 
COPYValid in selected state (substate of authenticated).
- 
UIDValid in selected state (substate of authenticated).
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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
 
- 
getCommandGets the IMAP protocol string command corresponding to a command code.- Parameters:
- command- the- IMAPCommandwhose command string is required. Must not be null.
- Returns:
- The IMAP protocol string command corresponding to a command code.
 
- 
getIMAPCommandGets the IMAP protocol string command for this command- Returns:
- The IMAP protocol string command corresponding to this command
 
 
-