Commit 384c3271 authored by Quxl's avatar Quxl

x

parent a1d9b6ce
......@@ -49,24 +49,18 @@ public class SAPServiceFactory {
private static String absolutePath = null;
private String getAbsolutePath(String WSDLPATH) {
if(absolutePath == null) {
synchronized (absolutePath) {
if(absolutePath == null) {
ApplicationHome home = new ApplicationHome(getClass());
File jarFile = home.getSource();
File folder = jarFile.getParentFile();
absolutePath = folder.getAbsolutePath();
}
}
}
return "file:///" + absolutePath + "/" + WSDLPATH;
}
private WSS4JOutInterceptor wss4JOutInterceptor = null;
public WSS4JOutInterceptor getWSS4JOutInterceptor() {
if(wss4JOutInterceptor == null) {
synchronized (wss4JOutInterceptor) {
if(wss4JOutInterceptor == null) {
Map<String, Object> pro = new HashMap<String, Object>();
pro.put(WSHandlerConstants.ACTION, WSHandlerConstants.USERNAME_TOKEN);
......@@ -82,8 +76,6 @@ public class SAPServiceFactory {
});
wss4JOutInterceptor = new WSS4JOutInterceptor(pro);
}
}
}
return wss4JOutInterceptor;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment