diff options
author | Kevin Smith <git@kismith.co.uk> | 2012-10-18 15:41:26 (GMT) |
---|---|---|
committer | Kevin Smith <git@kismith.co.uk> | 2012-10-18 15:41:26 (GMT) |
commit | 1731806d084707847994aea5ccb6c7e388a8d16c (patch) | |
tree | 64f2cec8eea7abec97ef4c59e6b390359ecc51d3 /src/com/isode/stroke/client/ClientOptions.java | |
parent | 9d6bf77f787ed6bb00d723489af338b92b69f2c8 (diff) | |
download | stroke-1731806d084707847994aea5ccb6c7e388a8d16c.zip stroke-1731806d084707847994aea5ccb6c7e388a8d16c.tar.bz2 |
Trying to quieten down PMD's complaining a little bit
Change-Id: Id2710c674abc19cdf2b37f97fe53288b86c7f367
Diffstat (limited to 'src/com/isode/stroke/client/ClientOptions.java')
-rw-r--r-- | src/com/isode/stroke/client/ClientOptions.java | 51 |
1 files changed, 24 insertions, 27 deletions
diff --git a/src/com/isode/stroke/client/ClientOptions.java b/src/com/isode/stroke/client/ClientOptions.java index 4090d1f..4144214 100644 --- a/src/com/isode/stroke/client/ClientOptions.java +++ b/src/com/isode/stroke/client/ClientOptions.java @@ -12,32 +12,6 @@ package com.isode.stroke.client; * Options for a client connection */ public class ClientOptions { - - public enum UseTLS { - - NeverUseTLS, - UseTLSWhenAvailable, - RequireTLS - } - - public ClientOptions() { - useStreamCompression = true; - useTLS = UseTLS.UseTLSWhenAvailable; - useStreamResumption = false; - allowPLAINWithoutTLS = false; - useAcks = true; - manualHostname = ""; - manualPort = -1; - } - - @Override - public String toString() { - return - "useStreamCompression:" + useStreamCompression + - "; useStreamResumption:" + useStreamResumption + - "; " + useTLS; - } - /** * Whether ZLib stream compression should be used when available. * @@ -83,5 +57,28 @@ public class ClientOptions { */ public int manualPort; - + + public enum UseTLS { + NeverUseTLS, + UseTLSWhenAvailable, + RequireTLS + } + + public ClientOptions() { + useStreamCompression = true; + useTLS = UseTLS.UseTLSWhenAvailable; + useStreamResumption = false; + allowPLAINWithoutTLS = false; + useAcks = true; + manualHostname = ""; + manualPort = -1; + } + + @Override + public String toString() { + return + "useStreamCompression:" + useStreamCompression + + "; useStreamResumption:" + useStreamResumption + + "; " + useTLS; + } } |