public final class IQEvent extends StanzaEvent<IQ>
IQListener,
Serialized Formstanzasource| Constructor and Description |
|---|
IQEvent(Object source,
IQ iq,
boolean incoming)
Constructs an IQ event.
|
| Modifier and Type | Method and Description |
|---|---|
void |
consume()
Consumes this event, which basically indicates, that an IQ response has been sent by an event handler.
|
IQ |
getIQ()
Gets the IQ stanza.
|
boolean |
isConsumed()
Indicates, if this event has been consumed by an event handler, i.e. if the IQ has been responded to.
|
getStanza, isIncominggetSource, toStringpublic IQEvent(Object source, IQ iq, boolean incoming)
source - The object on which the event initially occurred.iq - The IQ stanza.incoming - True, if the stanza is incoming.IllegalArgumentException - if source is null.public IQ getIQ()
public boolean isConsumed()
public void consume()
Copyright © 2014 XMPP.rocks. All rights reserved.