summaryrefslogtreecommitdiffstats
path: root/profiles
diff options
context:
space:
mode:
authorKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-26 10:52:06 +0530
committerKanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>2018-04-26 11:38:25 +0530
commite49c63a4f876d28ef3b38b9028924301eead4625 (patch)
tree50491f78c6775c999979cf3e4b5cb90e81d905a1 /profiles
parentb332e883b745f01b2c932d80f734ef7c10f0f378 (diff)
Migrate to entrySet from keySet
Issue-ID: CLI-100 Change-Id: I8ccbe473ad44c7f08fbc16cd1953adc144946271 Signed-off-by: Kanagaraj Manickam k00365106 <kanagaraj.manickam@huawei.com>
Diffstat (limited to 'profiles')
-rw-r--r--profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java12
1 files changed, 6 insertions, 6 deletions
diff --git a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
index 266ab855..31786245 100644
--- a/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
+++ b/profiles/http/src/main/java/org/onap/cli/fw/http/connect/OnapHttpConnection.java
@@ -240,16 +240,16 @@ public class OnapHttpConnection {
input.getReqHeaders().put("Accept", OnapCommandHttpConstants.APPLICATION_JSON);
}
- for (String headerName : this.mapCommonHeaders.keySet()) {
- input.getReqHeaders().put(headerName, this.mapCommonHeaders.get(headerName));
+ for (Entry<String, String> header : this.mapCommonHeaders.entrySet()) {
+ input.getReqHeaders().put(header.getKey(), header.getValue());
}
}
private void addCommonCookies(CookieStore cookieStore) {
- for (String headerName : this.mapCommonHeaders.keySet()) {
- Cookie cookie = new BasicClientCookie(headerName, this.mapCommonHeaders.get(headerName));
- cookieStore.addCookie(cookie);
- }
+ for (Entry<String, String> header : this.mapCommonHeaders.entrySet()) {
+ Cookie cookie = new BasicClientCookie(header.getKey(), header.getValue());
+ cookieStore.addCookie(cookie);
+ }
}
private void updateResultFromCookies(HttpResult result, List<Cookie> cookies) {