|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This is the base interface for derived interfaces that represent various types of messages. This package is designed to work with Message objects that may contain different elements depending on the underlying messaging protocol.
This interface contains the functionality common to all messages. Concrete object instances representing a message will typically implement other (sub)interfaces providing access to the content and other information in the message which is dependent on the type of the message.
Method Summary | |
boolean |
getDeliveryNotification()
Returns whether a notification is requested when message final delivery status is known. |
long |
getExpiration()
Returns the message's expiration time. |
java.lang.String |
getMessageId()
Returns the message ID. |
long |
getTimestamp()
Returns the message timestamp. |
int |
numberOfSegments()
Returns the number of segments in the underlying protocol that would be needed for sending the specified Message. |
void |
send()
Sends the message. |
void |
setDeliveryNotification(boolean request)
Sets whether a notification is requested when the final message delivery status is known. |
void |
setExpiration(long expiration)
Sets the message's expiration time. |
Methods inherited from interface org.mgif.connectivity.transfer.Datagram |
getLocale, getLocales, getProtocol, getScheme, getTerminalId |
Methods inherited from interface org.mgif.connectivity.transfer.Attributes |
getAttribute, getAttributeNames, getAttributes, isAttribute, removeAttribute, setAttribute |
Method Detail |
public boolean getDeliveryNotification()
public long getExpiration()
public java.lang.String getMessageId()
public long getTimestamp()
public int numberOfSegments()
Note that this method does not actually send the message, it will only calculate the number of protocol segments needed for sending the message.
public void send() throws MessageException
MessageException
- if sending failspublic void setDeliveryNotification(boolean request)
request
- true to request a notificationpublic void setExpiration(long expiration)
expiration
- the message's expiration time relative to the
current time specified in milliseconds
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |