Annotation Interface NotificationMessageMapping


@Retention(RUNTIME) @RequestMapping(headers="x-amz-sns-message-type=Notification", method=POST) @ResponseStatus(NO_CONTENT) public @interface NotificationMessageMapping
Spring Web MVC request mapping that supports Amazon SNS HTTP endpoints using the Spring Controller model. This annotation configures a method to receive notification messages on the method. A notification method can have two parameters annotation by the 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.

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
    Modifier and Type
    Optional Element
    Description