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
FieldsModifier and TypeFieldDescriptionstatic final StringDefault encoding used to read from and write toMessagemessages.Fields inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
logger -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidTemplate method invoked whenAbstractStandaloneMessageReceiver.activate()is invoked.protected voidTemplate method invoked whenAbstractStandaloneMessageReceiver.shutdown()is invoked.protected voidonStart()Template method invoked whenAbstractStandaloneMessageReceiver.start()is invoked.protected voidonStop()Template method invoked whenAbstractStandaloneMessageReceiver.stop()is invoked.voidsetConnection(org.jivesoftware.smack.tcp.XMPPTCPConnection connection) Sets theXMPPConnectionto use.Methods inherited from class org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
activate, afterPropertiesSet, destroy, isActive, isRunning, setAutoStartup, shutdown, start, stopMethods inherited from class org.springframework.ws.transport.support.SimpleWebServiceMessageReceiverObjectSupport
getMessageReceiver, handleConnection, setMessageReceiverMethods 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 toMessagemessages.- See Also:
-
-
Constructor Details
-
XmppMessageReceiver
public XmppMessageReceiver()
-
-
Method Details
-
setConnection
public void setConnection(org.jivesoftware.smack.tcp.XMPPTCPConnection connection) Sets theXMPPConnectionto use. Setting this property is required. -
onActivate
protected void onActivate() throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackExceptionDescription copied from class:AbstractStandaloneMessageReceiverTemplate method invoked whenAbstractStandaloneMessageReceiver.activate()is invoked.- Specified by:
onActivatein classAbstractStandaloneMessageReceiver- Throws:
org.jivesoftware.smack.XMPPExceptionIOExceptionorg.jivesoftware.smack.SmackException
-
onStart
protected void onStart()Description copied from class:AbstractStandaloneMessageReceiverTemplate method invoked whenAbstractStandaloneMessageReceiver.start()is invoked.- Specified by:
onStartin classAbstractStandaloneMessageReceiver
-
onStop
protected void onStop()Description copied from class:AbstractStandaloneMessageReceiverTemplate method invoked whenAbstractStandaloneMessageReceiver.stop()is invoked.- Specified by:
onStopin classAbstractStandaloneMessageReceiver
-
onShutdown
protected void onShutdown()Description copied from class:AbstractStandaloneMessageReceiverTemplate method invoked whenAbstractStandaloneMessageReceiver.shutdown()is invoked.- Specified by:
onShutdownin classAbstractStandaloneMessageReceiver
-