|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
XMSSimpleSender is a light-weight and easy to use XMS messaging client.
Field Summary | |
static java.lang.String |
VERSION_NUMBER Current version of the XMS API. |
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 the message ID as a String. |
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 XMS 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) Deprecated. Use sendMsg(String[], String, String, String) instead |
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.lang.String message, java.lang.String contentType) Send the message. |
java.lang.String[] |
sendMsg(java.lang.String[] recipients, java.lang.String subject, java.net.URL messageURL) Deprecated. Use sendMsg(String[], String, String, String) instead |
void |
setProxy(java.lang.String host, int port) Set the HTTP proxy to use. |
void |
setProxy(java.lang.String host, int port, java.lang.String userID, java.lang.String password) 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(), "16501112222");
deliveryType
- the delivery type is the channel will be used.returnAddress
- address will be used as the return address for all messages of that delivery type.public java.lang.String getStatus(java.lang.String messageID) throws XMSException
XMSException
XMSSender
public java.lang.String[] getStatus(java.lang.String[] messageIDs) throws XMSException
XMSException
public java.lang.String[] getSupportedTransports() throws XMSException
XMSException
public java.lang.String getVersion()
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:user@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 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:user@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.lang.String message, java.lang.String contentType) 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:user@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 message to send out, as a StringcontentType
- the mime-type of the content to sendXMSException
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:user@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 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 void setProxy(java.lang.String host, int port, java.lang.String userID, java.lang.String password)
host
- host name of proxy For example: proxy.company.comport
- port number of the proxy. For example: 80userID
- proxy userID.password
- proxy password
|
Oracle Application Server Wireless Java API Reference B14043-01 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |