client check test
This commit is contained in:
+6
@@ -808,21 +808,27 @@ public class HttpClient5AdapterServiceRest extends HttpClient5AdapterServiceSupp
|
|||||||
Properties inboundHeaders = null;
|
Properties inboundHeaders = null;
|
||||||
try {
|
try {
|
||||||
Object headerObj = tempProp.get(HttpAdapterServiceKey.INBOUND_HEADER);
|
Object headerObj = tempProp.get(HttpAdapterServiceKey.INBOUND_HEADER);
|
||||||
|
System.out.println("*** inboundheader Ojb:"+headerObj);
|
||||||
if (headerObj instanceof Properties) { //tomcat
|
if (headerObj instanceof Properties) { //tomcat
|
||||||
inboundHeaders = (Properties) headerObj;
|
inboundHeaders = (Properties) headerObj;
|
||||||
|
System.out.println("*** inboundHeaders tomcat:"+inboundHeaders);
|
||||||
} else if (headerObj instanceof String) { //weblogic
|
} else if (headerObj instanceof String) { //weblogic
|
||||||
inboundHeaders = new Properties();
|
inboundHeaders = new Properties();
|
||||||
inboundHeaders.load(new StringReader((String) headerObj));
|
inboundHeaders.load(new StringReader((String) headerObj));
|
||||||
|
System.out.println("*** inboundHeaders weblogic:"+inboundHeaders);
|
||||||
}
|
}
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
System.out.println("*** inboundheader obj is:"+k);
|
||||||
|
|
||||||
//* jwhong
|
//* jwhong
|
||||||
String key ="authorization";
|
String key ="authorization";
|
||||||
String authorization = null;
|
String authorization = null;
|
||||||
|
|
||||||
for (String k : inboundHeaders.stringPropertyNames()) {
|
for (String k : inboundHeaders.stringPropertyNames()) {
|
||||||
|
System.out.println("*** inboundheader k is:"+k);
|
||||||
if (k.equalsIgnoreCase(key)) {
|
if (k.equalsIgnoreCase(key)) {
|
||||||
authorization = inboundHeaders.getProperty(k);
|
authorization = inboundHeaders.getProperty(k);
|
||||||
break;
|
break;
|
||||||
|
|||||||
Reference in New Issue
Block a user