org.apache.commons.net.pop3

Class POP3Command


public final class POP3Command
extends java.lang.Object

POP3Command stores POP3 command code constants.

Author:
Daniel F. Savarese

Field Summary

static int
APOP
Authorization.
static int
DELE
Delete message(s).
static int
LIST
List message(s).
static int
NOOP
No operation.
static int
PASS
Send password.
static int
QUIT
Quit session.
static int
RETR
Retrieve message(s).
static int
RSET
Reset session.
static int
STAT
Get status.
static int
TOP
Retrieve top number lines from message.
static int
UIDL
List unique message identifier(s).
static int
USER
Send user name.

Method Summary

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

Field Details

APOP

public static final int APOP
Authorization. **
Field Value:
9

DELE

public static final int DELE
Delete message(s). **
Field Value:
6

LIST

public static final int LIST
List message(s). **
Field Value:
4

NOOP

public static final int NOOP
No operation. Used as a session keepalive. **
Field Value:
7

PASS

public static final int PASS
Send password. **
Field Value:
1

QUIT

public static final int QUIT
Quit session. **
Field Value:
2

RETR

public static final int RETR
Retrieve message(s). **
Field Value:
5

RSET

public static final int RSET
Reset session. **
Field Value:
8

STAT

public static final int STAT
Get status. **
Field Value:
3

TOP

public static final int TOP
Retrieve top number lines from message. **
Field Value:
10

UIDL

public static final int UIDL
List unique message identifier(s). **
Field Value:
11

USER

public static final int USER
Send user name. **
Field Value:
0

Method Details

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.