Class SimpleActionEndpointMapping
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
org.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping
org.springframework.ws.soap.addressing.server.SimpleActionEndpointMapping
- All Implemented Interfaces:
 org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,EndpointMapping,SoapEndpointMapping
Implementation of the 
EndpointMapping interface to map from WS-Addressing Action Message Addressing
 Property to endpoint beans. Supports both mapping to bean instances and mapping to bean names.
 
 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=getFlightsEndpointThe syntax is WS_ADDRESSING_ACTION=ENDPOINT_BEAN_NAME.
 If set, the address property should be equal to the
 destination property of the
 incominging message. As such, it can be used to create multiple Endpoint References, by defining multiple
 SimpleActionEndpointMapping bean definitions with different address property values.
- Since:
 - 1.5.0
 - Author:
 - Arjen Poutsma
 - See Also:
 
- 
Field Summary
Fields inherited from class org.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping
DEFAULT_FAULT_ACTION_SUFFIX, DEFAULT_OUTPUT_ACTION_SUFFIXFields inherited from class org.springframework.xml.transform.TransformerObjectSupport
loggerFields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidprotected URIgetEndpointAddress(Object endpoint) Returns the address property of the given endpoint.protected voidregisterEndpoints(Map<URI, Object> actionMap) Register all endpoints specified in the action map.voidsetActionMap(Map<?, Object> actionMap) Set a Map with action URIs as keys and handler beans (or handler bean names) as values.voidsetAddress(URI address) Set the address property.voidsetMappings(Properties mappings) Map action URIs to endpoint bean names.Methods inherited from class org.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping
getEndpointInternal, getFaultAction, getFaultActionSuffix, getOutputActionSuffix, getResponseAction, lookupEndpoint, registerEndpoint, setFaultActionSuffix, setOutputActionSuffixMethods inherited from class org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
getApplicationContext, getEndpoint, getMessageIdStrategy, getMessageIdStrategy, getMessageSenders, getMessageSenders, getOrder, initDefaultStrategies, setActorOrRole, setActorsOrRoles, setApplicationContext, setMessageIdStrategy, setMessageSender, setMessageSenders, setOrder, setPostInterceptors, setPreInterceptors, setUltimateReceiver, setVersionsMethods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform 
- 
Constructor Details
- 
SimpleActionEndpointMapping
public SimpleActionEndpointMapping() 
 - 
 - 
Method Details
- 
setMappings
Map action URIs to endpoint bean names. This is the typical way of configuring this EndpointMapping.- Parameters:
 mappings- properties with URLs as keys and bean names as values- Throws:
 URISyntaxException- See Also:
 
 - 
setActionMap
Set a Map with action URIs as keys and handler beans (or handler bean names) as values. Convenient for population with bean references.- Parameters:
 actionMap- map with action URIs as keys and beans as values- Throws:
 URISyntaxException- See Also:
 
 - 
setAddress
Set the address property. If set, value of this property is compared to thedestinationproperty of the incominging message.- Parameters:
 address- the address URI
 - 
afterPropertiesSet
- Specified by:
 afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Overrides:
 afterPropertiesSetin classAbstractAddressingEndpointMapping- Throws:
 Exception
 - 
registerEndpoints
protected void registerEndpoints(Map<URI, Object> actionMap) throws org.springframework.beans.BeansExceptionRegister all endpoints specified in the action map.- Parameters:
 actionMap- Map with action URIs as keys and endppint beans or bean names as values- Throws:
 org.springframework.beans.BeansException- if an endpoint couldn't be registeredIllegalStateException- if there is a conflicting endpoint registered
 - 
getEndpointAddress
Description copied from class:AbstractActionEndpointMappingReturns the address property of the given endpoint. The value of this property should match thedestinationof incoming messages. May returnnullto ignore the destination.- Specified by:
 getEndpointAddressin classAbstractActionEndpointMapping- Parameters:
 endpoint- the endpoint to return the address for- Returns:
 - the endpoint address; or 
nullto ignore the destination property 
 
 -