MessageDispatcherServlet extends FrameworkServlet { protected WebServiceMessageReceiver getMessageReceiver() { return messageReceiver; } MessageDispatcherServlet();  MessageDispatcherServlet(WebApplicationContext webApplicationContext); String getMessageFactoryBeanName(); void setMessageFactoryBeanName(String messageFactoryBeanName); String getMessageReceiverBeanName(); void setMessageReceiverBeanName(String messageReceiverBeanName); boolean isTransformWsdlLocations(); void setTransformWsdlLocations(boolean transformWsdlLocations); boolean isTransformSchemaLocations(); void setTransformSchemaLocations(boolean transformSchemaLocations); String getMessageReceiverHandlerAdapterBeanName(); void setMessageReceiverHandlerAdapterBeanName(String messageReceiverHandlerAdapterBeanName); String getWsdlDefinitionHandlerAdapterBeanName(); void setWsdlDefinitionHandlerAdapterBeanName(String wsdlDefinitionHandlerAdapterBeanName); String getXsdSchemaHandlerAdapterBeanName(); void setXsdSchemaHandlerAdapterBeanName(String xsdSchemaHandlerAdapterBeanName); static final String DEFAULT_MESSAGE_FACTORY_BEAN_NAME; static final String DEFAULT_MESSAGE_RECEIVER_BEAN_NAME; static final String DEFAULT_MESSAGE_RECEIVER_HANDLER_ADAPTER_BEAN_NAME; static final String DEFAULT_WSDL_DEFINITION_HANDLER_ADAPTER_BEAN_NAME; static final String DEFAULT_XSD_SCHEMA_HANDLER_ADAPTER_BEAN_NAME; }
@Test public void testDefaultStrategies() throws ServletException { servlet.setContextClass(StaticWebApplicationContext.class); servlet.init(config); MessageDispatcher messageDispatcher = (MessageDispatcher) servlet.getMessageReceiver(); Assert.assertNotNull("No messageDispatcher created", messageDispatcher); }
@Test public void testDetectedStrategies() throws ServletException { servlet.setContextClass(DetectWebApplicationContext.class); servlet.init(config); MessageDispatcher messageDispatcher = (MessageDispatcher) servlet.getMessageReceiver(); Assert.assertNotNull("No messageDispatcher created", messageDispatcher); assertStrategies(PayloadRootQNameEndpointMapping.class, messageDispatcher.getEndpointMappings()); assertStrategies(PayloadEndpointAdapter.class, messageDispatcher.getEndpointAdapters()); assertStrategies(SimpleSoapExceptionResolver.class, messageDispatcher.getEndpointExceptionResolvers()); }