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.
| Modifier and Type | Field and Description |
|---|---|
| protected volatile URLStreamHandlerSetter | realHandler
The |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | equals(URL
a URL object u1, URL a URL object u2)Overrides java. Implements org. This method calls |
| public int | getDefaultPort()
Overrides java. Implements org. This method calls |
| public InetAddress | getHostAddress(URL
a URL object u)Overrides java. Implements org. This method calls |
| public int | hashCode(URL
a URL object u)Overrides java. Implements org. This method calls |
| public boolean | hostsEqual(URL
the URL of the first host to compare u1, URL the URL of the second host to compare u2)Overrides java. Implements org. This method calls |
| public abstract URLConnection | openConnection(URL
the URL that this connects to. u)Redeclares org. Implements abstract java. Opens a connection to the object referenced by the
|
| public void | parseURL(URLStreamHandlerSetter
The object on which the realHandler, URL u, String spec, int start, int limit)setURL method must be
invoked for the specified URL.Implements org. Parse a URL using the |
| public boolean | sameFile(URL
a URL object u1, URL a URL object u2)Overrides java. Implements org. This method calls |
| protected void | setURL(URL
the URL to modify. u, String the protocol name. This value is ignored since 1.2. proto, String the remote host value for the URL. host, int the port on the remote machine. port, String the file. file, String the reference. ref)Overrides java.
Deprecated
This method is only for compatibility with handlers written
for JDK 1.1.
This method calls
|
| protected void | setURL(URL
the URL to modify. u, String the protocol name. proto, String the remote host value for the URL. host, int the port on the remote machine. port, String the authority part for the URL. auth, String the userInfo part of the URL. user, String the path component of the URL. path, String the query part for the URL. query, String the reference. ref)Overrides java. This method calls
|
| public String | toExternalForm(URL
the URL. u)Overrides java. Implements org. This method calls |
| realHandler | back to summary |
|---|---|
| protected volatile URLStreamHandlerSetter realHandler The | |
| AbstractURLStreamHandlerService | back to summary |
|---|---|
| public AbstractURLStreamHandlerService() | |
| equals | back to summary |
|---|---|
| public boolean equals(URL u1, URL u2) Overrides java. Implements org. This method calls
| |
| getDefaultPort | back to summary |
|---|---|
| public int getDefaultPort() Overrides java. Implements org. This method calls
| |
| getHostAddress | back to summary |
|---|---|
| public InetAddress getHostAddress(URL u) Overrides java. Implements org. This method calls
| |
| hashCode | back to summary |
|---|---|
| public int hashCode(URL u) Overrides java. Implements org. This method calls
| |
| hostsEqual | back to summary |
|---|---|
| public boolean hostsEqual(URL u1, URL u2) Overrides java. Implements org. This method calls
| |
| openConnection | back to summary |
|---|---|
| public abstract URLConnection openConnection(URL u) throws IOException Redeclares org. Implements abstract java. Doc from java. Opens a connection to the object referenced by the
If for the handler's protocol (such as HTTP or JAR), there exists a public, specialized URLConnection subclass belonging to one of the following packages or one of their subpackages: java.lang, java.io, java.util, java.net, the connection returned will be of that subclass. For example, for HTTP an HttpURLConnection will be returned, and for JAR a JarURLConnection will be returned.
| |
| parseURL | back to summary |
|---|---|
| public void parseURL(URLStreamHandlerSetter realHandler, URL u, String spec, int start, int limit) Implements org. Parse a URL using the
| |
| sameFile | back to summary |
|---|---|
| public boolean sameFile(URL u1, URL u2) Overrides java. Implements org. This method calls
| |
| setURL | back to summary |
|---|---|
| protected void setURL(URL u, String proto, String host, int port, String file, String ref) Overrides java. Deprecated This method is only for compatibility with handlers written for JDK 1.1. This method calls
| |
| setURL | back to summary |
|---|---|
| protected void setURL(URL u, String proto, String host, int port, String auth, String user, String path, String query, String ref) Overrides java. This method calls
| |
| toExternalForm | back to summary |
|---|---|
| public String toExternalForm(URL u) Overrides java. Implements org. This method calls
| |