public abstract class WebServiceMessageReceiverObjectSupport extends Object implements InitializingBean
WebServiceMessageFactory, and has
methods for handling incoming WebServiceConnections.handleConnection(org.springframework.ws.transport.WebServiceConnection, org.springframework.ws.transport.WebServiceMessageReceiver)| Modifier and Type | Field and Description |
|---|---|
protected org.apache.commons.logging.Log |
logger
Logger available to subclasses.
|
| Constructor and Description |
|---|
WebServiceMessageReceiverObjectSupport() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
WebServiceMessageFactory |
getMessageFactory()
Returns the
WebServiceMessageFactory. |
protected void |
handleConnection(WebServiceConnection connection,
WebServiceMessageReceiver receiver)
|
protected void |
handleNoEndpointFoundException(NoEndpointFoundException ex,
WebServiceConnection connection,
WebServiceMessageReceiver receiver)
Template method for handling
NoEndpointFoundExceptions. |
void |
setMessageFactory(WebServiceMessageFactory messageFactory)
Sets the
WebServiceMessageFactory. |
protected final org.apache.commons.logging.Log logger
public WebServiceMessageReceiverObjectSupport()
public WebServiceMessageFactory getMessageFactory()
WebServiceMessageFactory.public void setMessageFactory(WebServiceMessageFactory messageFactory)
WebServiceMessageFactory.public void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionprotected final void handleConnection(WebServiceConnection connection, WebServiceMessageReceiver receiver) throws Exception
receving a
message from it, passing it to the receiver, and sending the response (if any).
Stores the given connection in the TransportContext.
connection - the incoming connectionreceiver - the handler of the message, typically a MessageDispatcherExceptionprotected void handleNoEndpointFoundException(NoEndpointFoundException ex, WebServiceConnection connection, WebServiceMessageReceiver receiver) throws Exception
NoEndpointFoundExceptions.
Default implementation calls
EndpointAwareWebServiceConnection.endpointNotFound() on the given
connection, if possible.
ex - the NoEndpointFoundExceptionconnection - the current WebServiceConnectionreceiver - the WebServiceMessageReceiverException - in case of errors