Spring Web Services Framework

org.springframework.ws.transport.support
Class WebServiceMessageReceiverObjectSupport

java.lang.Object
  extended by org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
All Implemented Interfaces:
InitializingBean
Direct Known Subclasses:
SimpleWebServiceMessageReceiverObjectSupport, WebServiceMessageReceiverHandlerAdapter

public abstract class WebServiceMessageReceiverObjectSupport
extends Object
implements InitializingBean

Convenience base class for server-side transport objects. Contains a WebServiceMessageFactory, and has methods for handling incoming WebServiceConnections.

Since:
1.0.0
Author:
Arjen Poutsma
See Also:
handleConnection(org.springframework.ws.transport.WebServiceConnection, org.springframework.ws.transport.WebServiceMessageReceiver)

Field Summary
protected  Log logger
          Logger available to subclasses.
 
Constructor Summary
WebServiceMessageReceiverObjectSupport()
           
 
Method Summary
 void afterPropertiesSet()
           
 WebServiceMessageFactory getMessageFactory()
          Returns the WebServiceMessageFactory.
protected  void handleConnection(WebServiceConnection connection, WebServiceMessageReceiver receiver)
          Handles an incoming connection by receving a message from it, passing it to the receiver, and sending the response (if any).
 void setMessageFactory(WebServiceMessageFactory messageFactory)
          Sets the WebServiceMessageFactory.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

logger

protected final Log logger
Logger available to subclasses.

Constructor Detail

WebServiceMessageReceiverObjectSupport

public WebServiceMessageReceiverObjectSupport()
Method Detail

getMessageFactory

public WebServiceMessageFactory getMessageFactory()
Returns the WebServiceMessageFactory.


setMessageFactory

public void setMessageFactory(WebServiceMessageFactory messageFactory)
Sets the WebServiceMessageFactory.


afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface InitializingBean
Throws:
Exception

handleConnection

protected final void handleConnection(WebServiceConnection connection,
                                      WebServiceMessageReceiver receiver)
                               throws Exception
Handles an incoming connection by receving a message from it, passing it to the receiver, and sending the response (if any).

Stores the given connection in the TransportContext.

Parameters:
connection - the incoming connection
receiver - the handler of the message, typically a MessageDispatcher
Throws:
Exception

Spring Web Services Framework

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