diff -r 6fceb66e1ad7 -r 91dc9acb03ed org/sonews/daemon/command/UnsupportedCommand.java --- a/org/sonews/daemon/command/UnsupportedCommand.java Fri Jun 26 16:48:50 2009 +0200 +++ b/org/sonews/daemon/command/UnsupportedCommand.java Fri Aug 21 17:40:54 2009 +0200 @@ -27,14 +27,18 @@ * @author Christian Lins * @since sonews/0.5.0 */ -public class UnsupportedCommand extends AbstractCommand +public class UnsupportedCommand implements Command { + + /** + * @return Always returns null. + */ + @Override + public String[] getSupportedCommandStrings() + { + return null; + } - public UnsupportedCommand(final NNTPConnection conn) - { - super(conn); - } - @Override public boolean hasFinished() { @@ -42,10 +46,16 @@ } @Override - public void processLine(final String line) + public boolean isStateful() + { + return false; + } + + @Override + public void processLine(NNTPConnection conn, final String line, byte[] raw) throws IOException { - printStatus(500, "command not supported"); + conn.println("500 command not supported"); } }