1.1 --- a/src/org/sonews/daemon/command/CapabilitiesCommand.java Sun Aug 29 17:28:58 2010 +0200
1.2 +++ b/src/org/sonews/daemon/command/CapabilitiesCommand.java Tue Sep 13 19:08:15 2011 +0200
1.3 @@ -42,52 +42,49 @@
1.4 public class CapabilitiesCommand implements Command
1.5 {
1.6
1.7 - static final String[] CAPABILITIES = new String[]
1.8 - {
1.9 - "VERSION 2", // MUST be the first one; VERSION 2 refers to RFC3977
1.10 - "READER", // Server implements commands for reading
1.11 - "POST", // Server implements POST command
1.12 - "OVER" // Server implements OVER command
1.13 - };
1.14 + static final String[] CAPABILITIES = new String[] {
1.15 + "VERSION 2", // MUST be the first one; VERSION 2 refers to RFC3977
1.16 + "READER", // Server implements commands for reading
1.17 + "POST", // Server implements POST command
1.18 + "OVER" // Server implements OVER command
1.19 + };
1.20
1.21 - @Override
1.22 - public String[] getSupportedCommandStrings()
1.23 - {
1.24 - return new String[] {"CAPABILITIES"};
1.25 - }
1.26 + @Override
1.27 + public String[] getSupportedCommandStrings()
1.28 + {
1.29 + return new String[] {"CAPABILITIES"};
1.30 + }
1.31
1.32 - /**
1.33 - * First called after one call to processLine().
1.34 - * @return
1.35 - */
1.36 - @Override
1.37 - public boolean hasFinished()
1.38 - {
1.39 - return true;
1.40 - }
1.41 + /**
1.42 + * First called after one call to processLine().
1.43 + * @return
1.44 + */
1.45 + @Override
1.46 + public boolean hasFinished()
1.47 + {
1.48 + return true;
1.49 + }
1.50
1.51 - @Override
1.52 - public String impliedCapability()
1.53 - {
1.54 - return null;
1.55 - }
1.56 -
1.57 - @Override
1.58 - public boolean isStateful()
1.59 - {
1.60 - return false;
1.61 - }
1.62 + @Override
1.63 + public String impliedCapability()
1.64 + {
1.65 + return null;
1.66 + }
1.67
1.68 - @Override
1.69 - public void processLine(NNTPConnection conn, final String line, byte[] raw)
1.70 - throws IOException
1.71 - {
1.72 - conn.println("101 Capabilities list:");
1.73 - for(String cap : CAPABILITIES)
1.74 - {
1.75 - conn.println(cap);
1.76 - }
1.77 - conn.println(".");
1.78 - }
1.79 + @Override
1.80 + public boolean isStateful()
1.81 + {
1.82 + return false;
1.83 + }
1.84
1.85 + @Override
1.86 + public void processLine(NNTPConnection conn, final String line, byte[] raw)
1.87 + throws IOException
1.88 + {
1.89 + conn.println("101 Capabilities list:");
1.90 + for (String cap : CAPABILITIES) {
1.91 + conn.println(cap);
1.92 + }
1.93 + conn.println(".");
1.94 + }
1.95 }