Package org.sonews.daemon.command
Class CapabilitiesCommand
java.lang.Object
org.sonews.daemon.command.CapabilitiesCommand
- All Implemented Interfaces:
Command
The CAPABILITIES command allows a client to determine the capabilities of the server at any given time. This command MAY be issued at any time; the server MUST NOT require it to be issued in order to make use of any capability. The response generated by this command MAY change during a session because of other state information (which, in turn, may be changed by the effects of other commands or by external events). An NNTP client is only able to get the current and correct information concerning available capabilities at any point during a session by issuing a CAPABILITIES command at that point of that session and processing the response.
- Since:
- sonews/0.5.0
- Author:
- Christian Lins
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]
boolean
First called after one call to processLine().Returns capability string that is implied by this command class.boolean
void
processLine
(NNTPConnection conn, String line, byte[] raw)
-
Constructor Details
-
CapabilitiesCommand
public CapabilitiesCommand()
-
-
Method Details
-
getSupportedCommandStrings
- Specified by:
getSupportedCommandStrings
in interfaceCommand
-
hasFinished
public boolean hasFinished()First called after one call to processLine().- Specified by:
hasFinished
in interfaceCommand
- Returns:
-
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
-