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
Modifier and TypeFieldDescriptionstatic final int
Authorization.static final int
Authenticationstatic final int
The capabilities command.static final int
Delete message(s).static final int
List message(s).static final int
No operation.static final int
Send password.static final int
Quit session.static final int
Retrieve message(s).static final int
Reset session.static final int
Gets status.static final int
Retrieve top number lines from message.static final int
List unique message identifier(s).static final int
Send user name. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCommand
(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.
-