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

public class XmppMessageReceiver extends org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
Server-side component for receiving XMPP (Jabber) messages. Requires a setConnection(XMPPTCPConnection) connection} to be set, in addition to the messageFactory and messageReceiver required by the base class.
Since:
2.0
See Also:
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    Default encoding used to read from and write to Message messages.

    Fields inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport

    logger
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    protected void
     
    protected void
     
    protected void
     
    protected void
     
    void
    setConnection(org.jivesoftware.smack.tcp.XMPPTCPConnection connection)
    Sets the XMPPConnection 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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • DEFAULT_MESSAGE_ENCODING

      public static final String DEFAULT_MESSAGE_ENCODING
      Default encoding used to read from and write to Message messages.
      See Also:
  • Constructor Details

    • XmppMessageReceiver

      public XmppMessageReceiver()
  • Method Details

    • setConnection

      public void setConnection(org.jivesoftware.smack.tcp.XMPPTCPConnection connection)
      Sets the XMPPConnection to use. Setting this property is required.
    • onActivate

      protected void onActivate() throws org.jivesoftware.smack.XMPPException, IOException, org.jivesoftware.smack.SmackException
      Specified by:
      onActivate in class org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
      Throws:
      org.jivesoftware.smack.XMPPException
      IOException
      org.jivesoftware.smack.SmackException
    • onStart

      protected void onStart()
      Specified by:
      onStart in class org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
    • onStop

      protected void onStop()
      Specified by:
      onStop in class org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
    • onShutdown

      protected void onShutdown()
      Specified by:
      onShutdown in class org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver