org.apache.camel.component.xmpp
Class XmppEndpoint
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
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
public class XmppEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
- implements org.apache.camel.spi.HeaderFilterStrategyAware
A XMPP Endpoint
- Version:
- $Revision:520964 $
| Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureProperties, createExchange, createExchange, createPollingConsumer, doStart, equals, getCamelContext, getComponent, getEndpointKey, getEndpointUri, getExchangePattern, getExchangeType, getId, hashCode, isLenientProperties, isSynchronous, sanitizeUri, setCamelContext, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
| Methods inherited from class org.apache.camel.impl.ServiceSupport |
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, start, stop, suspend |
| Methods inherited from interface org.apache.camel.Service |
start, stop |
XmppEndpoint
public XmppEndpoint()
XmppEndpoint
public XmppEndpoint(String uri,
XmppComponent component)
XmppEndpoint
public XmppEndpoint(String endpointUri)
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