public class ExpireXMessage extends JabberJDOMMessage
This extension is a simple flag identifying that a message has a limited lifetime. If the message is stored offline, the server will not deliver the message and simply delete it after the expiration time has passed. A client may also optionally support removing the message after expiration if it has been received but not yet been viewed. The seconds attribute is always relative to the time in which the message was sent/received (now). The server will adjust the value if it was stored for some time but not expired on the server.
Current Implementation: JEP-0023 Version 1.0
messageID| Constructor and Description |
|---|
ExpireXMessage()
constructs a default message
|
| Modifier and Type | Method and Description |
|---|---|
long |
getExpireTimeout() |
int |
getMessageType()
the default message type is unknown.
|
long |
getStoredTimeInMillis()
retrieves the stored time.
|
void |
setExpireTimeout(long seconds)
sets the seconds for expiration for a message as a notification to the server or the remote client.
|
void |
setStoredTimeInMillis(long time)
sets the time when this message is stored
|
encode, getDOM, getXMLOutputter, parse, setMessageID, toStringgetMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessagespublic long getExpireTimeout()
public void setExpireTimeout(long seconds)
public long getStoredTimeInMillis()
public void setStoredTimeInMillis(long time)
public int getMessageType()
JabberJDOMMessagegetMessageType in class JabberJDOMMessageJabberCodeCopyright © 2001-2005 Echomine. All Rights Reserved.