Package org.apache.commons.net.pop3
Class POP3Command
java.lang.Object
org.apache.commons.net.pop3.POP3Command
POP3Command stores POP3 command code constants.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intAuthorization.static final intAuthenticationstatic final intThe capabilities command.static final intDelete message(s).static final intList message(s).static final intNo operation.static final intSend password.static final intQuit session.static final intRetrieve message(s).static final intReset session.static final intGets status.static final intRetrieve top number lines from message.static final intList unique message identifier(s).static final intSend user name. -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetCommand(int command) Gets the POP3 protocol string command corresponding to a command code.
-
Field Details
-
USER
Send user name.- See Also:
-
PASS
Send password.- See Also:
-
QUIT
Quit session.- See Also:
-
STAT
Gets status.- See Also:
-
LIST
List message(s).- See Also:
-
RETR
Retrieve message(s).- See Also:
-
DELE
Delete message(s).- See Also:
-
NOOP
No operation. Used as a session keepalive.- See Also:
-
RSET
Reset session.- See Also:
-
APOP
Authorization.- See Also:
-
TOP
Retrieve top number lines from message.- See Also:
-
UIDL
List unique message identifier(s).- See Also:
-
CAPA
The capabilities command.- Since:
- 3.0
- See Also:
-
AUTH
Authentication- Since:
- 3.0
- See Also:
-
-
Method Details
-
getCommand
Gets the POP3 protocol string command corresponding to a command code.- Parameters:
command- the command code- Returns:
- The POP3 protocol string command corresponding to a command code.
-