|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.XMLData | +--org.jabber.jabberbeans.Extension.IQTime
An IQTime
Extension object is used to query for the time of a
remote client. Provided is the time information in GMT, the timezone of
the responding party, and a textual display for the time data.
Any data parsing or handling code is located outside this class.
Constructor Summary | |
IQTime(IQTimeBuilder builder)
Construct a new IQTime object, based on the builder
state. |
Method Summary | |
void |
appendItem(java.lang.StringBuffer retval)
appendItem converts this packet to XML, either an
<agent> block in a jabber:iq:agents extension, or its own
jabber:iq:agent extension. |
java.lang.String |
getDisplay()
return a textual string for displaying the current time |
java.lang.String |
getTime()
return the time in GMT/UTC, in ISO format (yyyymmddThh:mm:ss) |
java.lang.String |
getZone()
return the time zone which the party is located, if any |
Methods inherited from class org.jabber.jabberbeans.XMLData |
appendAttrib, appendAttrib, appendChild, appendChild, escapeString, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jabber.jabberbeans.Extension.Extension |
toString |
Constructor Detail |
public IQTime(IQTimeBuilder builder)
IQTime
object, based on the builder
state.
builder
- IQTimeBuilder which holds the state this object
will be based onMethod Detail |
public java.lang.String getTime()
public java.lang.String getZone()
public java.lang.String getDisplay()
public void appendItem(java.lang.StringBuffer retval)
appendItem
converts this packet to XML, either an
<agent> block in a jabber:iq:agents extension, or its own
jabber:iq:agent extension. It then appends it to a StringBuffer.
appendItem
in interface Extension
appendItem
in class XMLData
retval
- The StringBuffer
to append to
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |