diff -r 1090e2141798 -r 2fdc9cc89502 org/sonews/daemon/command/UnsupportedCommand.java --- a/org/sonews/daemon/command/UnsupportedCommand.java Wed Jul 01 10:48:22 2009 +0200 +++ b/org/sonews/daemon/command/UnsupportedCommand.java Wed Jul 22 14:04:05 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"); } }