javapns.communication.AppleServer Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of javapns-jdk16 Show documentation
Show all versions of javapns-jdk16 Show documentation
Library to send notifications using APNS
The newest version!
package javapns.communication;
import java.io.*;
import javapns.communication.exceptions.*;
/**
* Common interface of all classes representing a connection to any Apple server.
* Use AppleNotificationServer and AppleFeedbackServer interfaces for specific connections.
*
* @author Sylvain Pedneault
*/
public interface AppleServer {
/**
* Returns a stream to a keystore.
* @return an InputStream
*/
public InputStream getKeystoreStream() throws InvalidKeystoreReferenceException;
/**
* Returns the keystore's password.
* @return a password matching the keystore
*/
public String getKeystorePassword();
/**
* Returns the format used to produce the keystore (typically PKCS12).
* @return a valid keystore format identifier
*/
public String getKeystoreType();
/**
* Get the proxy host address currently configured for this specific server.
* A proxy might still be configured at the library or JVM levels.
* Refer to {@link javapns.communication.ProxyManager} for more information.
* @return a proxy host, or null if none is configured
*/
public String getProxyHost();
/**
* Get the proxy port currently configured for this specific server.
* A proxy might still be configured at the library or JVM levels.
* Refer to {@link javapns.communication.ProxyManager} for more information.
* @return a network port, or 0 if no proxy is configured
*/
public int getProxyPort();
/**
* Configure a proxy to use for this specific server.
* Use {@link javapns.communication.ProxyManager} to configure a proxy for the entire library instead.
* @param proxyHost proxy host address
* @param proxyPort proxy host port
*/
public void setProxy(String proxyHost, int proxyPort);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy