Spring Web Services Framework

org.springframework.ws.transport.xmpp
Class XmppMessageReceiver

java.lang.Object
  extended by org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
      extended by org.springframework.ws.transport.support.SimpleWebServiceMessageReceiverObjectSupport
          extended by org.springframework.ws.transport.support.AbstractStandaloneMessageReceiver
              extended by org.springframework.ws.transport.xmpp.XmppMessageReceiver
All Implemented Interfaces:
DisposableBean, InitializingBean, Lifecycle

public class XmppMessageReceiver
extends AbstractStandaloneMessageReceiver

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
See Also:
XmppConnectionFactoryBean

Field Summary
static String DEFAULT_MESSAGE_ENCODING
          Default encoding used to read from and write to Message messages.
 
Fields inherited from class org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
logger
 
Constructor Summary
XmppMessageReceiver()
           
 
Method Summary
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.XMPPConnection 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, setMessageFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_MESSAGE_ENCODING

public static final String DEFAULT_MESSAGE_ENCODING
Default encoding used to read from and write to Message messages.

See Also:
Constant Field Values
Constructor Detail

XmppMessageReceiver

public XmppMessageReceiver()
Method Detail

setConnection

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


onActivate

protected void onActivate()
                   throws org.jivesoftware.smack.XMPPException
Description copied from class: AbstractStandaloneMessageReceiver
Template method invoked when AbstractStandaloneMessageReceiver.activate() is invoked.

Specified by:
onActivate in class AbstractStandaloneMessageReceiver
Throws:
org.jivesoftware.smack.XMPPException

onStart

protected void onStart()
Description copied from class: AbstractStandaloneMessageReceiver
Template method invoked when AbstractStandaloneMessageReceiver.start() is invoked.

Specified by:
onStart in class AbstractStandaloneMessageReceiver

onStop

protected void onStop()
Description copied from class: AbstractStandaloneMessageReceiver
Template method invoked when AbstractStandaloneMessageReceiver.stop() is invoked.

Specified by:
onStop in class AbstractStandaloneMessageReceiver

onShutdown

protected void onShutdown()
Description copied from class: AbstractStandaloneMessageReceiver
Template method invoked when AbstractStandaloneMessageReceiver.shutdown() is invoked.

Specified by:
onShutdown in class AbstractStandaloneMessageReceiver

Spring Web Services Framework

Copyright © 2005-2013 The Spring Web Services Framework. All Rights Reserved.