Class 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 Detail

      • SnsPushMessageConverter

        public SnsPushMessageConverter()
    • Method Detail

      • toTransferFormat

        public String toTransferFormat​(PushMessage message)
        Description copied from interface: PushMessageConverter
        Converts a supplied message and message id into an appropriately formatted (JSON) response to drop into a message to Amazon SNS.
        Specified by:
        toTransferFormat in interface PushMessageConverter
        Parameters:
        message - The message to write out to the user.
        Returns:
        A String which has been formatted as JSON for putting on the wire.