|
||||||||||
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.AbstractJabberMessage
com.echomine.jabber.JabberIQMessage
com.echomine.jabber.msg.TimeIQMessage
public class TimeIQMessage
Submits and parses a Client Time message. The message will return the time of the recipient that you sent the message to. This message seems to only work with the server and not when you send it to a user (somehow not supported). Thus, current implementation will not allow you to create a message that contains your own time information to send to the server. When requesting time from a client is, the message will implement letting you set values.
Current Implementation: JEP-0090 1.0
Field Summary |
---|
Fields inherited from class com.echomine.jabber.JabberIQMessage |
---|
TYPE_GET, TYPE_RESULT, TYPE_SET |
Fields inherited from class com.echomine.jabber.AbstractJabberMessage |
---|
TYPE_ERROR |
Fields inherited from class com.echomine.jabber.JabberMessage |
---|
messageID |
Constructor Summary | |
---|---|
TimeIQMessage()
defaults to iq type get |
|
TimeIQMessage(java.lang.String type)
this constructor is for messages with type. |
Method Summary | |
---|---|
java.lang.String |
getDisplay()
retrieve the time display in a preformatted string returned by the client. |
int |
getMessageType()
the default message type is unknown. |
java.util.Date |
getTimeInLocal()
a convenience method that gives you the client's current time in the your own time zone. |
java.lang.String |
getTimeZone()
get the timezone that the client is in |
java.lang.String |
getUTC()
return the UTC time string as returned by the client |
Methods inherited from class com.echomine.jabber.AbstractJabberMessage |
---|
getErrorMessage, getFrom, getTo, getType, isError, parse, setErrorMessage, setFrom, setTo, setType |
Methods inherited from class com.echomine.jabber.JabberJDOMMessage |
---|
encode, getDOM, getXMLOutputter, 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 TimeIQMessage(java.lang.String type)
public TimeIQMessage()
Method Detail |
---|
public java.util.Date getTimeInLocal()
public java.lang.String getUTC()
public java.lang.String getTimeZone()
public java.lang.String getDisplay()
public int getMessageType()
JabberJDOMMessage
getMessageType
in class JabberIQMessage
JabberCode
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |