@Retention(value=RUNTIME) @RequestMapping(headers="x-amz-sns-message-type=Notification", method=POST) @ResponseStatus(value=NO_CONTENT) public @interface NotificationMessageMapping
NotificationMessage
annotation to receive the payload and and a
NotificationSubject
annotation to receive the subject of a notification.
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. Controllers will use a
NotificationSubscriptionMapping
annotated method to confirm the subscription.
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 © 2019 Pivotal Software, Inc.. All rights reserved.