public final class IQEvent extends EventObject
IQListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected S |
stanza |
source| 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.
|
S |
getStanza()
Gets the stanza.
|
boolean |
isConsumed()
Indicates, if this event has been consumed by an event handler, i.e. if the IQ has been responded to.
|
boolean |
isIncoming()
Indicates, whether the stanza has been received (incoming) or is about to being sent (outgoing).
|
getSource, toStringprotected final S extends Stanza & ClientStreamElement stanza
public 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()
public boolean isIncoming()
public S getStanza()
Copyright © 2014 XMPP.rocks. All rights reserved.