|
|||||||||
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 keystoreMethod Detail |
---|
public InputStream getKeystoreStream() throws InvalidKeystoreReferenceException
AppleServer
getKeystoreStream
in interface AppleServer
InvalidKeystoreReferenceException
public String getKeystorePassword()
AppleServer
getKeystorePassword
in interface AppleServer
public String getKeystoreType()
AppleServer
getKeystoreType
in interface AppleServer
public String getProxyHost()
AppleServer
ProxyManager
for more information.
getProxyHost
in interface AppleServer
public int getProxyPort()
AppleServer
ProxyManager
for more information.
getProxyPort
in interface AppleServer
public void setProxy(String proxyHost, int proxyPort)
AppleServer
ProxyManager
to configure a proxy for the entire library instead.
setProxy
in interface AppleServer
proxyHost
- proxy host addressproxyPort
- proxy host portpublic void setProxyAuthorization(String proxyAuthorization)
AppleServer
ProxyManager
to configure a proxy for the entire library instead.
setProxyAuthorization
in interface AppleServer
proxyAuthorization
- encoded proxy authorizationpublic String getProxyAuthorization()
AppleServer
ProxyManager
for more information.
getProxyAuthorization
in interface AppleServer
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |