|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.net.URLStreamHandler
org.eclipse.osgi.framework.internal.core.BundleResourceHandler
public abstract class BundleResourceHandler
URLStreamHandler the bundleentry and bundleresource protocols.
| Field Summary | |
|---|---|
static java.lang.String |
BID_FWKID_SEPARATOR
|
protected BundleEntry |
bundleEntry
|
static java.lang.String |
SECURITY_CHECKED
|
static java.lang.String |
SECURITY_UNCHECKED
|
| Constructor Summary | |
|---|---|
BundleResourceHandler()
Constructor for a bundle protocol resource URLStreamHandler. |
|
BundleResourceHandler(BundleEntry bundleEntry,
BaseAdaptor adaptor)
|
|
| Method Summary | |
|---|---|
protected boolean |
checkAuthorization(Bundle bundle)
|
protected boolean |
equals(java.net.URL url1,
java.net.URL url2)
|
protected abstract BundleEntry |
findBundleEntry(java.net.URL url,
AbstractBundle bundle)
Finds the bundle entry for this protocal. |
protected static BaseClassLoader |
getBundleClassLoader(AbstractBundle bundle)
|
protected java.net.InetAddress |
getHostAddress(java.net.URL url)
|
protected int |
hashCode(java.net.URL url)
|
protected boolean |
hostsEqual(java.net.URL url1,
java.net.URL url2)
|
protected java.net.URLConnection |
openConnection(java.net.URL url)
Establishes a connection to the resource specified by URL. |
protected void |
parseURL(java.net.URL url,
java.lang.String str,
int start,
int end)
Parse reference URL. |
protected boolean |
sameFile(java.net.URL url1,
java.net.URL url2)
|
void |
start(BundleContext context,
FrameworkAdaptor baseAdaptor)
|
protected java.lang.String |
toExternalForm(java.net.URL url)
Converts a bundle URL to a String. |
| Methods inherited from class java.net.URLStreamHandler |
|---|
getDefaultPort, openConnection, setURL, setURL |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String SECURITY_CHECKED
public static final java.lang.String SECURITY_UNCHECKED
public static final java.lang.String BID_FWKID_SEPARATOR
protected BundleEntry bundleEntry
| Constructor Detail |
|---|
public BundleResourceHandler()
public BundleResourceHandler(BundleEntry bundleEntry,
BaseAdaptor adaptor)
| Method Detail |
|---|
public void start(BundleContext context,
FrameworkAdaptor baseAdaptor)
start in interface ProtocolActivator
protected void parseURL(java.net.URL url,
java.lang.String str,
int start,
int end)
parseURL in class java.net.URLStreamHandler
protected java.net.URLConnection openConnection(java.net.URL url)
throws java.io.IOException
URL.
Since different protocols may have unique ways of connecting, it must be
overridden by the subclass.
openConnection in class java.net.URLStreamHandlerurl - java.net.URL
java.io.IOException - thrown if an IO error occurs during connection establishment
protected abstract BundleEntry findBundleEntry(java.net.URL url,
AbstractBundle bundle)
throws java.io.IOException
url - The URL to find the BundleEntry for.
java.io.IOExceptionprotected java.lang.String toExternalForm(java.net.URL url)
toExternalForm in class java.net.URLStreamHandlerurl - the URL.
protected int hashCode(java.net.URL url)
hashCode in class java.net.URLStreamHandler
protected boolean equals(java.net.URL url1,
java.net.URL url2)
equals in class java.net.URLStreamHandlerprotected java.net.InetAddress getHostAddress(java.net.URL url)
getHostAddress in class java.net.URLStreamHandler
protected boolean hostsEqual(java.net.URL url1,
java.net.URL url2)
hostsEqual in class java.net.URLStreamHandler
protected boolean sameFile(java.net.URL url1,
java.net.URL url2)
sameFile in class java.net.URLStreamHandlerprotected boolean checkAuthorization(Bundle bundle)
protected static BaseClassLoader getBundleClassLoader(AbstractBundle bundle)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||