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, stopgetMessageReceiver, handleConnection, setMessageReceivergetMessageFactory, handleConnection, handleNoEndpointFoundException, setMessageFactorypublic 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
AbstractStandaloneMessageReceiverAbstractStandaloneMessageReceiver.activate() is invoked.onActivate in class AbstractStandaloneMessageReceiverorg.jivesoftware.smack.XMPPExceptionIOExceptionorg.jivesoftware.smack.SmackExceptionprotected void onStart()
AbstractStandaloneMessageReceiverAbstractStandaloneMessageReceiver.start() is invoked.onStart in class AbstractStandaloneMessageReceiverprotected void onStop()
AbstractStandaloneMessageReceiverAbstractStandaloneMessageReceiver.stop() is invoked.onStop in class AbstractStandaloneMessageReceiverprotected void onShutdown()
AbstractStandaloneMessageReceiverAbstractStandaloneMessageReceiver.shutdown() is invoked.onShutdown in class AbstractStandaloneMessageReceiverCopyright © 2023 VMware, Inc.. All rights reserved.