Class WebServiceMessageReceiverObjectSupport
java.lang.Object
org.springframework.ws.transport.support.WebServiceMessageReceiverObjectSupport
- All Implemented Interfaces:
org.springframework.beans.factory.InitializingBean
- Direct Known Subclasses:
SimpleWebServiceMessageReceiverObjectSupport
,WebServiceMessageReceiverHandlerAdapter
public abstract class WebServiceMessageReceiverObjectSupport
extends Object
implements org.springframework.beans.factory.InitializingBean
Convenience base class for server-side transport objects. Contains a
WebServiceMessageFactory
, and has
methods for handling incoming WebServiceConnection
s.- Since:
- 1.0.0
- Author:
- Arjen Poutsma
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected final org.apache.commons.logging.Log
Logger available to subclasses. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Returns theWebServiceMessageFactory
.protected final void
handleConnection
(WebServiceConnection connection, WebServiceMessageReceiver receiver) protected void
handleNoEndpointFoundException
(NoEndpointFoundException ex, WebServiceConnection connection, WebServiceMessageReceiver receiver) Template method for handlingNoEndpointFoundException
s.void
setMessageFactory
(WebServiceMessageFactory messageFactory) Sets theWebServiceMessageFactory
.
-
Field Details
-
logger
protected final org.apache.commons.logging.Log loggerLogger available to subclasses.
-
-
Constructor Details
-
WebServiceMessageReceiverObjectSupport
public WebServiceMessageReceiverObjectSupport()
-
-
Method Details
-
getMessageFactory
Returns theWebServiceMessageFactory
. -
setMessageFactory
Sets theWebServiceMessageFactory
. -
afterPropertiesSet
- Specified by:
afterPropertiesSet
in interfaceorg.springframework.beans.factory.InitializingBean
- Throws:
Exception
-
handleConnection
protected final void handleConnection(WebServiceConnection connection, WebServiceMessageReceiver receiver) throws Exception Handles an incoming connection byreceving
a message from it, passing it to thereceiver
, andsending
the response (if any).Stores the given connection in the
TransportContext
.- Parameters:
connection
- the incoming connectionreceiver
- the handler of the message, typically aMessageDispatcher
- Throws:
Exception
-
handleNoEndpointFoundException
protected void handleNoEndpointFoundException(NoEndpointFoundException ex, WebServiceConnection connection, WebServiceMessageReceiver receiver) throws Exception Template method for handlingNoEndpointFoundException
s.Default implementation calls
EndpointAwareWebServiceConnection.endpointNotFound()
on the given connection, if possible.- Parameters:
ex
- theNoEndpointFoundException
connection
- the currentWebServiceConnection
receiver
- theWebServiceMessageReceiver
- Throws:
Exception
- in case of errors
-