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.
static String | getCommand(int command) -
Retrieve the NNTP protocol command string corresponding to a specified
command code.
|
ARTICLE
public static final int ARTICLE
- 0
AUTHINFO
public static final int AUTHINFO
- 15
BODY
public static final int BODY
- 1
GROUP
public static final int GROUP
- 2
HEAD
public static final int HEAD
- 3
HELP
public static final int HELP
- 4
IHAVE
public static final int IHAVE
- 5
LAST
public static final int LAST
- 6
LIST
public static final int LIST
- 7
NEWGROUPS
public static final int NEWGROUPS
- 8
NEWNEWS
public static final int NEWNEWS
- 9
NEXT
public static final int NEXT
- 10
POST
public static final int POST
- 11
QUIT
public static final int QUIT
- 12
SLAVE
public static final int SLAVE
- 13
STAT
public static final int STAT
- 14
XHDR
public static final int XHDR
- 17
XOVER
public static final int XOVER
- 16
getCommand
public static final String getCommand(int command)
Retrieve the NNTP protocol command string corresponding to a specified
command code.
command
- The command code.
- The NNTP protcol command string corresponding to a specified
command code.