Modifier and Type | Field and Description |
---|---|
protected String | |
protected int |
Access | Constructor and Description |
---|---|
public | |
public |
Modifier and Type | Method and Description |
---|---|
protected int | getDefaultPort()
Overrides sun. Returns the default port for a URL parsed by this handler. |
protected URLConnection | openConnection(URL
the URL that this connects to. u)Overrides sun. Opens a connection to the object referenced by the
|
protected 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 sun. 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. |
proxy | back to summary |
---|---|
protected String proxy |
proxyPort | back to summary |
---|---|
protected int proxyPort |
Handler | back to summary |
---|---|
public Handler() |
Handler | back to summary |
---|---|
public Handler(String proxy, int port) |
getDefaultPort | back to summary |
---|---|
protected int getDefaultPort() Overrides sun. Doc from java. Returns the default port for a URL parsed by this handler. This method is meant to be overridden by handlers with default port numbers.
|
openConnection | back to summary |
---|---|
protected URLConnection openConnection(URL u) throws IOException Overrides sun. 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 |
---|---|
protected URLConnection openConnection(URL u, Proxy p) throws IOException Overrides sun. 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
|