Example usage for org.springframework.integration.xmpp.config XmppConnectionFactoryBean setPassword

List of usage examples for org.springframework.integration.xmpp.config XmppConnectionFactoryBean setPassword

Introduction

In this page you can find the example usage for org.springframework.integration.xmpp.config XmppConnectionFactoryBean setPassword.

Prototype

public void setPassword(String password) 

Source Link

Usage

From source file:com.apress.prospringintegration.social.xmpp.XmppConfiguration.java

@Bean
public XmppConnectionFactoryBean xmppConnectionFactoryBean() {
    SASLAuthentication.supportSASLMechanism(saslMechanismSupported, saslMechanismSupportedIndex);
    ConnectionConfiguration connectionConfiguration = new ConnectionConfiguration(host, port, serviceName);
    XmppConnectionFactoryBean connectionFactoryBean = new XmppConnectionFactoryBean(connectionConfiguration);
    connectionFactoryBean.setResource(resource);
    connectionFactoryBean.setSubscriptionMode(subscriptionMode);
    connectionFactoryBean.setUser(user);
    connectionFactoryBean.setPassword(password);

    return connectionFactoryBean;
}