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 SummaryFieldsModifier 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 SummaryModifier and TypeMethodDescriptionstatic StringgetCommand(int command) Gets the NNTP protocol command string corresponding to a specified command code.
- 
Field Details- 
ARTICLENNTP command code 0.- See Also:
 
- 
BODYNNTP command code 1.- See Also:
 
- 
GROUPNNTP command code 2.- See Also:
 
- 
HEADNNTP command code 3.- See Also:
 
- 
HELPNNTP command code 4.- See Also:
 
- 
IHAVENNTP command code 5.- See Also:
 
- 
LASTNNTP command code 6.- See Also:
 
- 
LISTNNTP command code 7.- See Also:
 
- 
NEWGROUPSNNTP command code 8.- See Also:
 
- 
NEWNEWSNNTP command code 9.- See Also:
 
- 
NEXTNNTP command code 10.- See Also:
 
- 
POSTNNTP command code 11.- See Also:
 
- 
QUITNNTP command code 12.- See Also:
 
- 
SLAVENNTP command code 13.- See Also:
 
- 
STATNNTP command code 14.- See Also:
 
- 
AUTHINFONNTP command code 15.- See Also:
 
- 
XOVERNNTP command code 16.- See Also:
 
- 
XHDRNNTP command code 17.- See Also:
 
 
- 
- 
Method Details- 
getCommandGets 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.
 
 
-