org.apache.commons.net.pop3

Class POP3Command

public final class POP3Command extends Object

POP3Command stores POP3 command code constants.

Author: Daniel F. Savarese

Field Summary
static intAPOP
Authorization.
static intDELE
Delete message(s).
static intLIST
List message(s).
static intNOOP
No operation.
static intPASS
Send password.
static intQUIT
Quit session.
static intRETR
Retrieve message(s).
static intRSET
Reset session.
static intSTAT
Get status.
static intTOP
Retrieve top number lines from message.
static intUIDL
List unique message identifier(s).
static intUSER
Send user name.
Method Summary
static StringgetCommand(int command)
Get the POP3 protocol string command corresponding to a command code.

Field Detail

APOP

public static final int APOP
Authorization. **

DELE

public static final int DELE
Delete message(s). **

LIST

public static final int LIST
List message(s). **

NOOP

public static final int NOOP
No operation. Used as a session keepalive. **

PASS

public static final int PASS
Send password. **

QUIT

public static final int QUIT
Quit session. **

RETR

public static final int RETR
Retrieve message(s). **

RSET

public static final int RSET
Reset session. **

STAT

public static final int STAT
Get status. **

TOP

public static final int TOP
Retrieve top number lines from message. **

UIDL

public static final int UIDL
List unique message identifier(s). **

USER

public static final int USER
Send user name. **

Method Detail

getCommand

public static final String getCommand(int command)
Get the POP3 protocol string command corresponding to a command code.

Returns: The POP3 protocol string command corresponding to a command code.