org.apache.camel.component.xmpp
Class XmppConsumer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultConsumer
          extended by org.apache.camel.component.xmpp.XmppConsumer
All Implemented Interfaces:
Consumer, Service, ShutdownableService, org.jivesoftware.smack.ChatManagerListener, org.jivesoftware.smack.MessageListener, org.jivesoftware.smack.PacketListener

public class XmppConsumer
extends DefaultConsumer
implements org.jivesoftware.smack.PacketListener, org.jivesoftware.smack.MessageListener, org.jivesoftware.smack.ChatManagerListener

A Consumer which listens to XMPP packets

Version:
$Revision: 20398 $

Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultConsumer
log
 
Constructor Summary
XmppConsumer(XmppEndpoint endpoint, Processor processor)
           
 
Method Summary
 void chatCreated(org.jivesoftware.smack.Chat chat, boolean createdLocally)
           
protected  void doStart()
           
protected  void doStop()
           
 void processMessage(org.jivesoftware.smack.Chat chat, org.jivesoftware.smack.packet.Message message)
           
 void processPacket(org.jivesoftware.smack.packet.Packet packet)
           
 
Methods inherited from class org.apache.camel.impl.DefaultConsumer
getAsyncProcessor, getEndpoint, getExceptionHandler, getProcessor, handleException, setExceptionHandler, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doShutdown, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, removeChildService, shutdown, start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

XmppConsumer

public XmppConsumer(XmppEndpoint endpoint,
                    Processor processor)
Method Detail

doStart

protected void doStart()
                throws Exception
Overrides:
doStart in class DefaultConsumer
Throws:
Exception

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class DefaultConsumer
Throws:
Exception

chatCreated

public void chatCreated(org.jivesoftware.smack.Chat chat,
                        boolean createdLocally)
Specified by:
chatCreated in interface org.jivesoftware.smack.ChatManagerListener

processPacket

public void processPacket(org.jivesoftware.smack.packet.Packet packet)
Specified by:
processPacket in interface org.jivesoftware.smack.PacketListener

processMessage

public void processMessage(org.jivesoftware.smack.Chat chat,
                           org.jivesoftware.smack.packet.Message message)
Specified by:
processMessage in interface org.jivesoftware.smack.MessageListener


Copyright © 2007-2010 IONA Open Source Community. All Rights Reserved.