Class WapPushMessage


  • public class WapPushMessage
    extends Message
    Represents the details of a wap-push message that is to be submitted via the Nexmo REST api.
    • Constructor Detail

      • WapPushMessage

        public WapPushMessage​(java.lang.String from,
                              java.lang.String to,
                              java.lang.String url,
                              java.lang.String title)
        Instantiate a new wap-push message request, to submit a browsable / downloadable URL to the handset
        Parameters:
        from - the 'from' address that will be seen on the handset when this message arrives, typically either a valid short-code / long code that can be replied to, or a short text description of the application sending the message (Max 11 chars)
        to - the phone number of the handset that you wish to send the message to
        url - This is the url that will be submitted to the handset and will appear as a browsable message in the Inbox.
        title - This is the title that will be associated with the url being submitted to the handset
    • Method Detail

      • getUrl

        public java.lang.String getUrl()
        Returns:
        String This is the url that will be submitted to the handset and will appear as a browsable message in the Inbox.
      • getTitle

        public java.lang.String getTitle()
        Returns:
        String This is the title that will be associated with the url being submitted to the handset
      • getValidity

        public java.lang.Integer getValidity()
        Returns:
        Integer This is the length of time (in seconds) that the message will be available for once delivered to the handset. Once this time has expired, the url will no longer be visible on the handset to be browsed (Subject to handset compatibility)
      • setValidity

        public void setValidity​(java.lang.Integer validity)
      • addParams

        public void addParams​(org.apache.http.client.methods.RequestBuilder request)
        Overrides:
        addParams in class Message