Class SnsHttpDelegateFactory
- java.lang.Object
-
- org.forgerock.openam.services.push.sns.SnsHttpDelegateFactory
-
- All Implemented Interfaces:
PushNotificationDelegateFactory
public class SnsHttpDelegateFactory extends Object implements PushNotificationDelegateFactory
Produces SnsHttpDelegates matching the PushNotificationServiceFactory interface.
-
-
Constructor Summary
Constructors Constructor Description SnsHttpDelegateFactory()Default constructor sets the debug for passing into produced delegates.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnsHttpDelegateproduceDelegateFor(PushNotificationServiceConfig config, String realm, MessageDispatcher messageDispatcher)Produce a delegate for a given configuration.
-
-
-
Method Detail
-
produceDelegateFor
public SnsHttpDelegate produceDelegateFor(PushNotificationServiceConfig config, String realm, MessageDispatcher messageDispatcher) throws PushNotificationException
Description copied from interface:PushNotificationDelegateFactoryProduce a delegate for a given configuration. This delegate should be ready to use as soon as the delegate has been produced.- Specified by:
produceDelegateForin interfacePushNotificationDelegateFactory- Parameters:
config- The config that will be used to configure the PushNotificationService.realm- The realm in which this delegate will exist.messageDispatcher- The message dispatcher for this delegate.- Returns:
- A valid PushNotificationService, ready to send (and receive if appropriate) messages.
- Throws:
PushNotificationException- in the case where we cannot generate an appropriate delegate.
-
-