Package org.apache.commons.net.nntp
Class NNTPCommand
java.lang.Object
org.apache.commons.net.nntp.NNTPCommand
NNTPCommand stores a set of constants for NNTP command codes. To interpret the meaning of the codes, familiarity with RFC 977 is assumed.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
NNTP command code 0.static final int
NNTP command code 15.static final int
NNTP command code 1.private static final String[]
static final int
NNTP command code 2.static final int
NNTP command code 3.static final int
NNTP command code 4.static final int
NNTP command code 5.static final int
NNTP command code 6.static final int
NNTP command code 7.static final int
NNTP command code 8.static final int
NNTP command code 9.static final int
NNTP command code 10.static final int
NNTP command code 11.static final int
NNTP command code 12.static final int
NNTP command code 13.static final int
NNTP command code 14.static final int
NNTP command code 17.static final int
NNTP command code 16. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCommand
(int command) Gets the NNTP protocol command string corresponding to a specified command code.
-
Field Details
-
ARTICLE
public static final int ARTICLENNTP command code 0.- See Also:
-
BODY
public static final int BODYNNTP command code 1.- See Also:
-
GROUP
public static final int GROUPNNTP command code 2.- See Also:
-
HEAD
public static final int HEADNNTP command code 3.- See Also:
-
HELP
public static final int HELPNNTP command code 4.- See Also:
-
IHAVE
public static final int IHAVENNTP command code 5.- See Also:
-
LAST
public static final int LASTNNTP command code 6.- See Also:
-
LIST
public static final int LISTNNTP command code 7.- See Also:
-
NEWGROUPS
public static final int NEWGROUPSNNTP command code 8.- See Also:
-
NEWNEWS
public static final int NEWNEWSNNTP command code 9.- See Also:
-
NEXT
public static final int NEXTNNTP command code 10.- See Also:
-
POST
public static final int POSTNNTP command code 11.- See Also:
-
QUIT
public static final int QUITNNTP command code 12.- See Also:
-
SLAVE
public static final int SLAVENNTP command code 13.- See Also:
-
STAT
public static final int STATNNTP command code 14.- See Also:
-
AUTHINFO
public static final int AUTHINFONNTP command code 15.- See Also:
-
XOVER
public static final int XOVERNNTP command code 16.- See Also:
-
XHDR
public static final int XHDRNNTP command code 17.- See Also:
-
commands
-
-
Constructor Details
-
NNTPCommand
private NNTPCommand()Cannot be instantiated.
-
-
Method Details
-
getCommand
Gets 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.
-