public final class MessageEvent extends EventObject
MessageListener,
Serialized Form| Modifier and Type | Field and Description |
|---|---|
protected S |
stanza |
source| Constructor and Description |
|---|
MessageEvent(Object source,
Message message,
boolean incoming)
Constructs a message event.
|
| Modifier and Type | Method and Description |
|---|---|
Message |
getMessage()
Gets the message.
|
S |
getStanza()
Gets the stanza.
|
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 MessageEvent(Object source, Message message, boolean incoming)
source - The object on which the event initially occurred.message - The message stanza.incoming - True, if the stanza is incoming.IllegalArgumentException - if source is null.public Message getMessage()
public boolean isIncoming()
public S getStanza()
Copyright © 2014 XMPP.rocks. All rights reserved.