src/org/sonews/daemon/command/ModeReaderCommand.java
changeset 120 bb1c8a7b774c
parent 35 ed84c8bdd87b
     1.1 --- a/src/org/sonews/daemon/command/ModeReaderCommand.java	Sun Aug 29 17:28:58 2010 +0200
     1.2 +++ b/src/org/sonews/daemon/command/ModeReaderCommand.java	Wed Dec 31 12:07:40 2014 +0100
     1.3 @@ -30,43 +30,39 @@
     1.4   */
     1.5  public class ModeReaderCommand implements Command
     1.6  {
     1.7 -  
     1.8 -  @Override
     1.9 -  public String[] getSupportedCommandStrings()
    1.10 -  {
    1.11 -    return new String[]{"MODE"};
    1.12 -  }
    1.13  
    1.14 -  @Override
    1.15 -  public boolean hasFinished()
    1.16 -  {
    1.17 -    return true;
    1.18 -  }
    1.19 +	@Override
    1.20 +	public String[] getSupportedCommandStrings()
    1.21 +	{
    1.22 +		return new String[] {"MODE"};
    1.23 +	}
    1.24  
    1.25 -  @Override
    1.26 -  public String impliedCapability()
    1.27 -  {
    1.28 -    return null;
    1.29 -  }
    1.30 +	@Override
    1.31 +	public boolean hasFinished()
    1.32 +	{
    1.33 +		return true;
    1.34 +	}
    1.35  
    1.36 -  @Override
    1.37 -  public boolean isStateful()
    1.38 -  {
    1.39 -    return false;
    1.40 -  }
    1.41 +	@Override
    1.42 +	public String impliedCapability()
    1.43 +	{
    1.44 +		return null;
    1.45 +	}
    1.46  
    1.47 -  @Override
    1.48 -  public void processLine(NNTPConnection conn, final String line, byte[] raw)
    1.49 -    throws IOException, StorageBackendException
    1.50 -  {
    1.51 -    if(line.equalsIgnoreCase("MODE READER"))
    1.52 -    {
    1.53 -      conn.println("200 hello you can post");
    1.54 -    }
    1.55 -    else
    1.56 -    {
    1.57 -      conn.println("500 I do not know this mode command");
    1.58 -    }
    1.59 -  }
    1.60 +	@Override
    1.61 +	public boolean isStateful()
    1.62 +	{
    1.63 +		return false;
    1.64 +	}
    1.65  
    1.66 +	@Override
    1.67 +	public void processLine(NNTPConnection conn, final String line, byte[] raw)
    1.68 +		throws IOException, StorageBackendException
    1.69 +	{
    1.70 +		if (line.equalsIgnoreCase("MODE READER")) {
    1.71 +			conn.println("200 hello you can post");
    1.72 +		} else {
    1.73 +			conn.println("500 I do not know this mode command");
    1.74 +		}
    1.75 +	}
    1.76  }