|
||||||||||
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 | |
---|---|
protected BundleEntry |
bundleEntry
|
protected static BundleContext |
context
|
static java.lang.String |
SECURITY_AUTHORIZED
|
Constructor Summary | |
---|---|
BundleResourceHandler()
Constructor for a bundle protocol resource URLStreamHandler. |
|
BundleResourceHandler(BundleEntry bundleEntry)
|
Method Summary | |
---|---|
protected void |
checkAdminPermission(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)
|
static void |
setContext(BundleContext context)
|
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_AUTHORIZED
protected static BundleContext context
protected BundleEntry bundleEntry
Constructor Detail |
---|
public BundleResourceHandler()
public BundleResourceHandler(BundleEntry bundleEntry)
Method Detail |
---|
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.URLStreamHandler
url
- java.net.URL
java.io.IOException
- thrown if an IO error occurs during connection establishmentprotected abstract BundleEntry findBundleEntry(java.net.URL url, AbstractBundle bundle) throws java.io.IOException
url
- The URL to find the BundleEntry for.
java.io.IOException
protected java.lang.String toExternalForm(java.net.URL url)
toExternalForm
in class java.net.URLStreamHandler
url
- the URL.
public static void setContext(BundleContext context)
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.URLStreamHandler
protected 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.URLStreamHandler
protected void checkAdminPermission(Bundle bundle)
protected static BaseClassLoader getBundleClassLoader(AbstractBundle bundle)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |