org.marre.wap.push
Class SmsWapPushMessage

java.lang.Object
  extended byorg.marre.sms.SmsConcatMessage
      extended byorg.marre.sms.SmsPortAddressedMessage
          extended byorg.marre.wap.push.SmsWapPushMessage
All Implemented Interfaces:
SmsMessage
Direct Known Subclasses:
SmsMmsNotificationMessage

public class SmsWapPushMessage
extends SmsPortAddressedMessage

Connectionless WAP push message with SMS as bearer. It supports the "content-type" and "X-Wap-Application-Id" headers.

Version:
1.0
Author:
Markus Eriksson

Field Summary
protected  MimeBodyPart myPushMsg
           
protected  byte myWspEncodingVersion
           
 
Fields inherited from class org.marre.sms.SmsPortAddressedMessage
myDestPort, myOrigPort
 
Constructor Summary
protected SmsWapPushMessage()
           
  SmsWapPushMessage(byte[] thePushMsg, MimeContentType theContentType)
           
  SmsWapPushMessage(byte[] thePushMsg, java.lang.String theContentType)
           
  SmsWapPushMessage(MimeBodyPart thePushMsg)
           
  SmsWapPushMessage(WbxmlDocument thePushMsg)
           
  SmsWapPushMessage(WbxmlDocument thePushMsg, MimeContentType theContentType)
           
  SmsWapPushMessage(WbxmlDocument thePushMsg, java.lang.String theContentType)
           
 
Method Summary
protected  byte[] buildPushMessage(WbxmlDocument thePushMsg)
           
 SmsUserData getUserData()
          Returns the whole UD
 void setWspEncodingVersion(byte wspEncodingVersion)
           
 void setXWapApplicationId(java.lang.String appId)
           
 void setXWapContentURI(java.lang.String contentUri)
           
 void setXWapInitiatorURI(java.lang.String initiatorUri)
           
 
Methods inherited from class org.marre.sms.SmsPortAddressedMessage
getUdhElements, setPorts
 
Methods inherited from class org.marre.sms.SmsConcatMessage
getPdus
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

myWspEncodingVersion

protected byte myWspEncodingVersion

myPushMsg

protected MimeBodyPart myPushMsg
Constructor Detail

SmsWapPushMessage

protected SmsWapPushMessage()

SmsWapPushMessage

public SmsWapPushMessage(MimeBodyPart thePushMsg)

SmsWapPushMessage

public SmsWapPushMessage(WbxmlDocument thePushMsg,
                         MimeContentType theContentType)

SmsWapPushMessage

public SmsWapPushMessage(WbxmlDocument thePushMsg,
                         java.lang.String theContentType)

SmsWapPushMessage

public SmsWapPushMessage(WbxmlDocument thePushMsg)

SmsWapPushMessage

public SmsWapPushMessage(byte[] thePushMsg,
                         MimeContentType theContentType)

SmsWapPushMessage

public SmsWapPushMessage(byte[] thePushMsg,
                         java.lang.String theContentType)
Method Detail

buildPushMessage

protected byte[] buildPushMessage(WbxmlDocument thePushMsg)

setWspEncodingVersion

public void setWspEncodingVersion(byte wspEncodingVersion)

getUserData

public SmsUserData getUserData()
Description copied from class: SmsConcatMessage
Returns the whole UD

Specified by:
getUserData in class SmsConcatMessage
Returns:
the UD

setXWapApplicationId

public void setXWapApplicationId(java.lang.String appId)

setXWapContentURI

public void setXWapContentURI(java.lang.String contentUri)

setXWapInitiatorURI

public void setXWapInitiatorURI(java.lang.String initiatorUri)


Copyright © 2002-2005 Markus Eriksson. All Rights Reserved.