|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.openide.util.NetworkSettings
public final class NetworkSettings
Useful static methods for getting Network Proxy required for make network connection for specified resource.
Constructor Summary | |
---|---|
NetworkSettings()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NetworkSettings()
Method Detail |
---|
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 to
public 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 to
public static String getAuthenticationUsername(URI u)
username
for Proxy Authentication.
Returns null
if no authentication required.
u
- The URI that a connection is required to
public 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 to
|
org.openide.util 8.15.1 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |