if (hasCachedDocElement()) { Element e = getCachedDocElement(); def = loadDefinition(); } catch (Exception e) { if (isDebugEnabled) { setCachedDocElement(docElement); setCachedTypes(def.getTypes());
if (hasCachedTypes()) { Types t = getCachedTypes(); if (isDebugEnabled) { log.debug(myClassName + ".getTypes() from soft reference [" + t def = loadDefinition(); } catch (Exception e) { if (isDebugEnabled) { setCachedTypes(t); setCachedDocElement(def.getDocumentationElement());
wsdlExplicitURI = getExplicitURI(wsdlURL); releaseResources();
if (WSDLWrapperReloadImpl.isReloadable(def, wURL)) { wrapperImpl = new WSDLWrapperReloadImpl(def, wURL); } else {
url = getAbsoluteURL(classLoader, filePath, wsdlURL); InputStream is = null; try { is = getInputStream(urlCon); } catch (IOException e) { if (isDebugEnabled) { url = getAbsoluteURL(classLoader, filePath, wsdlURL); if (url == null) { if (log.isDebugEnabled()) {
private static URL getAbsoluteURL(final ClassLoader classLoader, final String filePath, URL wURL) throws WSDLException { URL url = (URL) AccessController.doPrivileged( new PrivilegedAction() { public Object run() { return classLoader.getResource(filePath); } } ); if (url == null) { if (log.isDebugEnabled()) { log.debug("Could not get URL from classloader. Looking in a jar."); } if (classLoader instanceof URLClassLoader) { URLClassLoader urlLoader = (URLClassLoader) classLoader; url = getURLFromJAR(urlLoader, wURL); } } return url; }
explicitURI = getExplicitURI(wURL);
if (WSDLWrapperReloadImpl.isReloadable(def, wURL)) { wrapperImpl = new WSDLWrapperReloadImpl(def, wURL); } else {
url = getAbsoluteURL(classLoader, filePath, wsdlURL); InputStream is = null; try { is = getInputStream(urlCon); } catch (IOException e) { if (isDebugEnabled) { url = getAbsoluteURL(classLoader, filePath, wsdlURL); if (url == null) { if (log.isDebugEnabled()) {
private static URL getAbsoluteURL(final ClassLoader classLoader, final String filePath, URL wURL) throws WSDLException { URL url = (URL) AccessController.doPrivileged( new PrivilegedAction() { public Object run() { return classLoader.getResource(filePath); } } ); if (url == null) { if (log.isDebugEnabled()) { log.debug("Could not get URL from classloader. Looking in a jar."); } if (classLoader instanceof URLClassLoader) { URLClassLoader urlLoader = (URLClassLoader) classLoader; url = getURLFromJAR(urlLoader, wURL); } } return url; }
explicitURI = getExplicitURI(wURL);
if (hasCachedTypes()) { Types t = getCachedTypes(); if (isDebugEnabled) { log.debug(myClassName + ".getTypes() from soft reference [" + t def = loadDefinition(); } catch (Exception e) { if (isDebugEnabled) { setCachedTypes(t); setCachedDocElement(def.getDocumentationElement());
if (hasCachedDocElement()) { Element e = getCachedDocElement(); def = loadDefinition(); } catch (Exception e) { if (isDebugEnabled) { setCachedDocElement(docElement); setCachedTypes(def.getTypes());
wsdlExplicitURI = getExplicitURI(wsdlURL); releaseResources();