summaryrefslogtreecommitdiffstats
path: root/cadi/client/src/main
diff options
context:
space:
mode:
authorJonathan Gathman <jonathan.gathman@att.com>2018-04-23 14:49:52 +0000
committerGerrit Code Review <gerrit@onap.org>2018-04-23 14:49:52 +0000
commit6a93111c678a3970ab2f1667511d59d5fba458f6 (patch)
treeff3a5dbea65ffb3b397d00cd6626849fd85eb4a5 /cadi/client/src/main
parentf3e4bd6e45c0a103c0336e6d030eca5de2d4110f (diff)
parent04deea8e0563857cbb7e27c66d54e9ae98ea1c33 (diff)
Merge "Improve coverage of cadi-client"
Diffstat (limited to 'cadi/client/src/main')
-rw-r--r--cadi/client/src/main/java/org/onap/aaf/cadi/http/HMangr.java8
1 files changed, 1 insertions, 7 deletions
diff --git a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HMangr.java b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HMangr.java
index 2aa10ac3..772a499c 100644
--- a/cadi/client/src/main/java/org/onap/aaf/cadi/http/HMangr.java
+++ b/cadi/client/src/main/java/org/onap/aaf/cadi/http/HMangr.java
@@ -130,9 +130,6 @@ public class HMangr {
} else {
throw new CadiException("Socket prematurely closed, no more services to try");
}
- } else if(ec instanceof SSLHandshakeException) {
- retryable.item(null);
- throw e;
} else if(ec instanceof SocketException) {
if("java.net.SocketException: Connection reset".equals(ec.getMessage())) {
access.log(Level.ERROR, ec.getMessage(), " can mean Certificate Expiration or TLS Protocol issues");
@@ -160,9 +157,6 @@ public class HMangr {
public<RET> RET best(SecuritySetter<HttpURLConnection> ss, Retryable<RET> retryable) throws LocatorException, CadiException, APIException {
- if(loc==null) {
- throw new LocatorException("No Locator Configured");
- }
retryable.item(loc.best());
return same(ss,retryable);
}
@@ -232,7 +226,7 @@ public class HMangr {
connectionTimeout = t;
}
- public int connectionTimout() {
+ public int connectionTimeout() {
return connectionTimeout;
}