public class XmppMessageReceiver extends AbstractStandaloneMessageReceiver
messageFactory
and messageReceiver
required by the base class.XmppConnectionFactoryBean
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_MESSAGE_ENCODING
Default encoding used to read from and write to
Message messages. |
logger
Constructor and Description |
---|
XmppMessageReceiver() |
Modifier and Type | Method and Description |
---|---|
protected void |
onActivate()
Template method invoked when
AbstractStandaloneMessageReceiver.activate() is invoked. |
protected void |
onShutdown()
Template method invoked when
AbstractStandaloneMessageReceiver.shutdown() is invoked. |
protected void |
onStart()
Template method invoked when
AbstractStandaloneMessageReceiver.start() is invoked. |
protected void |
onStop()
Template method invoked when
AbstractStandaloneMessageReceiver.stop() is invoked. |
void |
setConnection(org.jivesoftware.smack.tcp.XMPPTCPConnection connection)
Sets the
XMPPConnection to use. |
activate, afterPropertiesSet, destroy, isActive, isRunning, setAutoStartup, shutdown, start, stop
getMessageReceiver, handleConnection, setMessageReceiver
getMessageFactory, handleConnection, handleNoEndpointFoundException, setMessageFactory
public static final String DEFAULT_MESSAGE_ENCODING
Message
messages.public void setConnection(org.jivesoftware.smack.tcp.XMPPTCPConnection connection)
XMPPConnection
to use. Setting this property is required.protected void onActivate() throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackException
AbstractStandaloneMessageReceiver
AbstractStandaloneMessageReceiver.activate()
is invoked.onActivate
in class AbstractStandaloneMessageReceiver
org.jivesoftware.smack.XMPPException
IOException
org.jivesoftware.smack.SmackException
protected void onStart()
AbstractStandaloneMessageReceiver
AbstractStandaloneMessageReceiver.start()
is invoked.onStart
in class AbstractStandaloneMessageReceiver
protected void onStop()
AbstractStandaloneMessageReceiver
AbstractStandaloneMessageReceiver.stop()
is invoked.onStop
in class AbstractStandaloneMessageReceiver
protected void onShutdown()
AbstractStandaloneMessageReceiver
AbstractStandaloneMessageReceiver.shutdown()
is invoked.onShutdown
in class AbstractStandaloneMessageReceiver
Copyright © 2020 Pivotal Software. All rights reserved.