| java.lang.Object org.springframework.ws.server.MessageDispatcher
All known Subclasses: org.springframework.ws.soap.server.SoapMessageDispatcher,
MessageDispatcher | public class MessageDispatcher implements WebServiceMessageReceiver,BeanNameAware,ApplicationContextAware(Code) | | Central dispatcher for use within Spring-WS, dispatching Web service messages to registered endpoints.
This dispatcher is quite similar to Spring MVCs
DispatcherServlet . Just like its counterpart, this dispatcher
is very flexible. This class is SOAP agnostic; in typical SOAP Web Services, the
SoapMessageDispatcher subclass is used.
author: Arjen Poutsma See Also: EndpointMapping See Also: EndpointAdapter See Also: EndpointExceptionResolver See Also: org.springframework.web.servlet.DispatcherServlet since: 1.0.0 |
Constructor Summary | |
public | MessageDispatcher() Initializes a new instance of the MessageDispatcher . |
ENDPOINT_NOT_FOUND_LOG_CATEGORY | final public static String ENDPOINT_NOT_FOUND_LOG_CATEGORY(Code) | | Log category to use when no mapped endpoint is found for a request.
|
endpointNotFoundLogger | final protected static Log endpointNotFoundLogger(Code) | | Additional logger to use when no mapped endpoint is found for a request.
|
logger | final protected Log logger(Code) | | Logger available to subclasses.
|
MessageDispatcher | public MessageDispatcher()(Code) | | Initializes a new instance of the MessageDispatcher .
|
getEndpoint | protected EndpointInvocationChain getEndpoint(MessageContext messageContext) throws Exception(Code) | | Returns the endpoint for this request. All endpoint mappings are tried, in order.
the EndpointInvocationChain , or null if no endpoint could be found. |
getEndpointAdapter | protected EndpointAdapter getEndpointAdapter(Object endpoint)(Code) | | Returns the EndpointAdapter for the given endpoint.
Parameters: endpoint - the endpoint to find an adapter for the adapter |
getEndpointAdapters | public List getEndpointAdapters()(Code) | | Returns the EndpointAdapter s to use by this MessageDispatcher .
|
getEndpointExceptionResolvers | public List getEndpointExceptionResolvers()(Code) | | Returns the EndpointExceptionResolver s to use by this MessageDispatcher .
|
getEndpointMappings | public List getEndpointMappings()(Code) | | Returns the EndpointMapping s to use by this MessageDispatcher .
|
handleRequest | protected boolean handleRequest(EndpointInvocationChain mappedEndpoint, MessageContext messageContext)(Code) | | Callback for pre-processing of given invocation chain and message context. Gets called before invocation of
handleRequest on the interceptors.
Default implementation does nothing, and returns true .
Parameters: mappedEndpoint - the mapped EndpointInvocationChain Parameters: messageContext - the message context true if processing should continue; false otherwise |
processEndpointException | protected void processEndpointException(MessageContext messageContext, Object endpoint, Exception ex) throws Exception(Code) | | Determine an error SOAPMessage respone via the registered EndpointExceptionResolvers .
Most likely, the response contains a SOAPFault . If no suitable resolver was found, the exception is
rethrown.
Parameters: messageContext - current SOAPMessage request Parameters: endpoint - the executed endpoint, or null if none chosen at the time of the exception Parameters: ex - the exception that got thrown during handler execution throws: Exception - if no suitable resolver is found |
setApplicationContext | public void setApplicationContext(ApplicationContext applicationContext) throws BeansException(Code) | | |
setBeanName | final public void setBeanName(String beanName)(Code) | | |
setEndpointAdapters | public void setEndpointAdapters(List endpointAdapters)(Code) | | Sets the EndpointAdapter s to use by this MessageDispatcher .
|
setEndpointExceptionResolvers | public void setEndpointExceptionResolvers(List endpointExceptionResolvers)(Code) | | Sets the EndpointExceptionResolver s to use by this MessageDispatcher .
|
setEndpointMappings | public void setEndpointMappings(List endpointMappings)(Code) | | Sets the EndpointMapping s to use by this MessageDispatcher .
|
|
|