|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.jabber.jabberbeans.Extension.XDelayBuilder
A XDelay
extension handles jabber:x:delay packets. These are
used to represent any type of delay in the path of a message or presence
packet - for instance, from messages sent offline, or messages sent through
transports from a third-party system.
Constructor Summary | |
XDelayBuilder()
construct a new XDelayBuilder object |
Method Summary | |
Extension |
build()
build a new XDelay Extension based on the current
builder state |
java.lang.String |
getContent()
get the content describing why the message was delayed |
JID |
getFromAddress()
get the address of the delaying party |
java.lang.String |
getStamp()
get the timestamp of when the packet was delayed |
void |
reset()
reset the builder to a default state, for reuse |
void |
setContent(java.lang.String txt)
set the content describing why the message was delayed |
void |
setFromAddress(JID from)
set the address of the delaying party |
void |
setStamp(java.lang.String stamp)
set the timestamp of when the packet was delayed |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public XDelayBuilder()
Method Detail |
public void reset()
reset
in interface ExtensionBuilder
public JID getFromAddress()
JID
of the party which delayed the message.public void setFromAddress(JID from)
from
- JID
of the party which delayed the message.public java.lang.String getStamp()
String
holding the ISO date stamppublic void setStamp(java.lang.String stamp)
stamp
- String
holding the ISO date stamppublic java.lang.String getContent()
String
holding text contentpublic void setContent(java.lang.String txt)
txt
- String
holding text contentpublic Extension build() throws java.lang.InstantiationException
XDelay Extension
based on the current
builder state
build
in interface ExtensionBuilder
XDelay Extension
java.lang.InstantiationException
- if there is not sufficient information
to construct a full XDelay object.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |