public class XmppConnectionFactoryBean
extends org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.tcp.XMPPTCPConnection>
implements org.springframework.context.SmartLifecycle
XMPPTCPConnection
object.
This object is used for all scenarios to talk to a Smack server.XMPPTCPConnection
Constructor and Description |
---|
XmppConnectionFactoryBean(org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration connectionConfiguration) |
Modifier and Type | Method and Description |
---|---|
protected org.jivesoftware.smack.tcp.XMPPTCPConnection |
createInstance() |
Class<? extends org.jivesoftware.smack.tcp.XMPPTCPConnection> |
getObjectType() |
int |
getPhase() |
boolean |
isAutoStartup() |
boolean |
isRunning() |
void |
setAutoStartup(boolean autoStartup) |
void |
setPassword(String password) |
void |
setPhase(int phase) |
void |
setResource(String resource) |
void |
setSubscriptionMode(String subscriptionMode) |
void |
setUser(String user) |
void |
start() |
void |
stop() |
void |
stop(Runnable callback) |
public XmppConnectionFactoryBean(org.jivesoftware.smack.tcp.XMPPTCPConnectionConfiguration connectionConfiguration)
public void setAutoStartup(boolean autoStartup)
public void setPhase(int phase)
public void setSubscriptionMode(String subscriptionMode)
public void setUser(String user)
public void setPassword(String password)
public void setResource(String resource)
public Class<? extends org.jivesoftware.smack.tcp.XMPPTCPConnection> getObjectType()
getObjectType
in interface org.springframework.beans.factory.FactoryBean<org.jivesoftware.smack.tcp.XMPPTCPConnection>
getObjectType
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.tcp.XMPPTCPConnection>
protected org.jivesoftware.smack.tcp.XMPPTCPConnection createInstance() throws Exception
createInstance
in class org.springframework.beans.factory.config.AbstractFactoryBean<org.jivesoftware.smack.tcp.XMPPTCPConnection>
Exception
public void start()
start
in interface org.springframework.context.Lifecycle
public void stop()
stop
in interface org.springframework.context.Lifecycle
public void stop(Runnable callback)
stop
in interface org.springframework.context.SmartLifecycle
public boolean isRunning()
isRunning
in interface org.springframework.context.Lifecycle
public int getPhase()
getPhase
in interface org.springframework.context.Phased
public boolean isAutoStartup()
isAutoStartup
in interface org.springframework.context.SmartLifecycle
Copyright © 2017. All rights reserved.