org.dasein.cloud.aws.platform
Class SNS
java.lang.Object
org.dasein.cloud.aws.platform.SNS
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.platform.PushNotificationSupport
public class SNS
- extends Object
- implements org.dasein.cloud.platform.PushNotificationSupport
| Fields inherited from interface org.dasein.cloud.platform.PushNotificationSupport |
ANY, GET_TOPIC, LIST_TOPIC, REMOVE_TOPIC |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CONFIRM_SUBSCRIPTION
public static final String CONFIRM_SUBSCRIPTION
- See Also:
- Constant Field Values
CREATE_TOPIC
public static final String CREATE_TOPIC
- See Also:
- Constant Field Values
DELETE_TOPIC
public static final String DELETE_TOPIC
- See Also:
- Constant Field Values
GET_TOPIC_ATTRIBUTES
public static final String GET_TOPIC_ATTRIBUTES
- See Also:
- Constant Field Values
LIST_SUBSCRIPTIONS
public static final String LIST_SUBSCRIPTIONS
- See Also:
- Constant Field Values
LIST_SUBSCRIPTIONS_BY_TOPIC
public static final String LIST_SUBSCRIPTIONS_BY_TOPIC
- See Also:
- Constant Field Values
LIST_TOPICS
public static final String LIST_TOPICS
- See Also:
- Constant Field Values
PUBLISH
public static final String PUBLISH
- See Also:
- Constant Field Values
SUBSCRIBE
public static final String SUBSCRIBE
- See Also:
- Constant Field Values
UNSUBSCRIBE
public static final String UNSUBSCRIBE
- See Also:
- Constant Field Values
asSNSServiceAction
@Nonnull
public static org.dasein.cloud.identity.ServiceAction[] asSNSServiceAction(@Nonnull
String action)
confirmSubscription
public String confirmSubscription(String providerTopicId,
String token,
boolean authenticateUnsubscribe)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
confirmSubscription in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
createTopic
public org.dasein.cloud.platform.Topic createTopic(String name)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
createTopic in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
getProviderTermForSubscription
public String getProviderTermForSubscription(Locale locale)
- Specified by:
getProviderTermForSubscription in interface org.dasein.cloud.platform.PushNotificationSupport
getProviderTermForTopic
public String getProviderTermForTopic(Locale locale)
- Specified by:
getProviderTermForTopic in interface org.dasein.cloud.platform.PushNotificationSupport
getSNSUrl
public String getSNSUrl()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
isSubscribed in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
listSubscriptions
public Collection<org.dasein.cloud.platform.Subscription> listSubscriptions(String optionalTopicId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
listSubscriptions in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
listTopics
public Collection<org.dasein.cloud.platform.Topic> listTopics()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
listTopics in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
org.dasein.cloud.identity.ServiceAction action)
- Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService
publish
public String publish(String providerTopicId,
String subject,
String message)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
publish in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removeTopic
public void removeTopic(String providerTopicId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeTopic in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
subscribe
public void subscribe(String providerTopicId,
org.dasein.cloud.platform.EndpointType endpointType,
org.dasein.cloud.DataFormat dataFormat,
String endpoint)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
subscribe in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
unsubscribe
public void unsubscribe(String providerSubscriptionId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
unsubscribe in interface org.dasein.cloud.platform.PushNotificationSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
Copyright © 2012 enStratus Networks LLC. All Rights Reserved.