Oracle Application Server Wireless Java API Reference
B10400-01

oracle.panama.messaging.transport
Class SimpleBean

java.lang.Object
  |
  +--oracle.panama.messaging.transport.SimpleBean

public class SimpleBean
extends java.lang.Object

The simple bean. The simple bean is actually a simple bean wrapper of the transport API for OracleAS wireless. Use this bean, it is very easy to send messages to OracleAS wireless User and DeviceAddress.

Author:
jxiang

Constructor Summary
SimpleBean()
          Constructor.

 

Method Summary
 Status getStatus(java.lang.String mid)
          Get the sending status of a message of given id.
 Status[] getStatus(java.lang.String[] mids)
          Get the sending status of messages of given ids.
 java.lang.String[] send(DeviceAddress[] addresses, SenderInfo[] sis, DeviceInfo[] dis, MessageInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of device addresses.
 java.lang.String[] send(DeviceAddress[] addresses, SenderInfo[] sis, DeviceInfo[] infos, Message message, java.lang.String[] failover)
          Send a message to a list of device addresses.
 java.lang.String[] send(DeviceAddress[] addresses, SenderInfo[] sis, DeviceInfo di, MessageInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of device addresses.
 java.lang.String[] send(DeviceAddress[] addresses, SenderInfo[] sis, DeviceInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of device addresses.
 java.lang.String[] send(DeviceAddress[] addresses, SenderInfo[] sis, MessageInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of device addresses.
 java.lang.String[] send(DeviceAddress[] addresses, SenderInfo[] sis, Message message, java.lang.String[] failover)
          Send a message to a list of users.
 java.lang.String send(DeviceAddress address, SenderInfo si, Message message, java.lang.String[] failover)
          Send a message to an device address.
 java.lang.String[] send(java.lang.String[] types, java.lang.String type, java.lang.String sender, java.lang.String[] recipients, java.lang.String message)
          Send a message to a list of recipients.
 java.lang.String[] send(java.lang.String[] types, java.lang.String type, java.lang.String sender, java.lang.String replyTo, java.lang.String[] recipients, java.lang.String subject, java.lang.String message, java.lang.String encoding)
          Send a message to a list of recipients.
 java.lang.String[] send(java.lang.String type, java.lang.String sender, java.lang.String[] recipients, java.lang.String message)
          Send a message to a list of recipients.
 java.lang.String[] send(java.lang.String type, java.lang.String sender, java.lang.String replyTo, java.lang.String[] recipients, java.lang.String subject, java.lang.String message, java.lang.String encoding)
          Send a message to a list of recipients.
 java.lang.String[] send(User[] users, SenderInfo[] sis, DeviceInfo[] dis, MessageInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of users.
 java.lang.String[] send(User[] users, SenderInfo[] sis, DeviceInfo[] infos, Message message, java.lang.String[] failover)
          Send a message to a list of users.
 java.lang.String[] send(User[] users, SenderInfo[] sis, DeviceInfo di, MessageInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of users.
 java.lang.String[] send(User[] users, SenderInfo[] sis, DeviceInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of users.
 java.lang.String[] send(User[] users, SenderInfo[] sis, MessageInfo info, Message message, java.lang.String[] failover)
          Send a message to a list of users.
 java.lang.String[] send(User[] users, SenderInfo[] sis, Message message, java.lang.String[] failover)
          Send a message to a list of users.
 java.lang.String send(User user, SenderInfo si, Message message, java.lang.String[] failover)
          Send a message to a user.

 

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

 

Constructor Detail

SimpleBean

public SimpleBean()
Constructor.
Method Detail

send

public java.lang.String[] send(java.lang.String type,
                               java.lang.String sender,
                               java.lang.String[] recipients,
                               java.lang.String message)
                        throws TransportException
Send a message to a list of recipients.
Parameters:
type - the delivery type.
sender - the sender address.
recipients - a list of recipient addresses.
message - the text message.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(java.lang.String type,
                               java.lang.String sender,
                               java.lang.String replyTo,
                               java.lang.String[] recipients,
                               java.lang.String subject,
                               java.lang.String message,
                               java.lang.String encoding)
                        throws TransportException
Send a message to a list of recipients.
Parameters:
type - the delivery type.
sender - the sender address.
replyTo - the reply-to address.
recipients - a list of recipient addresses.
subject - the message subject.
message - the text message.
encoding - the message encoding.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(java.lang.String[] types,
                               java.lang.String type,
                               java.lang.String sender,
                               java.lang.String[] recipients,
                               java.lang.String message)
                        throws TransportException
Send a message to a list of recipients.
Parameters:
types - a list of delivery types.
type - the delivery type of the sender.
sender - the sender address.
recipients - a list of recipient addresses.
message - the text message.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(java.lang.String[] types,
                               java.lang.String type,
                               java.lang.String sender,
                               java.lang.String replyTo,
                               java.lang.String[] recipients,
                               java.lang.String subject,
                               java.lang.String message,
                               java.lang.String encoding)
                        throws TransportException
Send a message to a list of recipients.
Parameters:
types - a list of delivery types.
type - the delivery type of the sender.
sender - the sender address.
replyTo - the reply-to address.
recipients - a list of recipient addresses.
subject - the message subject.
message - the text message.
encoding - the message encoding.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String send(User user,
SenderInfo si,
Message message,
                             java.lang.String[] failover)
                      throws TransportException
Send a message to a user.
Parameters:
user - the user to send to.
si - the sender information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a message id.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(User[] users,
SenderInfo[] sis,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of users.
Parameters:
users - the users to send to.
sis - the sender information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(User[] users,
SenderInfo[] sis,
MessageInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of users.
Parameters:
users - the users to send to.
sis - the sender information.
info - the message information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(User[] users,
SenderInfo[] sis,
DeviceInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of users.
Parameters:
users - the users to send to.
sis - the sender information.
info - the device information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(User[] users,
SenderInfo[] sis,
DeviceInfo[] infos,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of users.
Parameters:
users - the users to send to.
sis - the sender information.
infos - the device information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(User[] users,
SenderInfo[] sis,
DeviceInfo di,
MessageInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of users.
Parameters:
users - the users to send to.
sis - the sender information.
di - the device information.
info - the message information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(User[] users,
SenderInfo[] sis,
DeviceInfo[] dis,
MessageInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of users.
Parameters:
users - the users to send to.
sis - the sender information.
dis - the device information.
info - the message information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String send(DeviceAddress address,
SenderInfo si,
Message message,
                             java.lang.String[] failover)
                      throws TransportException
Send a message to an device address.
Parameters:
address - the device address to send to.
si - the sender information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a message id.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(DeviceAddress[] addresses,
SenderInfo[] sis,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of users.
Parameters:
addresses - the device addresses to send to.
sis - the sender information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(DeviceAddress[] addresses,
SenderInfo[] sis,
MessageInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of device addresses.
Parameters:
addresses - the device addresses to send to.
sis - the sender information.
info - the message information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(DeviceAddress[] addresses,
SenderInfo[] sis,
DeviceInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of device addresses.
Parameters:
addresses - the device addresses to send to.
sis - the sender information.
info - the device information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(DeviceAddress[] addresses,
SenderInfo[] sis,
DeviceInfo[] infos,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of device addresses.
Parameters:
addresses - the device addresses to send to.
sis - the sender information.
infos - the device information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(DeviceAddress[] addresses,
SenderInfo[] sis,
DeviceInfo di,
MessageInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of device addresses.
Parameters:
addresses - the device addresses to send to.
sis - the sender information.
di - the device information.
info - the message information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

send

public java.lang.String[] send(DeviceAddress[] addresses,
SenderInfo[] sis,
DeviceInfo[] dis,
MessageInfo info,
Message message,
                               java.lang.String[] failover)
                        throws TransportException
Send a message to a list of device addresses.
Parameters:
addresses - the device addresses to send to.
sis - the sender information.
dis - the device information.
info - the message information.
message - the message to send.
failover - the fail-over delivery types.
Returns:
a list of message ids.
Throws:
TransportException - if an error detected.

getStatus

public Status getStatus(java.lang.String mid)
                 throws TransportException
Get the sending status of a message of given id.
Parameters:
mid - the message id.
Returns:
the status, null if failed.
Throws:
TransportException - if an error detected.

getStatus

public Status[] getStatus(java.lang.String[] mids)
                   throws TransportException
Get the sending status of messages of given ids.
Parameters:
mids - the message ids.
Returns:
a list of statuses, null if failed.
Throws:
TransportException - if an error detected.

Oracle Application Server Wireless Java API Reference
B10400-01

Copyright © 2003 Oracle Corporation. All Rights Reserved.