|
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 |
Field Summary | |
static java.lang.String |
VERSION_NUMBER |
Method Summary | |
void |
addDeliveryType(java.lang.String deliveryType, java.lang.String returnAddress) Add a delivery type to use for sending. |
java.lang.String |
getStatus(java.lang.String messageID) Get current status of one message ID |
java.lang.String[] |
getStatus(java.lang.String[] messageIDs) Get current status of a set of message IDs. |
java.lang.String[] |
getSupportedTransports() Get names of available transports from the underlying Push server. |
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 message) Send the message. |
java.lang.String[] |
sendMsg(java.lang.String[] recipients, java.lang.String subject, java.lang.String message) Send the message. |
java.lang.String[] |
sendMsg(java.lang.String[] recipients, java.lang.String subject, java.net.URL messageURL) Send the message. |
void |
setProxy(java.lang.String host, int port) Set the HTTP proxy to use. |
Field Detail |
public static final java.lang.String VERSION_NUMBER
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.getName(), "someone@oracle.com"); xmsSender.addDeliveryType(DeliveryType.SMS.getName(), "16505766372");
deliveryType
- the delivery type is the channel will be used.public java.lang.String[] getStatus(java.lang.String[] messageIDs) throws XMSException
XMSException
public 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
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 java.lang.String[] sendMsg(java.lang.String[] recipients, java.lang.String subject, org.w3c.dom.Document 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 DOM DocumentXMSException
public void setProxy(java.lang.String host, int port)
host
- host name of proxy For example: proxy.company.comport
- port number of the proxy. For example: 80public java.lang.String getVersion()
public java.lang.String[] getSupportedTransports() throws XMSException
XMSException
public java.lang.String getStatus(java.lang.String messageID) throws XMSException
XMSException
|
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 |