Package com.eatthepath.pushy.apns.server
Class AcceptAllPushNotificationHandlerFactory
java.lang.Object
com.eatthepath.pushy.apns.server.AcceptAllPushNotificationHandlerFactory
- All Implemented Interfaces:
PushNotificationHandlerFactory
public class AcceptAllPushNotificationHandlerFactory extends Object implements PushNotificationHandlerFactory
A factory for push notification handlers that unconditionally accept all push notifications.
- Since:
- 0.12
- Author:
- Jon Chambers
- See Also:
MockApnsServerBuilder.setHandlerFactory(PushNotificationHandlerFactory)
-
Constructor Summary
Constructors Constructor Description AcceptAllPushNotificationHandlerFactory() -
Method Summary
Modifier and Type Method Description PushNotificationHandlerbuildHandler(SSLSession sslSession)Constructs a new push notification handler that unconditionally accepts all push notifications.
-
Constructor Details
-
AcceptAllPushNotificationHandlerFactory
public AcceptAllPushNotificationHandlerFactory()
-
-
Method Details
-
buildHandler
Constructs a new push notification handler that unconditionally accepts all push notifications.- Specified by:
buildHandlerin interfacePushNotificationHandlerFactory- Parameters:
sslSession- the SSL session associated with the channel for which this handler will handle notifications- Returns:
- a new "accept everything" push notification handler
-