javapns.feedback
Class AppleFeedbackServerBasicImpl
java.lang.Object
javapns.communication.AppleServerBasicImpl
javapns.feedback.AppleFeedbackServerBasicImpl
- All Implemented Interfaces:
- AppleServer, AppleFeedbackServer
public class AppleFeedbackServerBasicImpl
- extends AppleServerBasicImpl
- implements AppleFeedbackServer
Basic implementation of the AppleFeedbackServer interface,
intended to facilitate rapid deployment.
- Author:
- Sylvain Pedneault
AppleFeedbackServerBasicImpl
public AppleFeedbackServerBasicImpl(Object keystore,
String password,
boolean production)
throws KeystoreException
- Communication settings for interacting with Apple's default production or sandbox feedback server.
This constructor uses the recommended keystore type "PCKS12".
- Parameters:
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 passwordproduction - true to use Apple's production servers, false to use the sandbox
- Throws:
KeystoreException - thrown if an error occurs when loading the keystore
AppleFeedbackServerBasicImpl
public AppleFeedbackServerBasicImpl(Object keystore,
String password,
String type,
boolean production)
throws KeystoreException
- Communication settings for interacting with Apple's default production or sandbox feedback server.
- Parameters:
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's typeproduction - true to use Apple's production servers, false to use the sandbox
- Throws:
KeystoreException - thrown if an error occurs when loading the keystore
AppleFeedbackServerBasicImpl
public AppleFeedbackServerBasicImpl(Object keystore,
String password,
String type,
String host,
int port)
throws KeystoreException
- Communication settings for interacting with a specific Apple Push Notification Feedback Server.
- Parameters:
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's typehost - A specific APNS hostport - A specific APNS port
- Throws:
KeystoreException - thrown if an error occurs when loading the keystore
getFeedbackServerHost
public String getFeedbackServerHost()
- Specified by:
getFeedbackServerHost in interface AppleFeedbackServer
getFeedbackServerPort
public int getFeedbackServerPort()
- Specified by:
getFeedbackServerPort in interface AppleFeedbackServer