Class WSACamelEndpointMapping
java.lang.Object
org.springframework.xml.transform.TransformerObjectSupport
org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
org.apache.camel.component.spring.ws.bean.WSACamelEndpointMapping
- All Implemented Interfaces:
CamelSpringWSEndpointMapping,org.springframework.beans.factory.Aware,org.springframework.beans.factory.InitializingBean,org.springframework.context.ApplicationContextAware,org.springframework.core.Ordered,org.springframework.ws.server.EndpointMapping,org.springframework.ws.soap.server.SoapEndpointMapping
public class WSACamelEndpointMapping
extends org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
implements CamelSpringWSEndpointMapping
Provides support for full WS-Addressing. Supported are faultAction and response action. For more details look at @see
AbstractAddressingEndpointMapping. Implementation of the
EndpointMapping consumer interface that uses the camel uri to map to a
WS-Addressing Action header.
-
Field Summary
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 TypeMethodDescriptionvoidaddConsumer(EndpointMappingKey key, org.springframework.ws.server.endpoint.MessageEndpoint endpoint) Used by Camel Spring Web Services endpoint to register consumersprotected StringgetActionCompositeLookupKey(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map) Generate a lookupKey for a given WS-Addressing message using action property.protected URIgetDefaultFaultAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap) protected URIgetDefaultResponseAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap) protected ObjectgetEndpointInternal(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map) protected URIgetFaultAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap) return fault came uri param or default fault action or nullReturns the suffix to add to requestActions for reply fault messages.protected org.springframework.ws.soap.addressing.messageid.MessageIdStrategygetMessageIdStrategy(Object endpoint) Configure message id strategy for wsa:replyTo The route definition has priority over this endpoint.protected org.springframework.ws.transport.WebServiceMessageSender[]getMessageSenders(Object endpoint) Configure message sender for wsa:replyTo from a camel route definition.Returns the suffix to add to requestActions for reply messages.protected URIgetResponseAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap) Return output camel uri param or default action or nullprotected StringgetToCompositeLookupKey(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map) Generate a lookupKey for a given WS-Addressing message using getTo property.voidremoveConsumer(Object key) Used by Camel Spring Web Services endpoint to unregister consumersvoidsetFaultActionSuffix(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, 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, transformMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.ws.server.EndpointMapping
getEndpoint
-
Constructor Details
-
WSACamelEndpointMapping
public WSACamelEndpointMapping()
-
-
Method Details
-
getEndpointInternal
protected Object getEndpointInternal(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map) - Specified by:
getEndpointInternalin classorg.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
-
getActionCompositeLookupKey
protected String getActionCompositeLookupKey(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map) Generate a lookupKey for a given WS-Addressing message using action property. The possible combination is:- wsaAction
- wsaAction:wsaGetTo
- Parameters:
map-- Returns:
-
getToCompositeLookupKey
protected String getToCompositeLookupKey(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map) Generate a lookupKey for a given WS-Addressing message using getTo property. The possible combination are:- wsaGetTo
- wsaGetTo:wsaAction
- Parameters:
map-- Returns:
-
getResponseAction
protected URI getResponseAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap) Return output camel uri param or default action or null- Specified by:
getResponseActionin classorg.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
-
getMessageSenders
protected org.springframework.ws.transport.WebServiceMessageSender[] getMessageSenders(Object endpoint) Configure message sender for wsa:replyTo from a camel route definition. The route definition has priority over this endpoint.- Overrides:
getMessageSendersin classorg.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
-
getMessageIdStrategy
protected org.springframework.ws.soap.addressing.messageid.MessageIdStrategy getMessageIdStrategy(Object endpoint) Configure message id strategy for wsa:replyTo The route definition has priority over this endpoint.- Overrides:
getMessageIdStrategyin classorg.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
-
getFaultAction
protected URI getFaultAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap) return fault came uri param or default fault action or null- Specified by:
getFaultActionin classorg.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
-
getDefaultResponseAction
-
getDefaultFaultAction
-
addConsumer
public void addConsumer(EndpointMappingKey key, org.springframework.ws.server.endpoint.MessageEndpoint endpoint) Description copied from interface:CamelSpringWSEndpointMappingUsed by Camel Spring Web Services endpoint to register consumers- Specified by:
addConsumerin interfaceCamelSpringWSEndpointMapping- Parameters:
key- unique consumer keyendpoint- consumer
-
removeConsumer
Description copied from interface:CamelSpringWSEndpointMappingUsed by Camel Spring Web Services endpoint to unregister consumers- Specified by:
removeConsumerin interfaceCamelSpringWSEndpointMapping- Parameters:
key- unique consumer key
-
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:
-