org.apache.camel.component.xmpp
Class XmppEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by org.apache.camel.component.xmpp.XmppEndpoint
All Implemented Interfaces:
org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.spi.HeaderFilterStrategyAware, org.apache.camel.StatefulService, org.apache.camel.SuspendableService

public class XmppEndpoint
extends org.apache.camel.impl.DefaultEndpoint
implements org.apache.camel.spi.HeaderFilterStrategyAware

A XMPP Endpoint

Version:

Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
XmppEndpoint()
           
XmppEndpoint(String endpointUri)
          Deprecated. 
XmppEndpoint(String uri, XmppComponent component)
           
 
Method Summary
 org.jivesoftware.smack.XMPPConnection createConnection()
           
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
protected  String createEndpointUri()
           
 org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
           
 org.apache.camel.Exchange createExchange(org.jivesoftware.smack.packet.Message message)
           
 org.apache.camel.Producer createGroupChatProducer()
           
 org.apache.camel.Producer createPrivateChatProducer(String participant)
           
 org.apache.camel.Producer createProducer()
           
protected  void doStop()
           
 XmppBinding getBinding()
           
 String getChatId()
           
static String getConnectionMessage(org.jivesoftware.smack.XMPPConnection connection)
           
 org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
           
 String getHost()
           
 String getNickname()
           
 String getParticipant()
           
 String getPassword()
           
 int getPort()
           
 String getResource()
           
 String getRoom()
           
 String getServiceName()
           
 String getUser()
           
 boolean isCreateAccount()
           
 boolean isLogin()
           
 boolean isSingleton()
           
 String resolveRoom(org.jivesoftware.smack.XMPPConnection connection)
           
 void setBinding(XmppBinding binding)
          Sets the binding used to convert from a Camel message to and from an XMPP message
 void setCreateAccount(boolean createAccount)
           
 void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
           
 void setHost(String host)
           
 void setLogin(boolean login)
           
 void setNickname(String nickname)
           
 void setParticipant(String participant)
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setResource(String resource)
           
 void setRoom(String room)
           
 void setServiceName(String serviceName)
           
 void setUser(String user)
           
 
Methods inherited from class org.apache.camel.impl.DefaultEndpoint
configureConsumer, configureProperties, createEndpointConfiguration, createExchange, createExchange, createPollingConsumer, doStart, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString
 
Methods inherited from class org.apache.camel.support.ServiceSupport
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

XmppEndpoint

public XmppEndpoint()

XmppEndpoint

public XmppEndpoint(String uri,
                    XmppComponent component)

XmppEndpoint

@Deprecated
public XmppEndpoint(String endpointUri)
Deprecated. 

Method Detail

createProducer

public org.apache.camel.Producer createProducer()
                                         throws Exception
Specified by:
createProducer in interface org.apache.camel.Endpoint
Throws:
Exception

createGroupChatProducer

public org.apache.camel.Producer createGroupChatProducer()
                                                  throws Exception
Throws:
Exception

createPrivateChatProducer

public org.apache.camel.Producer createPrivateChatProducer(String participant)
                                                    throws Exception
Throws:
Exception

createConsumer

public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
                                         throws Exception
Specified by:
createConsumer in interface org.apache.camel.Endpoint
Throws:
Exception

createExchange

public org.apache.camel.Exchange createExchange(org.apache.camel.ExchangePattern pattern)
Specified by:
createExchange in interface org.apache.camel.Endpoint
Overrides:
createExchange in class org.apache.camel.impl.DefaultEndpoint

createExchange

public org.apache.camel.Exchange createExchange(org.jivesoftware.smack.packet.Message message)

createEndpointUri

protected String createEndpointUri()
Overrides:
createEndpointUri in class org.apache.camel.impl.DefaultEndpoint

isSingleton

public boolean isSingleton()
Specified by:
isSingleton in interface org.apache.camel.IsSingleton

createConnection

public org.jivesoftware.smack.XMPPConnection createConnection()
                                                       throws org.jivesoftware.smack.XMPPException
Throws:
org.jivesoftware.smack.XMPPException

resolveRoom

public String resolveRoom(org.jivesoftware.smack.XMPPConnection connection)
                   throws org.jivesoftware.smack.XMPPException
Throws:
org.jivesoftware.smack.XMPPException

getConnectionMessage

public static String getConnectionMessage(org.jivesoftware.smack.XMPPConnection connection)

getChatId

public String getChatId()

getBinding

public XmppBinding getBinding()

setBinding

public void setBinding(XmppBinding binding)
Sets the binding used to convert from a Camel message to and from an XMPP message


getHost

public String getHost()

setHost

public void setHost(String host)

getPort

public int getPort()

setPort

public void setPort(int port)

getUser

public String getUser()

setUser

public void setUser(String user)

getPassword

public String getPassword()

setPassword

public void setPassword(String password)

getResource

public String getResource()

setResource

public void setResource(String resource)

isLogin

public boolean isLogin()

setLogin

public void setLogin(boolean login)

isCreateAccount

public boolean isCreateAccount()

setCreateAccount

public void setCreateAccount(boolean createAccount)

getRoom

public String getRoom()

setRoom

public void setRoom(String room)

getParticipant

public String getParticipant()

setParticipant

public void setParticipant(String participant)

getNickname

public String getNickname()

setNickname

public void setNickname(String nickname)

setServiceName

public void setServiceName(String serviceName)

getServiceName

public String getServiceName()

getHeaderFilterStrategy

public org.apache.camel.spi.HeaderFilterStrategy getHeaderFilterStrategy()
Specified by:
getHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware

setHeaderFilterStrategy

public void setHeaderFilterStrategy(org.apache.camel.spi.HeaderFilterStrategy headerFilterStrategy)
Specified by:
setHeaderFilterStrategy in interface org.apache.camel.spi.HeaderFilterStrategyAware

doStop

protected void doStop()
               throws Exception
Overrides:
doStop in class org.apache.camel.impl.DefaultEndpoint
Throws:
Exception


Apache CAMEL