public class XmppConsumer
extends org.apache.camel.support.DefaultConsumer
implements org.jivesoftware.smack.chat2.IncomingChatMessageListener, org.jivesoftware.smack.MessageListener, org.jivesoftware.smack.StanzaListener
Consumer which listens to XMPP packets| Constructor and Description |
|---|
XmppConsumer(XmppEndpoint endpoint,
org.apache.camel.Processor processor) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doStart() |
protected void |
doStop() |
void |
newIncomingMessage(org.jxmpp.jid.EntityBareJid from,
org.jivesoftware.smack.packet.Message message,
org.jivesoftware.smack.chat2.Chat chat) |
void |
processMessage(org.jivesoftware.smack.chat2.Chat chat,
org.jivesoftware.smack.packet.Message message) |
void |
processMessage(org.jivesoftware.smack.packet.Message message) |
void |
processStanza(org.jivesoftware.smack.packet.Stanza stanza) |
protected void |
scheduleDelayedStart() |
createUoW, doInit, doneUoW, getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, getRoute, getRouteId, handleException, handleException, setExceptionHandler, setRoute, setRouteId, toStringbuild, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic XmppConsumer(XmppEndpoint endpoint, org.apache.camel.Processor processor)
protected void doStart()
throws Exception
doStart in class org.apache.camel.support.DefaultConsumerExceptionprotected void doStop()
throws Exception
doStop in class org.apache.camel.support.DefaultConsumerExceptionpublic void newIncomingMessage(org.jxmpp.jid.EntityBareJid from,
org.jivesoftware.smack.packet.Message message,
org.jivesoftware.smack.chat2.Chat chat)
newIncomingMessage in interface org.jivesoftware.smack.chat2.IncomingChatMessageListenerpublic void processMessage(org.jivesoftware.smack.packet.Message message)
processMessage in interface org.jivesoftware.smack.MessageListenerpublic void processStanza(org.jivesoftware.smack.packet.Stanza stanza)
throws org.jivesoftware.smack.SmackException.NotConnectedException,
InterruptedException
processStanza in interface org.jivesoftware.smack.StanzaListenerorg.jivesoftware.smack.SmackException.NotConnectedExceptionInterruptedExceptionpublic void processMessage(org.jivesoftware.smack.chat2.Chat chat,
org.jivesoftware.smack.packet.Message message)
Apache Camel