public class Handler extends URLStreamHandler
Modifier and Type | Field and Description |
---|---|
protected String |
proxy |
protected int |
proxyPort |
Constructor and Description |
---|
Handler() |
Handler(String proxy,
int port) |
Modifier and Type | Method and Description |
---|---|
protected int |
getDefaultPort() |
protected URLConnection |
openConnection(URL u) |
protected URLConnection |
openConnection(URL u,
Proxy p) |
equals, getHostAddress, hashCode, hostsEqual, parseURL, sameFile, setURL, setURL, toExternalForm
protected String proxy
protected int proxyPort
public Handler()
public Handler(String proxy, int port)
protected int getDefaultPort()
getDefaultPort
in class URLStreamHandler
protected URLConnection openConnection(URL u, Proxy p) throws IOException
openConnection
in class URLStreamHandler
IOException
protected URLConnection openConnection(URL u) throws IOException
openConnection
in class URLStreamHandler
IOException