Package org.eclipse.osgi.framework.internal.protocol.bundleresource

Examples of org.eclipse.osgi.framework.internal.protocol.bundleresource.Handler


    if (hostData != null)
      hostBundleID = hostData.getBundleID();
    path = fixTrailingSlash(path, bundleEntry);
    try {
      //use the constant string for the protocol to prevent duplication
      return secureAction.getURL(Constants.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostData.getAdaptor().hashCode()), index, path, new Handler(bundleEntry, hostData == null ? null : hostData.getAdaptor()));
    } catch (MalformedURLException e) {
      return null;
    }
  }
View Full Code Here


    if (hostData != null)
      hostBundleID = hostData.getBundleID();
    path = fixTrailingSlash(path, bundleEntry);
    try {
      //use the constant string for the protocol to prevent duplication
      return secureAction.getURL(Constants.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID) + BundleResourceHandler.BID_FWKID_SEPARATOR + Integer.toString(hostData.getAdaptor().hashCode()), index, path, new Handler(bundleEntry, hostData == null ? null : hostData.getAdaptor()));
    } catch (MalformedURLException e) {
      return null;
    }
  }
View Full Code Here

      return null;
    if (path.length() == 0 || path.charAt(0) != '/')
      path = '/' + path;
    try {
      //use the constant string for the protocol to prevent duplication
      return secureAction.getURL(Constants.OSGI_RESOURCE_URL_PROTOCOL, Long.toString(hostBundleID), index, path, new Handler(bundleEntry));
    } catch (MalformedURLException e) {
      return null;
    }
  }
View Full Code Here

TOP

Related Classes of org.eclipse.osgi.framework.internal.protocol.bundleresource.Handler

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.