|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavapns.communication.ProxyManager
public class ProxyManager
Main class for dealing with proxies.
| Method Summary | |
|---|---|
static String |
encodeProxyAuthorization(String username,
String password)
|
static String |
getProxyAuthorization(AppleServer server)
Get the proxy authorization currently configured. |
static String |
getProxyHost(AppleServer server)
Get the proxy host address currently configured. |
static int |
getProxyPort(AppleServer server)
Get the proxy port currently configured. |
static boolean |
isUsingProxy(AppleServer server)
Determine if a proxy is currently configured. |
static void |
setJVMProxy(String host,
String port)
Configure a proxy to use for HTTPS connections created anywhere in the JVM (not recommended). |
static void |
setProxy(String host,
String port)
Configure a proxy to use for HTTPS connections created by JavaPNS. |
static void |
setProxyAuthorization(String authorization)
Configure the authorization for the proxy configured through the setProxy method. |
static void |
setProxyBasicAuthorization(String username,
String password)
Configure the authorization for the proxy configured through the setProxy method. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static void setProxy(String host,
String port)
host - the proxyHostport - the proxyPort
public static void setProxyBasicAuthorization(String username,
String password)
username - the user name to usepassword - the password to usepublic static void setProxyAuthorization(String authorization)
authorization - the pre-encoded value for the Proxy-Authorization header sent to the proxy
public static String encodeProxyAuthorization(String username,
String password)
public static void setJVMProxy(String host,
String port)
host - the proxyHostport - the proxyPortpublic static String getProxyHost(AppleServer server)
server - a specific server to check for proxy settings (may be null)
public static String getProxyAuthorization(AppleServer server)
server - a specific server to check for proxy settings (may be null)
public static int getProxyPort(AppleServer server)
server - a specific server to check for proxy settings (may be null)
public static boolean isUsingProxy(AppleServer server)
server - a specific server to check for proxy settings (may be null)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||