public void accept (BundleDescriptor bundle) { for (Iterator<WebService> itr = bundle.getWebServices().getWebServices().iterator(); itr.hasNext();) { WebService aWebService = itr.next(); accept(aWebService); } if (bundle instanceof JndiNameEnvironment) { for (Iterator<ServiceReferenceDescriptor> itr = ((JndiNameEnvironment)bundle).getServiceReferenceDescriptors().iterator(); itr.hasNext();) { accept(itr.next()); } } if (bundle instanceof EjbBundleDescriptor) { EjbBundleDescriptor ejbBundle = (EjbBundleDescriptor)bundle; for (EjbDescriptor anEjb : ejbBundle.getEjbs()) { for (Iterator<ServiceReferenceDescriptor> itr = anEjb.getServiceReferenceDescriptors().iterator(); itr.hasNext();) { accept(itr.next()); } } } }
public static URL getEntryAsUrl(File moduleLocation, String uri) throws MalformedURLException, IOException { URL url = null; try { url = new URL(uri); } catch(java.net.MalformedURLException e) { // ignore url = null; } if (url!=null) { return url; } if( moduleLocation != null ) { if( moduleLocation.isFile() ) { url = createJarUrl(moduleLocation, uri); } else { String path = uri.replace('/', File.separatorChar); url = new File(moduleLocation, path).toURI().toURL(); } } return url; }
private URL internalGetUrl(ModuleDescriptor module, String uri) throws Exception { File moduleLocation = new File(getModuleLocation(module)); URL url = getEntryAsUrl(moduleLocation, uri); return url; }
} else { File wsdlFile = new File(getModuleLocation(moduleDesc), wsdlFileUri); URL wsdlFileUrl = internalGetUrl(moduleDesc, wsdlFileUri); serviceRef.setWsdlFileUrl(wsdlFile.toURI().toURL()); File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri); serviceRef.setMappingFile(mappingFile);
File wsdlFile = new File(getModuleLocation(moduleDesc), wsdlFileUri); wsdlFileURL = wsdlFile.toURI().toURL(); File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri); webService.setMappingFile(mappingFile);
} else { URL wsdlFileUrl = internalGetUrl(moduleDesc, wsdlFileUri); serviceRef.setWsdlFileUrl(wsdlFileUrl); File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri); serviceRef.setMappingFile(mappingFile);
File wsdlFile = new File(getModuleLocation(moduleDesc), wsdlFileUri); wsdlFileURL = wsdlFile.toURI().toURL(); File mappingFile = new File(getModuleLocation(moduleDesc), mappingFileUri); webService.setMappingFile(mappingFile);
private URL internalGetUrl(ModuleDescriptor module, String uri) throws Exception { File moduleLocation = new File(getModuleLocation(module)); URL url = getEntryAsUrl(moduleLocation, uri); return url; }
return; super.accept(webService); try { if((new WsUtil()).isJAXWSbasedService(webService)) {
public static URL getEntryAsUrl(File moduleLocation, String uri) throws MalformedURLException, IOException { URL url = null; try { url = new URL(uri); } catch(java.net.MalformedURLException e) { // ignore url = null; } if (url!=null) { return url; } if( moduleLocation != null ) { if( moduleLocation.isFile() ) { url = createJarUrl(moduleLocation, uri); } else { String path = uri.replace('/', File.separatorChar); url = new File(moduleLocation, path).toURI().toURL(); } } return url; }
boolean wsdlOverriden = false; boolean jaxwsClient = false; super.accept(serviceRef); try { ClassLoader clr = serviceRef.getBundleDescriptor().getClassLoader();