Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.xms
Class XMSSenderBase

java.lang.Object
  |
  +--oracle.panama.messaging.xms.XMSSenderBase
Direct Known Subclasses:
XMSPushSenderBase

public abstract class XMSSenderBase
extends java.lang.Object

Constructor Summary
XMSSenderBase()
           

 

Method Summary
 void addDeliveryType(DeliveryType deliveryType, java.lang.String returnAddress)
          Add a delivery type to use for sending.
 void addDeliveryType(java.lang.String deliveryType, java.lang.String returnAddress)
          Add a delivery type to use for sending.
 oracle.panama.messaging.push.AddressData getReturnAddress(DeliveryType deliveryType)
           
 java.lang.String getVersion()
          Get version of XMS API.
 java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, org.w3c.dom.Document doc)
          Send the message.
abstract  java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, java.lang.String message)
          Send the message.
abstract  java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, java.lang.String content, java.net.URL messageURL)
           
 java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, java.net.URL messageURL)
          Send the message.

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

XMSSenderBase

public XMSSenderBase()
Method Detail

addDeliveryType

public void addDeliveryType(java.lang.String deliveryType,
                            java.lang.String returnAddress)
Add a delivery type to use for sending. This method should be called for each delivery type that XMS should use when sending messages.

Example:

// want to send messages as email or SMS xmsSender = XMSFactory.createXMSSender(); xmsSender.addDeliveryType(DeliveryType.EMAIL, "someone@oracle.com"); xmsSender.addDeliveryType(DeliveryType.SMS, "16505766372");
Parameters:
deliveryType - the delivery type is the mime type of the result that will be sent out.

addDeliveryType

public void addDeliveryType(DeliveryType deliveryType,
                            java.lang.String returnAddress)
Add a delivery type to use for sending. This method should be called for each delivery type that XMS should use when sending messages.

Example:

// want to send messages as email or SMS xmsSender = XMSFactory.createXMSSender(); xmsSender.addDeliveryType(DeliveryType.EMAIL, "someone@oracle.com"); xmsSender.addDeliveryType(DeliveryType.SMS, "16505766372");
Parameters:
deliveryType - the delivery type is the mime type of the result that will be sent out.

sendMsg

public java.lang.String[] sendMsg(java.lang.String[] recipients,
                                  java.lang.String subject,
                                  java.net.URL messageURL)
                           throws XMSException
Send the message.
Parameters:
recipients - List of users to send message to. Each user can either be a Wireless user name or a fully-qualified address such as Email:thomas.wilsher@oracle.com. If just a panama user is specified that user is looked up and the message is sent to the 'best' device for that user. If the latter (explicit) form is used then the specified delivery type will be used
subject - subject to use for the message
messageURL - the URL to get message contents from.
XMSException

sendMsg

public abstract java.lang.String[] sendMsg(java.lang.String[] recipients,
                                           java.lang.String subject,
                                           java.lang.String content,
                                           java.net.URL messageURL)
                                    throws XMSException
XMSException

getVersion

public java.lang.String getVersion()
Get version of XMS API.

getReturnAddress

public oracle.panama.messaging.push.AddressData getReturnAddress(DeliveryType deliveryType)

sendMsg

public final java.lang.String[] sendMsg(java.lang.String[] recipients,
                                        java.lang.String subject,
                                        org.w3c.dom.Document doc)
                                 throws XMSException
Send the message.
Parameters:
recipients - List of users to send message to. Each user can either be a Wireless user name or a fully-qualified address such as Email:thomas.wilsher@oracle.com. If just a panama user is specified that user is looked up and the message is sent to the 'best' device for that user. If the latter (explicit) form is used then the specified delivery type will be used
subject - subject to use for the message
XMSException

sendMsg

public abstract java.lang.String[] sendMsg(java.lang.String[] recipients,
                                           java.lang.String subject,
                                           java.lang.String message)
                                    throws XMSException
Send the message.
Parameters:
recipients - List of users to send message to. Each user can either be a Wireless user name or a fully-qualified address such as Email:thomas.wilsher@oracle.com. If just a panama user is specified that user is looked up and the message is sent to the 'best' device for that user. If the latter (explicit) form is used then the specified delivery type will be used
subject - subject to use for the message
message - the MobileXML (XHTML+) message to send out, as a String
XMSException

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.