org.springframework.integration.xmpp
Class XmppConnectionFactory
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
org.springframework.integration.xmpp.XmppConnectionFactory
- All Implemented Interfaces:
- BeanClassLoaderAware, BeanFactoryAware, DisposableBean, FactoryBean<org.jivesoftware.smack.XMPPConnection>, InitializingBean
public class XmppConnectionFactory
- extends AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
This class configures an XMPPConnection
object. This object is used for all scenarios to talk to a Smack server.
- Since:
- 2.0
- Author:
- Josh Long, Mark Fisher
- See Also:
XMPPConnection
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean |
afterPropertiesSet, destroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmppConnectionFactory
public XmppConnectionFactory()
XmppConnectionFactory
public XmppConnectionFactory(String user,
String password,
String host,
String serviceName,
String resource,
String saslMechanismSupported,
int saslMechanismSupportedIndex,
int port)
getUser
public String getUser()
setUser
public void setUser(String user)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getHost
public String getHost()
setHost
public void setHost(String host)
getServiceName
public String getServiceName()
setServiceName
public void setServiceName(String serviceName)
getResource
public String getResource()
setResource
public void setResource(String resource)
getSaslMechanismSupported
public String getSaslMechanismSupported()
setSaslMechanismSupported
public void setSaslMechanismSupported(String saslMechanismSupported)
getSaslMechanismSupportedIndex
public int getSaslMechanismSupportedIndex()
setSaslMechanismSupportedIndex
public void setSaslMechanismSupportedIndex(int saslMechanismSupportedIndex)
getPort
public int getPort()
setPort
public void setPort(int port)
isDebug
public boolean isDebug()
setDebug
public void setDebug(boolean debug)
setSubscriptionMode
public void setSubscriptionMode(String subscriptionMode)
getObjectType
public Class<? extends org.jivesoftware.smack.XMPPConnection> getObjectType()
- Specified by:
getObjectType
in interface FactoryBean<org.jivesoftware.smack.XMPPConnection>
- Specified by:
getObjectType
in class AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
createInstance
protected org.jivesoftware.smack.XMPPConnection createInstance()
throws Exception
- Specified by:
createInstance
in class AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
- Throws:
Exception
Copyright © 2010. All Rights Reserved.