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