Spring Integration

org.springframework.integration.xmpp
Class XmppConnectionFactory

java.lang.Object
  extended by org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.XMPPConnection>
      extended by 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

Constructor Summary
XmppConnectionFactory()
           
XmppConnectionFactory(String user, String password, String host, String serviceName, String resource, String saslMechanismSupported, int saslMechanismSupportedIndex, int port)
           
 
Method Summary
protected  org.jivesoftware.smack.XMPPConnection createInstance()
           
 String getHost()
           
 Class<? extends org.jivesoftware.smack.XMPPConnection> getObjectType()
           
 String getPassword()
           
 int getPort()
           
 String getResource()
           
 String getSaslMechanismSupported()
           
 int getSaslMechanismSupportedIndex()
           
 String getServiceName()
           
 String getUser()
           
 boolean isDebug()
           
 void setDebug(boolean debug)
           
 void setHost(String host)
           
 void setPassword(String password)
           
 void setPort(int port)
           
 void setResource(String resource)
           
 void setSaslMechanismSupported(String saslMechanismSupported)
           
 void setSaslMechanismSupportedIndex(int saslMechanismSupportedIndex)
           
 void setServiceName(String serviceName)
           
 void setSubscriptionMode(String subscriptionMode)
           
 void setUser(String user)
           
 
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
 

Constructor Detail

XmppConnectionFactory

public XmppConnectionFactory()

XmppConnectionFactory

public XmppConnectionFactory(String user,
                             String password,
                             String host,
                             String serviceName,
                             String resource,
                             String saslMechanismSupported,
                             int saslMechanismSupportedIndex,
                             int port)
Method Detail

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

Spring Integration

Copyright © 2010. All Rights Reserved.