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

java.lang.Object
  extended by org.springframework.context.support.ApplicationObjectSupport
      extended by org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
          extended by org.apache.camel.component.spring.ws.bean.CamelEndpointMapping
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 CamelEndpointMapping
extends org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
implements org.springframework.beans.factory.InitializingBean, CamelSpringWSEndpointMapping, org.springframework.ws.soap.server.SoapEndpointMapping

Spring EndpointMapping for mapping messages to corresponding Camel endpoints. This class needs to be registered in the Spring ApplicationContext when consuming messages using any of the following URI schemes:

See Also:
AbstractEndpointMapping, PayloadRootQNameEndpointMapping, UriEndpointMapping, XPathPayloadEndpointMapping, org.springframework.ws.soap.server.endpoint.mapping.SoapActionEndpointMapping

Field Summary
 
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
logger
 
Fields inherited from interface org.springframework.core.Ordered
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
 
Constructor Summary
CamelEndpointMapping()
           
 
Method Summary
 void addConsumer(EndpointMappingKey key, org.springframework.ws.server.endpoint.MessageEndpoint endpoint)
          Used by Camel Spring Web Services endpoint to register consumers
 void afterPropertiesSet()
           
protected  org.springframework.ws.server.EndpointInvocationChain createEndpointInvocationChain(org.springframework.ws.context.MessageContext messageContext, Object endpoint, org.springframework.ws.server.EndpointInterceptor[] interceptors)
           
protected  Object getEndpointInternal(org.springframework.ws.context.MessageContext messageContext)
           
 TransformerFactory getTransformerFactory()
          Gets the configured TransformerFactory
 void removeConsumer(Object key)
          Used by Camel Spring Web Services endpoint to unregister consumers
 void setActorOrRole(String actorOrRole)
           
 void setActorsOrRoles(String[] actorsOrRoles)
           
 void setTransformerFactory(TransformerFactory transformerFactory)
          Optional setter to override default TransformerFactory
 void setUltimateReceiver(boolean ultimateReceiver)
           
 
Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initApplicationContext, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrder
 
Methods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, requiredContextClass, setApplicationContext
 
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

CamelEndpointMapping

public CamelEndpointMapping()
Method Detail

getEndpointInternal

protected Object getEndpointInternal(org.springframework.ws.context.MessageContext messageContext)
                              throws Exception
Specified by:
getEndpointInternal in class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
Throws:
Exception

createEndpointInvocationChain

protected final org.springframework.ws.server.EndpointInvocationChain createEndpointInvocationChain(org.springframework.ws.context.MessageContext messageContext,
                                                                                                    Object endpoint,
                                                                                                    org.springframework.ws.server.EndpointInterceptor[] interceptors)
Overrides:
createEndpointInvocationChain in class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping

addConsumer

public void addConsumer(EndpointMappingKey key,
                        org.springframework.ws.server.endpoint.MessageEndpoint endpoint)
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)
Used by Camel Spring Web Services endpoint to unregister consumers

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

getTransformerFactory

public TransformerFactory getTransformerFactory()
Gets the configured TransformerFactory

Returns:
instance of TransformerFactory

setTransformerFactory

public void setTransformerFactory(TransformerFactory transformerFactory)
Optional setter to override default TransformerFactory

Parameters:
transformerFactory - non-default TransformerFactory

afterPropertiesSet

public void afterPropertiesSet()
                        throws Exception
Specified by:
afterPropertiesSet in interface org.springframework.beans.factory.InitializingBean
Throws:
Exception

setActorOrRole

public final void setActorOrRole(String actorOrRole)
Specified by:
setActorOrRole in interface org.springframework.ws.soap.server.SoapEndpointMapping
Parameters:
actorOrRole -
See Also:
AbstractAddressingEndpointMapping}

setActorsOrRoles

public final void setActorsOrRoles(String[] actorsOrRoles)
Specified by:
setActorsOrRoles in interface org.springframework.ws.soap.server.SoapEndpointMapping
Parameters:
actorsOrRoles -
See Also:
AbstractAddressingEndpointMapping}

setUltimateReceiver

public final void setUltimateReceiver(boolean ultimateReceiver)
Specified by:
setUltimateReceiver in interface org.springframework.ws.soap.server.SoapEndpointMapping
Parameters:
ultimateReceiver -
See Also:
AbstractAddressingEndpointMapping}


Apache Camel