|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.panama.messaging.xms.XMSSenderBase
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 |
public XMSSenderBase()
Method Detail |
public void addDeliveryType(java.lang.String deliveryType, java.lang.String returnAddress)
Example:
// want to send messages as email or SMS xmsSender = XMSFactory.createXMSSender(); xmsSender.addDeliveryType(DeliveryType.EMAIL, "someone@oracle.com"); xmsSender.addDeliveryType(DeliveryType.SMS, "16505766372");
deliveryType
- the delivery type is the mime type of the result that will be sent out.public void addDeliveryType(DeliveryType deliveryType, java.lang.String returnAddress)
Example:
// want to send messages as email or SMS xmsSender = XMSFactory.createXMSSender(); xmsSender.addDeliveryType(DeliveryType.EMAIL, "someone@oracle.com"); xmsSender.addDeliveryType(DeliveryType.SMS, "16505766372");
deliveryType
- the delivery type is the mime type of the result that will be sent out.public java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, java.net.URL messageURL) throws XMSException
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 usedsubject
- subject to use for the messagemessageURL
- the URL to get message contents from.XMSException
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
public java.lang.String getVersion()
public oracle.panama.messaging.push.AddressData getReturnAddress(DeliveryType deliveryType)
public final java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, org.w3c.dom.Document doc) throws XMSException
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 usedsubject
- subject to use for the messageXMSException
public abstract java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, java.lang.String message) throws XMSException
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 usedsubject
- subject to use for the messagemessage
- the MobileXML (XHTML+) message to send out, as a StringXMSException
|
Oracle Application Server Wireless Java API Reference B10400-01 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |