Package org.sonews.daemon.command
Class UnsupportedCommand
java.lang.Object
org.sonews.daemon.command.UnsupportedCommand
- All Implemented Interfaces:
Command
A default "Unsupported Command". Simply returns error code 500 and a
"command not supported" message.
- Since:
- sonews/0.5.0
- Author:
- Christian Lins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
boolean
Returns capability string that is implied by this command class.boolean
void
processLine
(NNTPConnection conn, String line, byte[] raw)
-
Constructor Details
-
UnsupportedCommand
public UnsupportedCommand()
-
-
Method Details
-
getSupportedCommandStrings
- Specified by:
getSupportedCommandStrings
in interfaceCommand
- Returns:
- Always returns null.
-
hasFinished
public boolean hasFinished()- Specified by:
hasFinished
in interfaceCommand
- Returns:
- true if this instance can be reused.
-
impliedCapability
Description copied from interface:Command
Returns capability string that is implied by this command class. MAY return null if the command is required by the NNTP standard.- Specified by:
impliedCapability
in interfaceCommand
-
isStateful
public boolean isStateful()- Specified by:
isStateful
in interfaceCommand
-
processLine
- Specified by:
processLine
in interfaceCommand
- Throws:
IOException
-