Package org.sonews.daemon.command
Class PostCommand
java.lang.Object
org.sonews.daemon.command.PostCommand
- All Implemented Interfaces:
Command
Implementation of the POST command. This command requires multiple lines from
the client, so the handling of asynchronous reading is a little tricky to
handle.
- 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) Process the given line String. line.trim() was called by NNTPConnection.
-
Constructor Details
-
PostCommand
public PostCommand()
-
-
Method Details
-
getSupportedCommandStrings
- Specified by:
getSupportedCommandStrings
in interfaceCommand
-
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
public void processLine(NNTPConnection conn, String line, byte[] raw) throws IOException, StorageBackendException Process the given line String. line.trim() was called by NNTPConnection.- Specified by:
processLine
in interfaceCommand
- Parameters:
conn
-line
-raw
-- Throws:
IOException
StorageBackendException
-