public final class Proxy extends Object implements AutoCloseable
Constructor and Description |
---|
Proxy(String host,
int port)
Constructs the proxy server info.
|
Modifier and Type | Method and Description |
---|---|
void |
close() |
protected void |
finalize() |
String |
getHost()
Returns the proxy host.
|
int |
getPort()
Returns the proxy port.
|
public Proxy(@NotNull String host, int port)
host
- the proxy host.port
- the port of the proxy. If defined, this is a strict positive integer.public void close()
close
in interface AutoCloseable
@NotNull public String getHost()
public int getPort()
If defined, this is a strict positive integer.