public final class NetworkSettings extends Object
| Constructor and Description |
|---|
NetworkSettings() |
| Modifier and Type | Method and Description |
|---|---|
static String |
getAuthenticationUsername(URI u)
Returns the
username for Proxy Authentication. |
static String |
getKeyForAuthenticationPassword(URI u)
Returns the
key for reading password for Proxy Authentication. |
static String |
getProxyHost(URI u)
Returns the
hostname part of network proxy address
based on given URI to access the resource at. |
static String |
getProxyPort(URI u)
Returns the
port part of network proxy address
based on given URI to access the resource at. |
public static String getProxyHost(URI u)
hostname part of network proxy address
based on given URI to access the resource at.
Returns null for direct connection.u - The URI that a connection is required topublic static String getProxyPort(URI u)
port part of network proxy address
based on given URI to access the resource at.
Returns null for direct connection.u - The URI that a connection is required topublic static String getAuthenticationUsername(URI u)
username for Proxy Authentication.
Returns null if no authentication required.u - The URI that a connection is required topublic static String getKeyForAuthenticationPassword(URI u)
key for reading password for Proxy Authentication.
Use Keyring for reading the password from the ring.
Returns null if no authentication required.u - The URI that a connection is required toBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.