client check test
This commit is contained in:
+6
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user