Definition at line 45 of file BundleURLStreamHandler.java.
Protected Member Functions | |
boolean | equals (URL u1, URL u2) |
Equals calculation for bundle URLs. | |
int | hashCode (URL u) |
Provides the hash calculation. | |
boolean | sameFile (URL u1, URL u2) |
Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path. | |
boolean | hostsEqual (URL u1, URL u2) |
Compares the host components of two URLs. | |
String | toExternalForm (URL url) |
Converts a bundle URL to a String. |
boolean org.knopflerfish.framework.BundleURLStreamHandler.equals | ( | URL | u1, | |
URL | u2 | |||
) | [protected] |
Equals calculation for bundle URLs.
true
if the two urls are considered equal, ie. they refer to the same fragment in the same file. Definition at line 196 of file BundleURLStreamHandler.java.
References org.knopflerfish.framework.BundleURLStreamHandler.sameFile().
int org.knopflerfish.framework.BundleURLStreamHandler.hashCode | ( | URL | u | ) | [protected] |
Provides the hash calculation.
int
suitable for hash table indexing Definition at line 205 of file BundleURLStreamHandler.java.
boolean org.knopflerfish.framework.BundleURLStreamHandler.sameFile | ( | URL | u1, | |
URL | u2 | |||
) | [protected] |
Compare two urls to see whether they refer to the same file, i.e., having the same protocol, host, port, and path.
Definition at line 229 of file BundleURLStreamHandler.java.
References org.knopflerfish.framework.BundleURLStreamHandler.hostsEqual().
Referenced by org.knopflerfish.framework.BundleURLStreamHandler.equals().
boolean org.knopflerfish.framework.BundleURLStreamHandler.hostsEqual | ( | URL | u1, | |
URL | u2 | |||
) | [protected] |
Compares the host components of two URLs.
u1 | the URL of the first host to compare | |
u2 | the URL of the second host to compare |
true
if and only if they are equal, false
otherwise. Definition at line 259 of file BundleURLStreamHandler.java.
Referenced by org.knopflerfish.framework.BundleURLStreamHandler.sameFile().
String org.knopflerfish.framework.BundleURLStreamHandler.toExternalForm | ( | URL | url | ) | [protected] |
Converts a bundle URL to a String.
url | the URL. |
Definition at line 272 of file BundleURLStreamHandler.java.