⇒ Index (Frames) |  ⇒ Index (No Frames) |  ⇒ Package |  ⇒ Package Tree |  ⇒ Full Tree 
org.apache.commons.net.nntp

Class NNTPCommand

java.lang.Object
|
+--org.apache.commons.net.nntp.NNTPCommand


public final class NNTPCommand
extends java.lang.Object

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

Authors:
Daniel F. Savarese
Rory Winston
Ted Wise

Field Summary

static int

ARTICLE

NNTPCommand stores a set of constants for NNTP command codes.

static int

AUTHINFO

static int

BODY

static int

GROUP

static int

HEAD

static int

HELP

static int

IHAVE

static int

LAST

static int

LIST

static int

NEWGROUPS

static int

NEWNEWS

static int

NEXT

static int

POST

static int

QUIT

static int

SLAVE

static int

STAT

static int

XHDR

static int

XOVER

Method Summary

static String

getCommand(int command)

Retrieve the NNTP protocol command string corresponding to a specified command code.

Field Details

ARTICLE

public static final int ARTICLE

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

Authors:
Daniel F. Savarese
Rory Winston
Ted Wise

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


NEXT

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 Details

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.