javapns.feedback
Class AppleFeedbackServerBasicImpl

java.lang.Object
  extended by javapns.communication.AppleServerBasicImpl
      extended by 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

Field Summary
 
Fields inherited from interface javapns.feedback.AppleFeedbackServer
DEVELOPMENT_HOST, DEVELOPMENT_PORT, PRODUCTION_HOST, PRODUCTION_PORT
 
Constructor Summary
AppleFeedbackServerBasicImpl(Object keystore, String password, boolean production)
          Communication settings for interacting with Apple's default production or sandbox feedback server.
AppleFeedbackServerBasicImpl(Object keystore, String password, String type, boolean production)
          Communication settings for interacting with Apple's default production or sandbox feedback server.
AppleFeedbackServerBasicImpl(Object keystore, String password, String type, String host, int port)
          Communication settings for interacting with a specific Apple Push Notification Feedback Server.
 
Method Summary
 String getFeedbackServerHost()
           
 int getFeedbackServerPort()
           
 
Methods inherited from class javapns.communication.AppleServerBasicImpl
getKeystorePassword, getKeystoreStream, getKeystoreType, getProxyAuthorization, getProxyHost, getProxyPort, setProxy, setProxyAuthorization
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javapns.communication.AppleServer
getKeystorePassword, getKeystoreStream, getKeystoreType, getProxyAuthorization, getProxyHost, getProxyPort, setProxy, setProxyAuthorization
 

Constructor Detail

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 password
production - 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 password
type - The keystore's type
production - 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 password
type - The keystore's type
host - A specific APNS host
port - A specific APNS port
Throws:
KeystoreException - thrown if an error occurs when loading the keystore
Method Detail

getFeedbackServerHost

public String getFeedbackServerHost()
Specified by:
getFeedbackServerHost in interface AppleFeedbackServer

getFeedbackServerPort

public int getFeedbackServerPort()
Specified by:
getFeedbackServerPort in interface AppleFeedbackServer