client check test

This commit is contained in:
25W0075
2025-11-27 15:15:11 +09:00
parent dd3887eb22
commit b2ccd48e46
@@ -808,21 +808,27 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
Properties inboundHeaders = null;
try {
Object headerObj = tempProp.get(HttpAdapterServiceKey.INBOUND_HEADER);
System.out.println("*** inboundheader Ojb:"+headerObj);
if (headerObj instanceof Properties) { //tomcat
inboundHeaders = (Properties) headerObj;
System.out.println("*** inboundHeaders tomcat:"+inboundHeaders);
} else if (headerObj instanceof String) { //weblogic
inboundHeaders = new Properties();
inboundHeaders.load(new StringReader((String) headerObj));
System.out.println("*** inboundHeaders weblogic:"+inboundHeaders);
}
} catch (IOException e) {
e.printStackTrace();
}
System.out.println("*** inboundheader obj is:"+k);
//* jwhong
String key ="authorization";
String authorization = null;
for (String k : inboundHeaders.stringPropertyNames()) {
System.out.println("*** inboundheader k is:"+k);
if (k.equalsIgnoreCase(key)) {
authorization = inboundHeaders.getProperty(k);
break;