Package org.sonews.daemon.command
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 Summary
Modifier and TypeMethodDescriptionString[]
boolean
Returns capability string that is implied by this command class.boolean
void
processLine
(NNTPConnection conn, String line, byte[] rawLine)
-
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
-