Interface Command

All Known Subinterfaces:
HelpfulCommand
All Known Implementing Classes:
ArticleCommand, AuthInfoCommand, CapabilitiesCommand, GroupCommand, HelpCommand, ListCommand, ListGroupCommand, ModeReaderCommand, NewGroupsCommand, NextPrevCommand, OverCommand, PostCommand, QuitCommand, StatCommand, UnsupportedCommand, XPatCommand

public interface Command
Interface for pluggable NNTP commands handling classes.
Since:
sonews/0.6.0
Author:
Christian Lins
  • Method Details

    • hasFinished

      boolean hasFinished()
      Returns:
      true if this instance can be reused.
    • impliedCapability

      String impliedCapability()
      Returns capability string that is implied by this command class. MAY return null if the command is required by the NNTP standard.
    • isStateful

      boolean isStateful()
    • getSupportedCommandStrings

      String[] getSupportedCommandStrings()
    • processLine

      void processLine(NNTPConnection conn, String line, byte[] rawLine) throws IOException, StorageBackendException
      Throws:
      IOException
      StorageBackendException