@Retention(value=RUNTIME) @RequestMapping(headers="x-amz-sns-message-type=SubscriptionConfirmation", method=POST) @ResponseStatus(value=NO_CONTENT) public @interface NotificationSubscriptionMapping
NotificationStatus
object and to confirm them using the
NotificationStatus.confirmSubscription()
method.
A notification controller will be mapped to a particular url inside the application context. The mapped url
must be configured inside the Amazon Web Service platform as a subscription. Before receiving any notification
itself a controller must confirm the subscription. After confirming the subscription, the controller will start
to receive notifications using an annotated NotificationMessageMapping
method.
The mapping of the controller to a URL has to be done using a RequestMapping
annotation. Typically one controller class will contain all the methods used to confirm a subscription, receive
notifications and receive the unsubscribe message.
Note: Currently this annotation does not allow an explicit mapping of controller methods to URLs. Therefore
this annotation can only be used in one controller class that has an class level @RequestMapping annotation.Copyright © 2018 Pivotal Software, Inc.. All rights reserved.