public final class IQEvent
extends java.util.EventObject
An IQ event is fired whenever an IQ stanza is received or sent.
This class is immutable.
Constructor and Description |
---|
IQEvent(java.lang.Object source,
IQ iq,
boolean inbound)
Constructs an IQ event.
|
Modifier and Type | Method and Description |
---|---|
void |
consume()
Marks this event as consumed.
|
IQ |
getIQ()
Gets the IQ stanza.
|
boolean |
isConsumed()
Indicates, whether this event has been consumed.
|
boolean |
isInbound()
Indicates, whether the stanza has been received (inbound) or is about to being sent (outbound).
|
java.lang.String |
toString() |
public IQEvent(java.lang.Object source, IQ iq, boolean inbound)
Constructs an IQ event.
source
- The object on which the event initially occurred.iq
- The IQ stanza.inbound
- True, if the stanza is inbound.java.lang.IllegalArgumentException
- if source is null.public final IQ getIQ()
Gets the IQ stanza.
public final boolean isInbound()
public final void consume()
isConsumed()
public final boolean isConsumed()
consume()
public final java.lang.String toString()
toString
in class java.util.EventObject
Copyright © 2014–2019 XMPP.rocks. All rights reserved.