|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.net.URLStreamHandler
org.knopflerfish.framework.BundleURLStreamHandler
public class BundleURLStreamHandler
Bundle URL handling.
| Field Summary | |
|---|---|
static java.lang.String |
PERM_OK
|
static java.lang.String |
PROTOCOL
|
| Method Summary | |
|---|---|
protected boolean |
equals(java.net.URL u1,
java.net.URL u2)
Equals calculation for bundle URLs. |
protected java.net.InetAddress |
getHostAddress(java.net.URL url)
|
protected int |
hashCode(java.net.URL u)
Provides the hash calculation |
protected boolean |
hostsEqual(java.net.URL u1,
java.net.URL u2)
Compares the host components of two URLs. |
java.net.URLConnection |
openConnection(java.net.URL u)
|
protected void |
parseURL(java.net.URL u,
java.lang.String s,
int start,
int limit)
|
protected boolean |
sameFile(java.net.URL u1,
java.net.URL u2)
Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path. |
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 PROTOCOL
public static final java.lang.String PERM_OK
| Method Detail |
|---|
public java.net.URLConnection openConnection(java.net.URL u)
openConnection in class java.net.URLStreamHandler
protected void parseURL(java.net.URL u,
java.lang.String s,
int start,
int limit)
parseURL in class java.net.URLStreamHandler
protected boolean equals(java.net.URL u1,
java.net.URL u2)
equals in class java.net.URLStreamHandlerprotected int hashCode(java.net.URL u)
hashCode in class java.net.URLStreamHandler
protected boolean sameFile(java.net.URL u1,
java.net.URL u2)
sameFile in class java.net.URLStreamHandler
protected boolean hostsEqual(java.net.URL u1,
java.net.URL u2)
hostsEqual in class java.net.URLStreamHandleru1 - the URL of the first host to compareu2 - the URL of the second host to compare
protected java.lang.String toExternalForm(java.net.URL url)
toExternalForm in class java.net.URLStreamHandlerurl - the URL.
protected java.net.InetAddress getHostAddress(java.net.URL url)
getHostAddress in class java.net.URLStreamHandler
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||