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
Modifier and TypeFieldDescriptionstatic final int
NNTP command code 0.static final int
NNTP command code 15.static final int
NNTP command code 1.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. -
Method Summary
Modifier and TypeMethodDescriptionstatic String
getCommand
(int command) Gets the NNTP protocol command string corresponding to a specified command code.
-
Field Details
-
ARTICLE
NNTP command code 0.- See Also:
-
BODY
NNTP command code 1.- See Also:
-
GROUP
NNTP command code 2.- See Also:
-
HEAD
NNTP command code 3.- See Also:
-
HELP
NNTP command code 4.- See Also:
-
IHAVE
NNTP command code 5.- See Also:
-
LAST
NNTP command code 6.- See Also:
-
LIST
NNTP command code 7.- See Also:
-
NEWGROUPS
NNTP command code 8.- See Also:
-
NEWNEWS
NNTP command code 9.- See Also:
-
NEXT
NNTP command code 10.- See Also:
-
POST
NNTP command code 11.- See Also:
-
QUIT
NNTP command code 12.- See Also:
-
SLAVE
NNTP command code 13.- See Also:
-
STAT
NNTP command code 14.- See Also:
-
AUTHINFO
NNTP command code 15.- See Also:
-
XOVER
NNTP command code 16.- See Also:
-
XHDR
NNTP command code 17.- See Also:
-
-
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.
-