Package com.vonage.client.sms.messages
Class WapPushMessage
java.lang.Object
com.vonage.client.sms.messages.Message
com.vonage.client.sms.messages.WapPushMessage
public class WapPushMessage extends Message
Represents the details of a wap-push message that is to be submitted via the Vonage REST api.
-
Nested Class Summary
Nested classes/interfaces inherited from class com.vonage.client.sms.messages.Message
Message.MessageClass, Message.MessageType -
Constructor Summary
Constructors Constructor Description 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 -
Method Summary
Modifier and Type Method Description voidaddParams(org.apache.http.client.methods.RequestBuilder request)java.lang.StringgetTitle()java.lang.StringgetUrl()java.lang.IntegergetValidity()voidsetValidity(java.lang.Integer validity)Methods inherited from class com.vonage.client.sms.messages.Message
getCallbackUrl, getClientReference, getFrom, getMessageClass, getStatusReportRequired, getTimeToLive, getTo, getType, setCallbackUrl, setClientReference, setMessageClass, setStatusReportRequired, setTimeToLive
-
Constructor Details
-
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 tourl- 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 Details
-
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
- Returns:
- String This is the title that will be associated with the url being submitted to the handset
-
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
-
addParams
-