Class XmppMessageReceiver
java.lang.Object
org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
org.springframework.ws.transport.support.SimpleWebServiceMessageReceiverObjectSupport
org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
org.springframework.ws.transport.xmpp.XmppMessageReceiver
- All Implemented Interfaces:
org.springframework.beans.factory.DisposableBean
,org.springframework.beans.factory.InitializingBean
,org.springframework.context.Lifecycle
Server-side component for receiving XMPP (Jabber) messages. Requires a connection to be set, in addition to the
messageFactory
and messageReceiver
required by the base class.- Since:
- 2.0
- Author:
- Gildas Cuisinier, Arjen Poutsma, Greg Turnquist
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
Default encoding used to read from and write toMessage
messages.Fields inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
logger
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
Template method invoked whenAbstractStandaloneMessageReceiver.activate()
is invoked.protected void
Template method invoked whenAbstractStandaloneMessageReceiver.shutdown()
is invoked.protected void
onStart()
Template method invoked whenAbstractStandaloneMessageReceiver.start()
is invoked.protected void
onStop()
Template method invoked whenAbstractStandaloneMessageReceiver.stop()
is invoked.void
setConnection
(org.jivesoftware.smack.tcp.XMPPTCPConnection connection) Sets theXMPPConnection
to use.Methods inherited from class org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
activate, afterPropertiesSet, destroy, isActive, isRunning, setAutoStartup, shutdown, start, stop
Methods inherited from class org.springframework.ws.transport.support.SimpleWebServiceMessageReceiverObjectSupport
getMessageReceiver, handleConnection, setMessageReceiver
Methods inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
getMessageFactory, handleConnection, handleNoEndpointFoundException, setMessageFactory
-
Field Details
-
DEFAULT_MESSAGE_ENCODING
Default encoding used to read from and write toMessage
messages.- See Also:
-
-
Constructor Details
-
XmppMessageReceiver
public XmppMessageReceiver()
-
-
Method Details
-
setConnection
public void setConnection(org.jivesoftware.smack.tcp.XMPPTCPConnection connection) Sets theXMPPConnection
to use. Setting this property is required. -
onActivate
protected void onActivate() throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackExceptionDescription copied from class:AbstractStandaloneMessageReceiver
Template method invoked whenAbstractStandaloneMessageReceiver.activate()
is invoked.- Specified by:
onActivate
in classAbstractStandaloneMessageReceiver
- Throws:
org.jivesoftware.smack.XMPPException
IOException
org.jivesoftware.smack.SmackException
-
onStart
protected void onStart()Description copied from class:AbstractStandaloneMessageReceiver
Template method invoked whenAbstractStandaloneMessageReceiver.start()
is invoked.- Specified by:
onStart
in classAbstractStandaloneMessageReceiver
-
onStop
protected void onStop()Description copied from class:AbstractStandaloneMessageReceiver
Template method invoked whenAbstractStandaloneMessageReceiver.stop()
is invoked.- Specified by:
onStop
in classAbstractStandaloneMessageReceiver
-
onShutdown
protected void onShutdown()Description copied from class:AbstractStandaloneMessageReceiver
Template method invoked whenAbstractStandaloneMessageReceiver.shutdown()
is invoked.- Specified by:
onShutdown
in classAbstractStandaloneMessageReceiver
-