Annotation Interface NotificationSubscriptionMapping
@Retention(RUNTIME)
@RequestMapping(headers="x-amz-sns-message-type=SubscriptionConfirmation",
method=POST)
@ResponseStatus(NO_CONTENT)
public @interface NotificationSubscriptionMapping
Spring Web MVC request mapping that supports Amazon SNS HTTP endpoint subscriptions using the Spring Controller
model. This annotation configures a method to receive notification subscriptions using a
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.
Since 3.0 Annotation can be used on a method level and provide path mapping. Works like RequestMapping
.
- Author:
- Agim Emruli, Matej Nedic
-
Optional Element Summary
Optional Elements
-
Element Details
-
path
@AliasFor(annotation=org.springframework.web.bind.annotation.RequestMapping.class, attribute="path") String[] path- Default:
- {}
-