Class Proxy
java.lang.Object
kong.unirest.core.Proxy
represents basic proxy settings
When this is used to configure the client it sets the following:
Proxy host and port are configured as a simple java.net.ProxySelector and set as the default selector
Username and password are configured as a single java.net.Authenticator which will apply to ALL auth challenges (not just the proxy)
-
Constructor Details
-
Proxy
-
Proxy
-
-
Method Details
-
getHost
- Returns:
- the host
-
getPort
- Returns:
- the port
-
getUsername
- Returns:
- the username for authentication
-
getPassword
- Returns:
- the password
-
isAuthenticated
public boolean isAuthenticated()- Returns:
- indicates that the username and password have been configured.
-