|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavapns.communication.AppleServerBasicImpl
public abstract class AppleServerBasicImpl
A basic and abstract implementation of the AppleServer interface intended to facilitate rapid deployment.
| Constructor Summary | |
|---|---|
AppleServerBasicImpl(Object keystore,
String password,
String type)
Constructs a AppleServerBasicImpl object. |
|
| Method Summary | |
|---|---|
String |
getKeystorePassword()
Returns the keystore's password. |
InputStream |
getKeystoreStream()
Returns a stream to a keystore. |
String |
getKeystoreType()
Returns the format used to produce the keystore (typically PKCS12). |
String |
getProxyAuthorization()
Get the proxy authorization (if any) currently configured for this specific server. |
String |
getProxyHost()
Get the proxy host address currently configured for this specific server. |
int |
getProxyPort()
Get the proxy port currently configured for this specific server. |
void |
setProxy(String proxyHost,
int proxyPort)
Configure a proxy to use for this specific server. |
void |
setProxyAuthorization(String proxyAuthorization)
Configure the proxy authorization to use for this specific server. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AppleServerBasicImpl(Object keystore,
String password,
String type)
throws KeystoreException
keystore - The keystore to use (can be a File, an InputStream, a String for a file path, or a byte[] array)password - The keystore's passwordtype - The keystore type (typically PKCS12)
KeystoreException - thrown if an error occurs when loading the keystore| Method Detail |
|---|
public InputStream getKeystoreStream()
throws InvalidKeystoreReferenceException
AppleServer
getKeystoreStream in interface AppleServerInvalidKeystoreReferenceExceptionpublic String getKeystorePassword()
AppleServer
getKeystorePassword in interface AppleServerpublic String getKeystoreType()
AppleServer
getKeystoreType in interface AppleServerpublic String getProxyHost()
AppleServerProxyManager for more information.
getProxyHost in interface AppleServerpublic int getProxyPort()
AppleServerProxyManager for more information.
getProxyPort in interface AppleServer
public void setProxy(String proxyHost,
int proxyPort)
AppleServerProxyManager to configure a proxy for the entire library instead.
setProxy in interface AppleServerproxyHost - proxy host addressproxyPort - proxy host portpublic void setProxyAuthorization(String proxyAuthorization)
AppleServerProxyManager to configure a proxy for the entire library instead.
setProxyAuthorization in interface AppleServerproxyAuthorization - encoded proxy authorizationpublic String getProxyAuthorization()
AppleServerProxyManager for more information.
getProxyAuthorization in interface AppleServer
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||