Class SoapActionEndpointMapping

java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
All Implemented Interfaces:
org.springframework.beans.factory.Aware, org.springframework.context.ApplicationContextAware, org.springframework.core.Ordered, EndpointMapping, SoapEndpointMapping

public class SoapActionEndpointMapping extends AbstractMapBasedEndpointMapping implements SoapEndpointMapping
Implementation of the EndpointMapping interface to map from SOAPAction headers to endpoint beans. Supports both mapping to bean instances and mapping to bean names: the latter is required for prototype handlers.

The endpointMap property is suitable for populating the endpoint map with bean references, e.g. via the map element in XML bean definitions.

Mappings to bean names can be set via the mappings property, in a form accepted by the java.util.Properties class, like as follows:

 http://www.springframework.org/spring-ws/samples/airline/BookFlight=bookFlightEndpoint
 http://www.springframework.org/spring-ws/samples/airline/GetFlights=getFlightsEndpoint
 
The syntax is SOAP_ACTION=ENDPOINT_BEAN_NAME.

This endpoint mapping does not read from the request message, and therefore is more suitable for message factories which directly read from the transport request (such as the SaajSoapMessageFactory with the payloadCaching disabled).

Since:
1.0.0
Author:
Arjen Poutsma