Class NNTPCommand


  • public final class NNTPCommand
    extends java.lang.Object
    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

      Fields 
      Modifier and Type Field Description
      static int ARTICLE
      NNTP command code 0.
      static int AUTHINFO
      NNTP command code 15.
      static int BODY
      NNTP command code 1.
      private static java.lang.String[] commands  
      static int GROUP
      NNTP command code 2.
      static int HEAD
      NNTP command code 3.
      static int HELP
      NNTP command code 4.
      static int IHAVE
      NNTP command code 5.
      static int LAST
      NNTP command code 6.
      static int LIST
      NNTP command code 7.
      static int NEWGROUPS
      NNTP command code 8.
      static int NEWNEWS
      NNTP command code 9.
      static int NEXT
      NNTP command code 10.
      static int POST
      NNTP command code 11.
      static int QUIT
      NNTP command code 12.
      static int SLAVE
      NNTP command code 13.
      static int STAT
      NNTP command code 14.
      static int XHDR
      NNTP command code 17.
      static int XOVER
      NNTP command code 16.
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private NNTPCommand()
      Cannot be instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getCommand​(int command)
      Gets the NNTP protocol command string corresponding to a specified command code.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • NNTPCommand

        private NNTPCommand()
        Cannot be instantiated.
    • Method Detail

      • getCommand

        public static java.lang.String getCommand​(int command)
        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.