org.apache.camel.component.spring.ws.bean
Class WSACamelEndpointMapping

java.lang.Object
  extended by org.springframework.xml.transform.TransformerObjectSupport
      extended by org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
          extended by org.apache.camel.component.spring.ws.bean.WSACamelEndpointMapping
All Implemented Interfaces:
CamelSpringWSEndpointMapping, org.springframework.beans.factory.InitializingBean, 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
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
WSACamelEndpointMapping()
           
 
Method Summary
 void addConsumer(EndpointMappingKey key, org.springframework.ws.server.endpoint.MessageEndpoint endpoint)
          Used by Camel Spring Web Services endpoint to register consumers
protected  String getActionCompositeLookupKey(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map)
          Generate a lookupKey for a given WS-Addressing message using action property.
protected  URI getDefaultFaultAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap)
           
protected  URI getDefaultResponseAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap)
           
protected  Object getEndpointInternal(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map)
           
protected  URI getFaultAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap)
          return fault came uri param or default fault action or null
 String getFaultActionSuffix()
          Returns the suffix to add to request Actions for reply fault messages.
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.
protected  org.springframework.ws.transport.WebServiceMessageSender[] getMessageSenders(Object endpoint)
          Configure message sender for wsa:replyTo from a camel route definition.
 String getOutputActionSuffix()
          Returns the suffix to add to request Actions for reply messages.
protected  URI getResponseAction(Object endpoint, org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap)
          Return output camel uri param or default action or null
protected  String getToCompositeLookupKey(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map)
          Generate a lookupKey for a given WS-Addressing message using getTo property.
 void removeConsumer(Object key)
          Used by Camel Spring Web Services endpoint to unregister consumers
 void setFaultActionSuffix(String faultActionSuffix)
          Sets the suffix to add to request Actions for reply fault messages.
 void setOutputActionSuffix(String outputActionSuffix)
          Sets the suffix to add to request Actions for reply messages.
 
Methods inherited from class org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping
afterPropertiesSet, getEndpoint, getMessageIdStrategy, getMessageSenders, getOrder, initDefaultStrategies, setActorOrRole, setActorsOrRoles, setMessageIdStrategy, setMessageSender, setMessageSenders, setOrder, setPostInterceptors, setPreInterceptors, setUltimateReceiver, setVersions
 
Methods inherited from class org.springframework.xml.transform.TransformerObjectSupport
createTransformer, getTransformerFactory, newTransformerFactory, setTransformerFactoryClass, transform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.ws.server.EndpointMapping
getEndpoint
 

Constructor Detail

WSACamelEndpointMapping

public WSACamelEndpointMapping()
Method Detail

getEndpointInternal

protected Object getEndpointInternal(org.springframework.ws.soap.addressing.core.MessageAddressingProperties map)
Specified by:
getEndpointInternal in class org.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 are:

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:

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:
getResponseAction in class org.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:
getMessageSenders in class org.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:
getMessageIdStrategy in class org.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:
getFaultAction in class org.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping

getDefaultResponseAction

protected URI getDefaultResponseAction(Object endpoint,
                                       org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap)

getDefaultFaultAction

protected URI getDefaultFaultAction(Object endpoint,
                                    org.springframework.ws.soap.addressing.core.MessageAddressingProperties requestMap)

addConsumer

public void addConsumer(EndpointMappingKey key,
                        org.springframework.ws.server.endpoint.MessageEndpoint endpoint)
Description copied from interface: CamelSpringWSEndpointMapping
Used by Camel Spring Web Services endpoint to register consumers

Specified by:
addConsumer in interface CamelSpringWSEndpointMapping
Parameters:
key - unique consumer key
endpoint - consumer

removeConsumer

public void removeConsumer(Object key)
Description copied from interface: CamelSpringWSEndpointMapping
Used by Camel Spring Web Services endpoint to unregister consumers

Specified by:
removeConsumer in interface CamelSpringWSEndpointMapping
Parameters:
key - unique consumer key

getOutputActionSuffix

public String getOutputActionSuffix()
Returns the suffix to add to request Actions for reply messages.


setOutputActionSuffix

public void setOutputActionSuffix(String outputActionSuffix)
Sets the suffix to add to request Actions for reply messages.

See Also:
#DEFAULT_OUTPUT_ACTION_SUFFIX

getFaultActionSuffix

public String getFaultActionSuffix()
Returns the suffix to add to request Actions for reply fault messages.


setFaultActionSuffix

public void setFaultActionSuffix(String faultActionSuffix)
Sets the suffix to add to request Actions for reply fault messages.

See Also:
#DEFAULT_FAULT_ACTION_SUFFIX


Apache Camel