Class AbstractActionEndpointMapping
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
org.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping
- All Implemented Interfaces:
org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,EndpointMapping,SoapEndpointMapping
- Direct Known Subclasses:
AbstractActionMethodEndpointMapping,SimpleActionEndpointMapping
Abstract base class for WS-Addressing
Action-mapped EndpointMapping
implementations. Provides infrastructure for mapping endpoints to actions.
By default, this mapping creates a Action for reply messages based on the request message, plus the extra
suffix, and a * By default, this mapping creates a Action for reply
messages based on the request message, plus the extra suffix.
- Since:
- 1.5.0
- Author:
- Arjen Poutsma
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe defaults suffix to add to responseActionfor reply messages.static final StringThe defaults suffix to add to the requestActionfor reply messages.Fields 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 TypeMethodDescriptionprotected abstract URIgetEndpointAddress(Object endpoint) Returns the address property of the given endpoint.protected final ObjectLookup an endpoint for the givenMessageAddressingProperties, returningnullif no specific one is found.protected URIgetFaultAction(Object endpoint, MessageAddressingProperties requestMap) Provides the WS-Addressing Action for response fault messages, given the endpoint, and request Message Addressing Properties.Returns the suffix to add to requestActions for reply fault messages.Returns the suffix to add to requestActions for reply messages.protected URIgetResponseAction(Object endpoint, MessageAddressingProperties requestMap) Provides the WS-Addressing Action for response messages, given the endpoint, and request Message Addressing Properties.protected ObjectlookupEndpoint(URI action) Looks up an endpoint instance for the given action.protected voidregisterEndpoint(URI action, Object endpoint) Register the specified endpoint for the given action URI.voidsetFaultActionSuffix(String faultActionSuffix) Sets the suffix to add to requestActions for reply fault messages.voidsetOutputActionSuffix(String outputActionSuffix) Sets the suffix to add to requestActions for reply messages.Methods inherited from class org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
afterPropertiesSet, 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
-
Field Details
-
DEFAULT_OUTPUT_ACTION_SUFFIX
The defaults suffix to add to the requestActionfor reply messages.- See Also:
-
DEFAULT_FAULT_ACTION_SUFFIX
The defaults suffix to add to responseActionfor reply messages.- See Also:
-
-
Constructor Details
-
AbstractActionEndpointMapping
public AbstractActionEndpointMapping()
-
-
Method Details
-
getOutputActionSuffix
Returns the suffix to add to requestActions for reply messages. -
setOutputActionSuffix
Sets the suffix to add to requestActions for reply messages.- See Also:
-
getFaultActionSuffix
Returns the suffix to add to requestActions for reply fault messages. -
setFaultActionSuffix
Sets the suffix to add to requestActions for reply fault messages.- See Also:
-
getEndpointInternal
Description copied from class:AbstractAddressingEndpointMappingLookup an endpoint for the givenMessageAddressingProperties, returningnullif no specific one is found. This template method is called byAbstractAddressingEndpointMapping.getEndpoint(MessageContext).- Specified by:
getEndpointInternalin classAbstractAddressingEndpointMapping- Parameters:
map- the message addressing properties- Returns:
- the endpoint, or
null
-
getEndpointAddress
Returns the address property of the given endpoint. The value of this property should match thedestinationof incoming messages. May returnnullto ignore the destination.- Parameters:
endpoint- the endpoint to return the address for- Returns:
- the endpoint address; or
nullto ignore the destination property
-
lookupEndpoint
Looks up an endpoint instance for the given action. All keys are tried in order.- Parameters:
action- the action URI- Returns:
- the associated endpoint instance, or
nullif not found
-
registerEndpoint
protected void registerEndpoint(URI action, Object endpoint) throws org.springframework.beans.BeansException, IllegalStateException Register the specified endpoint for the given action URI.- Parameters:
action- the action the bean should be mapped toendpoint- the endpoint instance or endpoint bean name String (a bean name will automatically be resolved into the corresponding endpoint bean)- Throws:
org.springframework.beans.BeansException- if the endpoint couldn't be registeredIllegalStateException- if there is a conflicting endpoint registered
-
getResponseAction
Description copied from class:AbstractAddressingEndpointMappingProvides the WS-Addressing Action for response messages, given the endpoint, and request Message Addressing Properties.- Specified by:
getResponseActionin classAbstractAddressingEndpointMapping- Parameters:
endpoint- the mapped endpointrequestMap- the MAP for the request- Returns:
- the response Action
-
getFaultAction
Description copied from class:AbstractAddressingEndpointMappingProvides the WS-Addressing Action for response fault messages, given the endpoint, and request Message Addressing Properties.- Specified by:
getFaultActionin classAbstractAddressingEndpointMapping- Parameters:
endpoint- the mapped endpointrequestMap- the MAP for the request- Returns:
- the response Action
-