clientid
This commit is contained in:
+17
-8
@@ -821,16 +821,25 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (headerObj instanceof String) { //weblogic
|
} else if (headerObj instanceof String) { //weblogic
|
||||||
String json = (String) headerObj;
|
String str = (String) headerObj;
|
||||||
JSONParser parser = new JSONParser();
|
System.out.println("*** inboundHeaders weblogic str:"+str);
|
||||||
JSONObject obj = (JSONObject) parser.parse(json);
|
str = str.substring(1, str.length() - 1);
|
||||||
for (Object k : obj.keySet()) {
|
|
||||||
if (((String) k).equalsIgnoreCase("authorization")) {
|
String[] entries = str.split(",");
|
||||||
authorization = (String) obj.get(k);
|
|
||||||
System.out.println("*** inboundHeaders authorization weblogic:"+authorization);
|
Map<String, String> map = new HashMap<>();
|
||||||
|
for (String entry : entries) {
|
||||||
|
String[] kv = entry.split("=", 2);
|
||||||
|
if (kv.length == 2) {
|
||||||
|
map.put( kv[0].trim(), kv[1].trim());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
for (String k : map.keySet() ) {
|
||||||
|
if ( k.equalsIgnoreCase("authorization")) {
|
||||||
|
authorization = map.get(k);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} catch (ParseException e) {
|
} catch (ParseException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|||||||
Reference in New Issue
Block a user