public class SimpleActionEndpointMapping extends AbstractActionEndpointMapping
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.
MessageAddressingProperties.getAction()DEFAULT_FAULT_ACTION_SUFFIX, DEFAULT_OUTPUT_ACTION_SUFFIXloggerHIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description |
|---|
SimpleActionEndpointMapping() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
protected URI |
getEndpointAddress(Object endpoint)
Returns the address property of the given endpoint.
|
protected void |
registerEndpoints(Map<URI,Object> actionMap)
Register all endpoints specified in the action map.
|
void |
setActionMap(Map<?,Object> actionMap)
Set a Map with action URIs as keys and handler beans (or handler bean names) as values.
|
void |
setAddress(URI address)
Set the address property.
|
void |
setMappings(Properties mappings)
Map action URIs to endpoint bean names.
|
getEndpointInternal, getFaultAction, getFaultActionSuffix, getOutputActionSuffix, getResponseAction, lookupEndpoint, registerEndpoint, setFaultActionSuffix, setOutputActionSuffixgetApplicationContext, getEndpoint, getMessageIdStrategy, getMessageIdStrategy, getMessageSenders, getMessageSenders, getOrder, initDefaultStrategies, setActorOrRole, setActorsOrRoles, setApplicationContext, setMessageIdStrategy, setMessageSender, setMessageSenders, setOrder, setPostInterceptors, setPreInterceptors, setUltimateReceiver, setVersionscreateTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transformpublic void setMappings(Properties mappings) throws URISyntaxException
mappings - properties with URLs as keys and bean names as valuesURISyntaxExceptionsetActionMap(java.util.Map)public void setActionMap(Map<?,Object> actionMap) throws URISyntaxException
actionMap - map with action URIs as keys and beans as valuesURISyntaxExceptionsetMappings(java.util.Properties)public void setAddress(URI address)
destination property of the
incominging message.address - the address URIpublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanafterPropertiesSet in class AbstractAddressingEndpointMappingExceptionprotected void registerEndpoints(Map<URI,Object> actionMap) throws BeansException
actionMap - Map with action URIs as keys and endppint beans or bean names as valuesBeansException - if an endpoint couldn't be registeredIllegalStateException - if there is a conflicting endpoint registeredprotected URI getEndpointAddress(Object endpoint)
AbstractActionEndpointMappingdestination of incoming messages. May return null to ignore
the destination.getEndpointAddress in class AbstractActionEndpointMappingendpoint - the endpoint to return the address fornull to ignore the destination property