Annotation Interface NotificationUnsubscribeConfirmationMapping
@Retention(RUNTIME)
@RequestMapping(headers="x-amz-sns-message-type=UnsubscribeConfirmation",
method=POST)
@ResponseStatus(NO_CONTENT)
public @interface NotificationUnsubscribeConfirmationMapping
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 unsubscriptions if the user does not want that a
controller receives any further notification. An annotated
NotificationUnsubscribeConfirmationMapping
will
receive a NotificationStatus
parameter and can either receive the unsubscribe
message without any further action or re-subscribe 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.
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:
- {}
-