Access | Constructor and Description |
---|---|
public |
Modifier and Type | Method and Description |
---|---|
protected URLConnection | |
protected boolean | Returns: true if and only if they
are equal, false otherwise.the URL of the first host to compare u1, URL the URL of the second host to compare u2)Overrides java. |
public URLConnection | openConnection(URL
the URL that this connects to. u)Implements abstract java. URL argument.
|
public URLConnection | openConnection(URL
the URL that this connects to. u, Proxy the proxy through which the connection will be made.
If direct connection is desired, Proxy.NO_PROXY
should be specified. p)Overrides java. |
protected void | parseURL(URL
the u, String URL to receive the result of parsing
the spec.the spec, int String representing the URL that
must be parsed.the character index at which to begin parsing. This is
just past the ' start, int : ' (if there is one) that
specifies the determination of the protocol name.the character position to stop parsing at. This is the
end of the string or the position of the
" limit)# " character, if present. All information
after the sharp sign indicates an anchor.Overrides java. URL into a
URL object.
|
Handler | back to summary |
---|---|
public Handler() |
createFileURLConnection | back to summary |
---|---|
protected URLConnection createFileURLConnection(URL u, File file) |
hostsEqual | back to summary |
---|---|
protected boolean hostsEqual(URL u1, URL u2) Overrides java. Compares the host components of two URLs. |
openConnection | back to summary |
---|---|
public URLConnection openConnection(URL u) throws IOException 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.
|
openConnection | back to summary |
---|---|
public URLConnection openConnection(URL u, Proxy p) throws IOException Overrides java. Doc from java. Same as openConnection(URL), except that the connection will be made through the specified proxy; Protocol handlers that do not support proxying will ignore the proxy parameter and make a normal connection. Calling this method preempts the system's default
|
parseURL | back to summary |
---|---|
protected void parseURL(URL u, String spec, int start, int limit) Overrides java. Doc from java. Parses the string representation of a
If there is any inherited context, then it has already been
copied into the
The
|