Class SNSReceiverService
java.lang.Object
org.deltava.service.WebService
org.deltava.service.aws.SNSReceiverService
- Direct Known Subclasses:
SESDeliveryService
,SESFeedbackService
A Web Service to receive Amazon SNS messages.
- Since:
- 8.5
- Version:
- 11.1
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static boolean
confirm
(SNSPayload sns) Confirms an SNS subscription.protected abstract int
execute
(SNSContext ctx) Processes the SNS payload.final int
execute
(ServiceContext ctx) Executes the Web Service.protected static void
validate
(SNSPayload sns) Validates an SNS message.
-
Constructor Details
-
SNSReceiverService
SNSReceiverService()
-
-
Method Details
-
validate
Validates an SNS message.- Parameters:
sns
- an SNSPayload- Throws:
ServiceException
- the payload fails validation
-
confirm
Confirms an SNS subscription.- Parameters:
sns
- the SNS payload- Returns:
- TRUE if successfully confirmed, otherwise FALSE
- Throws:
ServiceException
- if an error occurs
-
execute
Executes the Web Service.- Specified by:
execute
in classWebService
- Parameters:
ctx
- the Web Service context- Returns:
- 200 Always
- Throws:
ServiceException
- if an error occurs
-
execute
Processes the SNS payload.- Parameters:
ctx
- the SNSContext- Returns:
- an HTTP status code
- Throws:
ServiceException
- if an error occurs
-