URLStreamHandlerService
interface.
All the methods simply invoke the corresponding methods on java.net.URLStreamHandler
except for parseURL
and setURL
, which use the URLStreamHandlerSetter
parameter. Subclasses of this abstract class should not need to override the setURL
and parseURL(URLStreamHandlerSetter,...)
methods.
Definition at line 34 of file AbstractURLStreamHandlerService.java.
Public Member Functions | |
abstract URLConnection | openConnection (URL u) throws java.io.IOException |
| |
void | parseURL (URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit) |
Parse a URL using the URLStreamHandlerSetter object. | |
String | toExternalForm (URL u) |
This method calls super.toExternalForm . | |
boolean | equals (URL u1, URL u2) |
This method calls super.equals(URL,URL) . | |
int | getDefaultPort () |
This method calls super.getDefaultPort . | |
InetAddress | getHostAddress (URL u) |
This method calls super.getHostAddress . | |
int | hashCode (URL u) |
This method calls super.hashCode(URL) . | |
boolean | hostsEqual (URL u1, URL u2) |
This method calls super.hostsEqual . | |
boolean | sameFile (URL u1, URL u2) |
This method calls super.sameFile . | |
Protected Member Functions | |
void | setURL (URL u, String proto, String host, int port, String file, String ref) |
This method calls realHandler.setURL(URL,String,String,int,String,String) . | |
void | setURL (URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) |
This method calls realHandler.setURL(URL,String,String,int,String,String,String,String) . | |
Protected Attributes | |
URLStreamHandlerSetter | realHandler |
The URLStreamHandlerSetter object passed to the parseURL method. |
void org.osgi.service.url.AbstractURLStreamHandlerService.parseURL | ( | URLStreamHandlerSetter | realHandler, | |
URL | u, | |||
String | spec, | |||
int | start, | |||
int | limit | |||
) |
Parse a URL using the URLStreamHandlerSetter
object.
This method sets the realHandler
field with the specified URLStreamHandlerSetter
object and then calls parseURL(URL,String,int,int)
.
realHandler | The object on which the setURL method must be invoked for the specified URL. |
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 58 of file AbstractURLStreamHandlerService.java.
String org.osgi.service.url.AbstractURLStreamHandlerService.toExternalForm | ( | URL | u | ) |
This method calls super.toExternalForm
.
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 69 of file AbstractURLStreamHandlerService.java.
boolean org.osgi.service.url.AbstractURLStreamHandlerService.equals | ( | URL | u1, | |
URL | u2 | |||
) |
This method calls super.equals(URL,URL)
.
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 78 of file AbstractURLStreamHandlerService.java.
int org.osgi.service.url.AbstractURLStreamHandlerService.getDefaultPort | ( | ) |
This method calls super.getDefaultPort
.
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 87 of file AbstractURLStreamHandlerService.java.
InetAddress org.osgi.service.url.AbstractURLStreamHandlerService.getHostAddress | ( | URL | u | ) |
This method calls super.getHostAddress
.
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 96 of file AbstractURLStreamHandlerService.java.
int org.osgi.service.url.AbstractURLStreamHandlerService.hashCode | ( | URL | u | ) |
This method calls super.hashCode(URL)
.
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 105 of file AbstractURLStreamHandlerService.java.
boolean org.osgi.service.url.AbstractURLStreamHandlerService.hostsEqual | ( | URL | u1, | |
URL | u2 | |||
) |
This method calls super.hostsEqual
.
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 114 of file AbstractURLStreamHandlerService.java.
boolean org.osgi.service.url.AbstractURLStreamHandlerService.sameFile | ( | URL | u1, | |
URL | u2 | |||
) |
This method calls super.sameFile
.
Implements org.osgi.service.url.URLStreamHandlerService.
Definition at line 123 of file AbstractURLStreamHandlerService.java.
void org.osgi.service.url.AbstractURLStreamHandlerService.setURL | ( | URL | u, | |
String | proto, | |||
String | host, | |||
int | port, | |||
String | file, | |||
String | ref | |||
) | [protected] |
This method calls realHandler.setURL(URL,String,String,int,String,String)
.
Definition at line 135 of file AbstractURLStreamHandlerService.java.
References org.osgi.service.url.AbstractURLStreamHandlerService.realHandler, and org.osgi.service.url.URLStreamHandlerSetter.setURL().
void org.osgi.service.url.AbstractURLStreamHandlerService.setURL | ( | URL | u, | |
String | proto, | |||
String | host, | |||
int | port, | |||
String | auth, | |||
String | user, | |||
String | path, | |||
String | query, | |||
String | ref | |||
) | [protected] |
This method calls realHandler.setURL(URL,String,String,int,String,String,String,String)
.
Definition at line 146 of file AbstractURLStreamHandlerService.java.
References org.osgi.service.url.AbstractURLStreamHandlerService.realHandler, and org.osgi.service.url.URLStreamHandlerSetter.setURL().