/** * Creates a URL to access the content of the specified entry * @param bundleEntry the bundle entry * @param hostModule the host module * @param index the resource index * @param path * @return a URL to access the contents of the specified entry */ protected URL createResourceURL(BundleEntry bundleEntry, Module hostModule, int index, String path) { long hostBundleID = hostModule.getId(); path = fixTrailingSlash(path, bundleEntry); try { //use the constant string for the protocol to prevent duplication return secureAction.getURL(BundleResourceHandler.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostModule.getContainer().hashCode()), index, path, new Handler(hostModule.getContainer(), bundleEntry)); } catch (MalformedURLException e) { return null; } }
/** * Creates a URL to access the content of the specified entry * @param bundleEntry the bundle entry * @param hostModule the host module * @param index the resource index * @param path * @return a URL to access the contents of the specified entry */ protected URL createResourceURL(BundleEntry bundleEntry, Module hostModule, int index, String path) { long hostBundleID = hostModule.getId(); path = fixTrailingSlash(path, bundleEntry); try { //use the constant string for the protocol to prevent duplication return secureAction.getURL(BundleResourceHandler.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostModule.getContainer().hashCode()), index, path, new Handler(hostModule.getContainer(), bundleEntry)); } catch (MalformedURLException e) { return null; } }
/** * Creates a URL to access the content of the specified entry * @param bundleEntry the bundle entry * @param hostModule the host module * @param index the resource index * @param path * @return a URL to access the contents of the specified entry */ protected URL createResourceURL(BundleEntry bundleEntry, Module hostModule, int index, String path) { long hostBundleID = hostModule.getId(); path = fixTrailingSlash(path, bundleEntry); try { //use the constant string for the protocol to prevent duplication return secureAction.getURL(BundleResourceHandler.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostModule.getContainer().hashCode()), index, path, new Handler(hostModule.getContainer(), bundleEntry)); } catch (MalformedURLException e) { return null; } }
/** * Creates a URL to access the content of the specified entry * @param bundleEntry the bundle entry * @param hostModule the host module * @param index the resource index * @param path * @return a URL to access the contents of the specified entry */ protected URL createResourceURL(BundleEntry bundleEntry, Module hostModule, int index, String path) { long hostBundleID = hostModule.getId(); path = fixTrailingSlash(path, bundleEntry); try { //use the constant string for the protocol to prevent duplication return secureAction.getURL(BundleResourceHandler.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostModule.getContainer().hashCode()), index, path, new Handler(hostModule.getContainer(), bundleEntry)); } catch (MalformedURLException e) { return null; } }
/** * Creates a URL to access the content of the specified entry * @param bundleEntry the bundle entry * @param hostModule the host module * @param index the resource index * @param path * @return a URL to access the contents of the specified entry */ protected URL createResourceURL(BundleEntry bundleEntry, Module hostModule, int index, String path) { long hostBundleID = hostModule.getId(); path = fixTrailingSlash(path, bundleEntry); try { //use the constant string for the protocol to prevent duplication return secureAction.getURL(BundleResourceHandler.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostModule.getContainer().hashCode()), index, path, new Handler(hostModule.getContainer(), bundleEntry)); } catch (MalformedURLException e) { return null; } }
/** * Returns a URL to access the contents of the entry specified by the path * @param path the path to the resource * @param hostModule the host module * @param index the resource index * @return a URL to access the contents of the entry specified by the path */ public URL getResourceURL(String path, Module hostModule, int index) { BundleEntry bundleEntry = getEntry(path); if (bundleEntry == null) return null; long hostBundleID = hostModule.getId(); path = fixTrailingSlash(path, bundleEntry); try { //use the constant string for the protocol to prevent duplication return secureAction.getURL(BundleResourceHandler.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostModule.getContainer().hashCode()), index, path, new Handler(hostModule.getContainer(), bundleEntry)); } catch (MalformedURLException e) { return null; } }
public URL getEntry(String path) { BundleEntry entry = getBundleFile().getEntry(path); if (entry == null) return null; path = BundleFile.fixTrailingSlash(path, entry); try { //use the constant string for the protocol to prevent duplication return Storage.secureAction.getURL(BundleResourceHandler.OSGI_ENTRY_URL_PROTOCOL, Long.toString(getBundleId()) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(getStorage().getModuleContainer().hashCode()), 0, path, new Handler(getStorage().getModuleContainer(), entry)); } catch (MalformedURLException e) { return null; } }
public URL getEntry(String path) { BundleEntry entry = getBundleFile().getEntry(path); if (entry == null) return null; path = BundleFile.fixTrailingSlash(path, entry); try { //use the constant string for the protocol to prevent duplication return Storage.secureAction.getURL(BundleResourceHandler.OSGI_ENTRY_URL_PROTOCOL, Long.toString(getBundleId()) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(getStorage().getModuleContainer().hashCode()), 0, path, new Handler(getStorage().getModuleContainer(), entry)); } catch (MalformedURLException e) { return null; } }
public URL getEntry(String path) { BundleEntry entry = getBundleFile().getEntry(path); if (entry == null) return null; path = BundleFile.fixTrailingSlash(path, entry); try { //use the constant string for the protocol to prevent duplication return Storage.secureAction.getURL(BundleResourceHandler.OSGI_ENTRY_URL_PROTOCOL, Long.toString(getBundleId()) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(getStorage().getModuleContainer().hashCode()), 0, path, new Handler(getStorage().getModuleContainer(), entry)); } catch (MalformedURLException e) { return null; } }
public URL getEntry(String path) { BundleEntry entry = getBundleFile().getEntry(path); if (entry == null) return null; path = BundleFile.fixTrailingSlash(path, entry); try { //use the constant string for the protocol to prevent duplication return Storage.secureAction.getURL(BundleResourceHandler.OSGI_ENTRY_URL_PROTOCOL, Long.toString(getBundleId()) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(getStorage().getModuleContainer().hashCode()), 0, path, new Handler(getStorage().getModuleContainer(), entry)); } catch (MalformedURLException e) { return null; } }
public URL getEntry(String path) { BundleEntry entry = getBundleFile().getEntry(path); if (entry == null) return null; path = BundleFile.fixTrailingSlash(path, entry); try { //use the constant string for the protocol to prevent duplication return Storage.secureAction.getURL(BundleResourceHandler.OSGI_ENTRY_URL_PROTOCOL, Long.toString(getBundleId()) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(getStorage().getModuleContainer().hashCode()), 0, path, new Handler(getStorage().getModuleContainer(), entry)); } catch (MalformedURLException e) { return null; } }
public URL getEntry(String path) { BundleEntry entry = getBundleFile().getEntry(path); if (entry == null) return null; path = BundleFile.fixTrailingSlash(path, entry); try { //use the constant string for the protocol to prevent duplication return Storage.secureAction.getURL(BundleResourceHandler.OSGI_ENTRY_URL_PROTOCOL, Long.toString(getBundleId()) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(getStorage().getModuleContainer().hashCode()), 0, path, new Handler(getStorage().getModuleContainer(), entry)); } catch (MalformedURLException e) { return null; } }