Package com.nexmo.client.sms.messages
Class WapPushMessage
- java.lang.Object
-
- com.nexmo.client.sms.messages.Message
-
- com.nexmo.client.sms.messages.WapPushMessage
-
public class WapPushMessage extends Message
Represents the details of a wap-push message that is to be submitted via the Nexmo REST api.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.nexmo.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
All Methods Instance Methods Concrete Methods 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.nexmo.client.sms.messages.Message
getCallbackUrl, getClientReference, getFrom, getMessageClass, getStatusReportRequired, getTimeToLive, getTo, getType, setCallbackUrl, setClientReference, setMessageClass, setStatusReportRequired, setTimeToLive
-
-
-
-
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 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 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)
-
-