public class Proxy
extends java.lang.Object
| Constructor and Description |
|---|
Proxy(java.lang.String host,
int port)
Creates a instance reflecting an HTTP proxy server that does not require authentication.
|
Proxy(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
Creates an instance reflecting an HTTP proxy server that requires username/password authentication.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getHost() |
java.lang.String |
getPassword() |
int |
getPort() |
java.lang.String |
getUsername() |
int |
hashCode() |
boolean |
isAuthenticationRequired() |
java.lang.String |
toString() |
public Proxy(java.lang.String host,
int port)
host - the proxy server host.port - the proxy server host port.public Proxy(java.lang.String host,
int port,
java.lang.String username,
java.lang.String password)
host - the proxy server host.port - the proxy server host port.username - the username to use when authenticating with the proxy server.password - the password to use when authenticating with the proxy server.public java.lang.String getHost()
public int getPort()
public java.lang.String getUsername()
public java.lang.String getPassword()
public boolean isAuthenticationRequired()
public java.lang.String toString()
toString in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectCopyright © 2018-2021 Okta. All Rights Reserved.