Package org.forgerock.http.handler
Class HttpClientHandler.ProxyInfo
- java.lang.Object
- 
- org.forgerock.http.handler.HttpClientHandler.ProxyInfo
 
- 
- Enclosing class:
- HttpClientHandler
 
 public static final class HttpClientHandler.ProxyInfo extends Object Encapsulates the details of the proxy if one is required when making outgoing requests.
- 
- 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetPassword()Returns the password to use when authenticating to the proxy.URIgetProxyUri()Returns theURIof the proxy.StringgetUsername()Returns the username to use when authenticating to the proxy.booleanhasCredentials()Returns true if there is a set of username/password credentials defined.static HttpClientHandler.ProxyInfoproxyInfo(URI proxyUri)Creates an instance of ProxyInfo for a proxy that does not require authentication.static HttpClientHandler.ProxyInfoproxyInfo(URI proxyUri, String username, String password)Creates an instance of ProxyInfo for a proxy that requires authentication.
 
- 
- 
- 
Method Detail- 
proxyInfopublic static HttpClientHandler.ProxyInfo proxyInfo(URI proxyUri) Creates an instance of ProxyInfo for a proxy that does not require authentication.- Parameters:
- proxyUri- the- URIof the proxy, only the scheme, host and port are used.
- Returns:
- an instance of ProxyInfo for a proxy that does not require authentication.
 
 - 
proxyInfopublic static HttpClientHandler.ProxyInfo proxyInfo(URI proxyUri, String username, String password) Creates an instance of ProxyInfo for a proxy that requires authentication.- Parameters:
- proxyUri- the- URIof the proxy, only the scheme, host and port are used.
- username- the username to use when authenticating to the proxy.
- password- the password to use when authenticating to the proxy.
- Returns:
- an instance of ProxyInfo for a proxy that requires authentication.
 
 - 
getUsernamepublic String getUsername() Returns the username to use when authenticating to the proxy.- Returns:
- the username to use when authenticating to the proxy.
 
 - 
getPasswordpublic String getPassword() Returns the password to use when authenticating to the proxy.- Returns:
- the password to use when authenticating to the proxy.
 
 - 
hasCredentialspublic boolean hasCredentials() Returns true if there is a set of username/password credentials defined.- Returns:
- true if there is a set of username/password credentials defined.
 
 
- 
 
-