public abstract class WebServiceMessageReceiverObjectSupport extends Object implements InitializingBean
WebServiceMessageFactory
, and has
methods for handling incoming WebServiceConnection
s.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
NoEndpointFoundException s. |
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 InitializingBean
Exception
protected 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 MessageDispatcher
Exception
protected void handleNoEndpointFoundException(NoEndpointFoundException ex, WebServiceConnection connection, WebServiceMessageReceiver receiver) throws Exception
NoEndpointFoundException
s.
Default implementation calls
EndpointAwareWebServiceConnection.endpointNotFound()
on the given
connection, if possible.
ex
- the NoEndpointFoundException
connection
- the current WebServiceConnection
receiver
- the WebServiceMessageReceiver
Exception
- in case of errors