FileDocCategorySizeDatePackage
NNTPCommand.javaAPI DocApache Commons NET 1.4.1 API2568Sat Dec 03 10:05:48 GMT 2005org.apache.commons.net.nntp

NNTPCommand

public final class NNTPCommand extends Object
NNTPCommand stores a set of constants for NNTP command codes. To interpret the meaning of the codes, familiarity with RFC 977 is assumed.

author
Daniel F. Savarese
author
Rory Winston
author
Ted Wise

Fields Summary
public static final int
ARTICLE
public static final int
BODY
public static final int
GROUP
public static final int
HEAD
public static final int
HELP
public static final int
IHAVE
public static final int
LAST
public static final int
LIST
public static final int
NEWGROUPS
public static final int
NEWNEWS
public static final int
NEXT
public static final int
POST
public static final int
QUIT
public static final int
SLAVE
public static final int
STAT
public static final int
AUTHINFO
public static final int
XOVER
public static final int
XHDR
static final String[]
_commands
Constructors Summary
private NNTPCommand()


    // Cannot be instantiated
     
    
Methods Summary
public static final java.lang.StringgetCommand(int command)
Retrieve the NNTP protocol command string corresponding to a specified command code.

param
command The command code.
return
The NNTP protcol command string corresponding to a specified command code.



                                               
         
    
        return _commands[command];