Class CamelEndpointMapping
java.lang.Object
org.springframework.context.support.ApplicationObjectSupport
org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
org.apache.camel.component.spring.ws.bean.CamelEndpointMapping
- All Implemented Interfaces:
org.apache.camel.CamelContextAware,CamelSpringWSEndpointMapping,org.apache.camel.spi.HasCamelContext,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, org.apache.camel.CamelContextAware
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:
- spring-ws:rootqname:
Equivalent to endpoint mappings specified throughPayloadRootQNameEndpointMapping - spring-ws:soapaction:
Equivalent to endpoint mappings specified throughSoapActionEndpointMapping - spring-ws:uri:
Equivalent to endpoint mappings specified throughUriEndpointMapping - spring-ws:xpathresult:
Equivalent to endpoint mappings specified throughXPathPayloadEndpointMapping
- See Also:
-
Field Summary
Fields inherited from class org.springframework.context.support.ApplicationObjectSupport
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 consumersvoidprotected final org.springframework.ws.server.EndpointInvocationChaincreateEndpointInvocationChain(org.springframework.ws.context.MessageContext messageContext, Object endpoint, org.springframework.ws.server.EndpointInterceptor[] interceptors) org.apache.camel.CamelContextprotected ObjectgetEndpointInternal(org.springframework.ws.context.MessageContext messageContext) Gets the configured TransformerFactoryvoidremoveConsumer(Object key) Used by Camel Spring Web Services endpoint to unregister consumersfinal voidsetActorOrRole(String actorOrRole) final voidsetActorsOrRoles(String[] actorsOrRoles) voidsetCamelContext(org.apache.camel.CamelContext camelContext) voidsetTransformerFactory(TransformerFactory transformerFactory) Optional setter to override default TransformerFactoryfinal voidsetUltimateReceiver(boolean ultimateReceiver) Methods inherited from class org.springframework.ws.server.endpoint.mapping.AbstractEndpointMapping
getDefaultEndpoint, getEndpoint, getInterceptors, getOrder, initApplicationContext, initInterceptors, resolveStringEndpoint, setDefaultEndpoint, setInterceptors, setOrderMethods inherited from class org.springframework.context.support.ApplicationObjectSupport
getApplicationContext, getMessageSourceAccessor, initApplicationContext, isContextRequired, obtainApplicationContext, requiredContextClass, setApplicationContextMethods 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
-
CamelEndpointMapping
public CamelEndpointMapping()
-
-
Method Details
-
getCamelContext
public org.apache.camel.CamelContext getCamelContext()- Specified by:
getCamelContextin interfaceorg.apache.camel.spi.HasCamelContext
-
setCamelContext
public void setCamelContext(org.apache.camel.CamelContext camelContext) - Specified by:
setCamelContextin interfaceorg.apache.camel.CamelContextAware
-
getEndpointInternal
protected Object getEndpointInternal(org.springframework.ws.context.MessageContext messageContext) throws Exception - Specified by:
getEndpointInternalin classorg.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:
createEndpointInvocationChainin classorg.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:
addConsumerin interfaceCamelSpringWSEndpointMapping- Parameters:
key- unique consumer keyendpoint- consumer
-
removeConsumer
Used by Camel Spring Web Services endpoint to unregister consumers- Specified by:
removeConsumerin interfaceCamelSpringWSEndpointMapping- Parameters:
key- unique consumer key
-
getTransformerFactory
Gets the configured TransformerFactory -
setTransformerFactory
Optional setter to override default TransformerFactory -
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceorg.springframework.beans.factory.InitializingBean- Throws:
Exception
-
setActorOrRole
- Specified by:
setActorOrRolein interfaceorg.springframework.ws.soap.server.SoapEndpointMapping
-
setActorsOrRoles
- Specified by:
setActorsOrRolesin interfaceorg.springframework.ws.soap.server.SoapEndpointMapping
-
setUltimateReceiver
public final void setUltimateReceiver(boolean ultimateReceiver) - Specified by:
setUltimateReceiverin interfaceorg.springframework.ws.soap.server.SoapEndpointMapping
-