Class SnsPushMessageConverter
- java.lang.Object
-
- org.forgerock.openam.services.push.sns.SnsPushMessageConverter
-
- All Implemented Interfaces:
PushMessageConverter
public class SnsPushMessageConverter extends Object implements PushMessageConverter
Converts a basic message String into a format appropriate for passing into the SNS. This ensures that the priority is set correctly in GCM-land, and configures the appropriate settings for everything else.
-
-
Constructor Summary
Constructors Constructor Description SnsPushMessageConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringtoTransferFormat(PushMessage message)Converts a supplied message and message id into an appropriately formatted (JSON) response to drop into a message to Amazon SNS.
-
-
-
Method Detail
-
toTransferFormat
public String toTransferFormat(PushMessage message)
Description copied from interface:PushMessageConverterConverts a supplied message and message id into an appropriately formatted (JSON) response to drop into a message to Amazon SNS.- Specified by:
toTransferFormatin interfacePushMessageConverter- Parameters:
message- The message to write out to the user.- Returns:
- A String which has been formatted as JSON for putting on the wire.
-
-