|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.panama.messaging.push.Packet
Packet class represents a generic message in the real world. (For example: email)
It has a subject, one body or a set of message bodies (multipart). The same message
may be delivered to multiple recipients of multiple transport types (delivery types).
For example: the same message can be delivered to 2 email recipients, 3 SMS recipients and 4 fax machines in the same packet.
Every transport type may have a sender, an alternate reply to address and a group of recipients.
The packet could have a set of optional delivery instructions, like
priority, registered etc.
Message, recipients and transport(s) are required fields.
Notes:
1. Never access any public data fields inside this class directly, because they are for
internal use in this release and will be changed in coming releases. Always use public
methods of this class.
2. Failover is NOT implemented in this release. All failover related data fields are ignored.
Field Summary |
Type | Field |
---|---|
java.util.Hashtable |
failover
|
java.util.Hashtable |
from
|
Message |
message
|
MessageInfo |
msgInfo
|
java.util.Hashtable |
recipients
|
java.util.Hashtable |
replyTo
|
Constructor Summary |
Packet()
Create an empty packet. |
Method Summary |
Type | Method |
---|---|
void |
addRecipients(java.lang.String transportType,
AddressData[] recipients)
Add recipients of one transport type to the packet. |
java.util.Vector |
getAllRecipients()
get all recipients of the packet |
java.lang.String[] |
getFailover(java.lang.String transportType)
Get failover(s) of the transport type. |
AddressData |
getFrom(java.lang.String transport)
Get the sender of specified transport. |
Message |
getMessage()
get message object from packet |
MessageInfo |
getMessageInfo()
get MessageInfo object from packet |
java.util.Vector |
getRecipients(java.lang.String transportType)
Get all recipients of one particular transport type. |
AddressData |
getReplyTo(java.lang.String transport)
get reply to address of the transport. |
java.util.Enumeration |
getTransports()
Return all transport types (delivery types) will be used to deliver the message. |
boolean |
removeRecipient(java.lang.String transportType,
AddressData recipient)
remove a recipient from recipient list |
void |
setFailover(java.lang.String transportType,
java.lang.String[] failovers)
Set failover transports which may be used if the primary transport fails to deliver message to certain recipients. |
void |
setFrom(java.lang.String transport,
AddressData sender)
Set the sender address of specified transport type. |
void |
setMessage(Message msg)
Set message of current packet. |
void |
setMessageInfo(MessageInfo msgI)
Set additional info of message. |
void |
setReplyTo(java.lang.String transport,
AddressData replyToAddress)
Set an alternative 'reply to' address for the transport. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public java.util.Hashtable from
public java.util.Hashtable replyTo
public Message message
public MessageInfo msgInfo
public java.util.Hashtable failover
public java.util.Hashtable recipients
Constructor Detail |
public Packet()
Method Detail |
public void setFrom(java.lang.String transport, AddressData sender)
transport
- transport supported by Messaging gateway/engine.Address
- address of the senderpublic AddressData getFrom(java.lang.String transport)
setFrom(String,AddressData)
public void setReplyTo(java.lang.String transport, AddressData replyToAddress)
transport
- transport supported by Messaging gateway/engine.Address
- address of the sendersetFrom(String,AddressData)
public AddressData getReplyTo(java.lang.String transport)
setFrom(String,AddressData)
,
setReplyTo(String,AddressData)
public void setMessage(Message msg)
public Message getMessage()
public void setMessageInfo(MessageInfo msgI)
public MessageInfo getMessageInfo()
public boolean removeRecipient(java.lang.String transportType, AddressData recipient)
public void addRecipients(java.lang.String transportType, AddressData[] recipients)
transportType
- The basic type of transport which will be used to deliver the message first.
transport types are defined as constants in TransportType.java.recipients
- Array of recipientsTransportType
public java.util.Vector getRecipients(java.lang.String transportType)
public java.util.Vector getAllRecipients()
public void setFailover(java.lang.String transportType, java.lang.String[] failovers)
transportType
- The transport type.failovers
- Backup transports which may be used if the basic transport fails to deliver to certain recipients.
Valid transport and failover types are defined as constants in TransportType.java.public java.lang.String[] getFailover(java.lang.String transportType)
public java.util.Enumeration getTransports()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |