org.apache.commons.net.nntp

Class NNTPCommand

public final class NNTPCommand extends Object

NNTPCommand stores a set of constants for NNTP command codes. To interpret the meaning of the codes, familiarity with RFC 977 is assumed.

Author: Daniel F. Savarese Rory Winston Ted Wise

Field Summary
static intARTICLE
static intAUTHINFO
static intBODY
static intGROUP
static intHEAD
static intHELP
static intIHAVE
static intLAST
static intLIST
static intNEWGROUPS
static intNEWNEWS
static intNEXT
static intPOST
static intQUIT
static intSLAVE
static intSTAT
static intXHDR
static intXOVER
Method Summary
static StringgetCommand(int command)
Retrieve the NNTP protocol command string corresponding to a specified command code.

Field Detail

ARTICLE

public static final int ARTICLE

AUTHINFO

public static final int AUTHINFO

BODY

public static final int BODY

GROUP

public static final int GROUP

HEAD

public static final int HEAD

HELP

public static final int HELP

IHAVE

public static final int IHAVE

LAST

public static final int LAST

LIST

public static final int LIST

NEWGROUPS

public static final int NEWGROUPS

NEWNEWS

public static final int NEWNEWS

public static final int NEXT

POST

public static final int POST

QUIT

public static final int QUIT

SLAVE

public static final int SLAVE

STAT

public static final int STAT

XHDR

public static final int XHDR

XOVER

public static final int XOVER

Method Detail

getCommand

public static final String getCommand(int command)
Retrieve the NNTP protocol command string corresponding to a specified command code.

Parameters: command The command code.

Returns: The NNTP protcol command string corresponding to a specified command code.