java.net.URLStreamHandler
methods.
The important differences between this interface and the URLStreamHandler
class are that the setURL
method is absent and the parseURL
method takes a URLStreamHandlerSetterobject as the first argument. Classes implementing this interface must call the setURL
method on the URLStreamHandlerSetter
object received in the parseURL
method instead of URLStreamHandler.setURL
to avoid a SecurityException
.
Definition at line 40 of file URLStreamHandlerService.java.
Public Member Functions | |
URLConnection | openConnection (URL u) throws java.io.IOException |
| |
void | parseURL (URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit) |
Parse a URL. | |
String | toExternalForm (URL u) |
| |
boolean | equals (URL u1, URL u2) |
| |
int | getDefaultPort () |
| |
InetAddress | getHostAddress (URL u) |
| |
int | hashCode (URL u) |
| |
boolean | hostsEqual (URL u1, URL u2) |
| |
boolean | sameFile (URL u1, URL u2) |
|
void org.osgi.service.url.URLStreamHandlerService.parseURL | ( | URLStreamHandlerSetter | realHandler, | |
URL | u, | |||
String | spec, | |||
int | start, | |||
int | limit | |||
) |
Parse a URL.
This method is called by the URLStreamHandler
proxy, instead of java.net.URLStreamHandler.parseURL
, passing a URLStreamHandlerSetter
object.
realHandler | The object on which setURL must be invoked for this URL. |
Implemented in org.osgi.service.url.AbstractURLStreamHandlerService.