|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.cleancode.net.NetProxy
public final class NetProxy
Configures access to a secure or non-secure proxy server.
| Field Summary | |
|---|---|
static String |
DEFAULT_PORT
Default port to be used if none specified. |
static String |
VERSION
Current version of this class. |
| Method Summary | |
|---|---|
static void |
setProxy(String proxyProperty,
boolean secure)
Sets a system proxy from a proxyProperty and a secure flag. |
static void |
setProxy(String proxyProperty,
String urlString)
Sets a system proxy from a proxyProperty and a url. |
static void |
setProxy(String proxyHost,
String proxyPort,
boolean secure)
Sets a system proxy from separate host and port designators and a secure flag. |
static void |
setProxy(String proxyHost,
String proxyPort,
String urlString)
Sets a system proxy from separate host and port designators and a url. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String VERSION
public static final String DEFAULT_PORT
| Method Detail |
|---|
public static void setProxy(String proxyProperty,
String urlString)
proxyProperty - proxy server and port in the form "host:port";
if the port designator is omitted, the NetProxy.DEFAULT_PORT port
will be used.urlString - url that will be accessed (used to determine whether
to set proxy for secure or non-secure access).
public static void setProxy(String proxyProperty,
boolean secure)
proxyProperty - proxy server and port in the form "host:port";
if the port designator is omitted, the NetProxy.DEFAULT_PORT port
will be used.secure - boolean flag indicating to set proxy
for secure or non-secure access).
public static void setProxy(String proxyHost,
String proxyPort,
String urlString)
proxyHost - proxy server hostproxyPort - proxy server porturlString - url that will be accessed (used to determine whether
to set proxy for secure or non-secure access).
public static void setProxy(String proxyHost,
String proxyPort,
boolean secure)
proxyHost - proxy server hostproxyPort - proxy server portsecure - boolean flag indicating to set proxy
for secure or non-secure access).
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
| CleanCode Java Libraries | Copyright © 2001-2012 Michael Sorens - Revised 2012.12.10 |