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_SUFFIX
logger
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, setOutputActionSuffix
getApplicationContext, getEndpoint, getMessageIdStrategy, getMessageIdStrategy, getMessageSenders, getMessageSenders, getOrder, initDefaultStrategies, setActorOrRole, setActorsOrRoles, setApplicationContext, setMessageIdStrategy, setMessageSender, setMessageSenders, setOrder, setPostInterceptors, setPreInterceptors, setUltimateReceiver, setVersions
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
public void setMappings(Properties mappings) throws URISyntaxException
mappings
- properties with URLs as keys and bean names as valuesURISyntaxException
setActionMap(java.util.Map)
public void setActionMap(Map<?,Object> actionMap) throws URISyntaxException
actionMap
- map with action URIs as keys and beans as valuesURISyntaxException
setMappings(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 org.springframework.beans.factory.InitializingBean
afterPropertiesSet
in class AbstractAddressingEndpointMapping
Exception
protected void registerEndpoints(Map<URI,Object> actionMap) throws org.springframework.beans.BeansException
actionMap
- Map with action URIs as keys and endppint beans or bean names as valuesorg.springframework.beans.BeansException
- if an endpoint couldn't be registeredIllegalStateException
- if there is a conflicting endpoint registeredprotected URI getEndpointAddress(Object endpoint)
AbstractActionEndpointMapping
destination
of incoming messages. May return null
to ignore
the destination.getEndpointAddress
in class AbstractActionEndpointMapping
endpoint
- the endpoint to return the address fornull
to ignore the destination propertyCopyright © 2020 Pivotal Software. All rights reserved.