|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.echomine.jabber.JabberMessage
com.echomine.jabber.JabberJDOMMessage
com.echomine.jabber.msg.ExpireXMessage
public class ExpireXMessage
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
Field Summary |
---|
Fields inherited from class com.echomine.jabber.JabberMessage |
---|
messageID |
Constructor Summary | |
---|---|
ExpireXMessage()
constructs a default message |
Method Summary | |
---|---|
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 |
Methods inherited from class com.echomine.jabber.JabberJDOMMessage |
---|
encode, getDOM, getXMLOutputter, parse, setMessageID, toString |
Methods inherited from class com.echomine.jabber.JabberMessage |
---|
getMessageID, getReplyMessage, getTimeout, getXMessage, getXMessages, interrupt, isReplyRequired, isSendXMessages, isSynchronized, replyReceived, setReplyRequired, setSendXMessages, setSynchronized, setTimeout, setXMessage, setXMessages |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ExpireXMessage()
Method Detail |
---|
public long getExpireTimeout()
public void setExpireTimeout(long seconds)
public long getStoredTimeInMillis()
public void setStoredTimeInMillis(long time)
public int getMessageType()
JabberJDOMMessage
getMessageType
in class JabberJDOMMessage
JabberCode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |