Class SoapOperationInboundConnectorBase<T>
java.lang.Object
one.x1f.sip.foundation.core.declarative.connector.ConnectorBase
one.x1f.sip.foundation.core.declarative.connector.InboundConnectorBase
one.x1f.sip.foundation.core.declarative.connector.GenericInboundConnectorBase
one.x1f.sip.foundation.soap.declarative.connector.SoapOperationInboundConnectorBase<T>
- Type Parameters:
T
- Service interface type
- All Implemented Interfaces:
ConnectorDefinition
,InboundConnectorDefinition<org.apache.camel.model.RoutesDefinition>
,DeclarativeElement
,Orchestratable<ConnectorOrchestrationInfo>
,IntegrationScenarioProviderDefinition
,org.springframework.beans.factory.Aware
,org.springframework.context.ApplicationContextAware
Base class for SOAP inbound connectors.
This class allows to bind one operation of a SOAP service interface to the integration scenario of the connector.
SIP will automatically create a SOAP service for the provided service interface and initiate a route that will invoke this connector only if the specified operation/method is called. It is possible to create multiple connectors that use the same service interface. However, no more than one connector can be specified for the same service and operation pair.
The base implementation will bind JAXB marshallers automatically.
In standard cases, adapter developers need only to implement getServiceInterfaceClass()
and getServiceOperationName()
.
-
Nested Class Summary
Nested classes/interfaces inherited from interface one.x1f.sip.foundation.core.declarative.connector.ConnectorDefinition
ConnectorDefinition.None
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final org.apache.camel.builder.EndpointConsumerBuilder
Defines the initiating endpoint for this connector.protected Optional<UnmarshallerDefinition>
Handle meant to be overloaded if the definition of an unmarshaller for the request type is needed.protected Optional<MarshallerDefinition>
Handle meant to be overloaded if the definition of a marshaller for the response type is needed.protected org.apache.camel.converter.jaxb.JaxbDataFormat
protected String
Returns the JAXB context path for the request model.Returns the JAXB context path for the response model.Returns the service interface classabstract String
Returns the name of the operation that should be bound to the connector/integration scenariofinal org.apache.camel.builder.endpoint.dsl.DirectEndpointBuilderFactory.DirectEndpointBuilder
Returns the endpoint used for this operation of the SOAP serviceMethods inherited from class one.x1f.sip.foundation.core.declarative.connector.GenericInboundConnectorBase
defineInboundEndpoints, getEndpointDefinitionTypeClass
Methods inherited from class one.x1f.sip.foundation.core.declarative.connector.InboundConnectorBase
getConnectorGroupId, getId, getPathToDocumentationResource, getRequestModelClass, getResponseModelClass, getScenarioId
Methods inherited from class one.x1f.sip.foundation.core.declarative.connector.ConnectorBase
defineTransformationOrchestrator, getConfigurationIds, getOnExceptionHandler, getOrchestrator, getScenario, setApplicationContext
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface one.x1f.sip.foundation.core.declarative.connector.ConnectorDefinition
getConfigurationIds, getConnectorGroupId, getOnExceptionHandler, getRequestModelClass, getResponseModelClass
Methods inherited from interface one.x1f.sip.foundation.core.declarative.DeclarativeElement
getId, getPathToDocumentationResource
Methods inherited from interface one.x1f.sip.foundation.core.declarative.connector.InboundConnectorDefinition
getConnectorType, getScenarioId
Methods inherited from interface one.x1f.sip.foundation.core.declarative.orchestration.Orchestratable
getOrchestrator
-
Constructor Details
-
SoapOperationInboundConnectorBase
protected SoapOperationInboundConnectorBase()
-
-
Method Details
-
defineRequestUnmarshalling
Description copied from class:GenericInboundConnectorBase
Handle meant to be overloaded if the definition of an unmarshaller for the request type is needed.- Overrides:
defineRequestUnmarshalling
in classGenericInboundConnectorBase
- Returns:
- Unmarshaller for the request type
-
getJaxbContextPathForRequestModel
Returns the JAXB context path for the request model.- Returns:
- Context path - defaults to the package name of the request model class
-
defineResponseMarshalling
Description copied from class:GenericInboundConnectorBase
Handle meant to be overloaded if the definition of a marshaller for the response type is needed.- Overrides:
defineResponseMarshalling
in classGenericInboundConnectorBase
- Returns:
- Marshaller for response type
-
getJaxbContextPathForResponseModel
Returns the JAXB context path for the response model.- Returns:
- Context path - defaults to the package name of the response model class
-
defineInitiatingEndpoint
protected final org.apache.camel.builder.EndpointConsumerBuilder defineInitiatingEndpoint()Description copied from class:GenericInboundConnectorBase
Defines the initiating endpoint for this connector.- Specified by:
defineInitiatingEndpoint
in classGenericInboundConnectorBase
- Returns:
- the initiating endpoint
- See Also:
-
StaticEndpointBuilders
FileEndpointBuilderFactory.FileEndpointBuilder
-
getSoapServiceTieInEndpoint
public final org.apache.camel.builder.endpoint.dsl.DirectEndpointBuilderFactory.DirectEndpointBuilder getSoapServiceTieInEndpoint()Returns the endpoint used for this operation of the SOAP service- Returns:
-
getServiceInterfaceClass
Returns the service interface classThis is typically the service interface generated from a WSDL resource
- Returns:
- Service interface class
-
getServiceOperationName
Returns the name of the operation that should be bound to the connector/integration scenario- Returns:
- Service operation name
-
getDataFormat
protected org.apache.camel.converter.jaxb.JaxbDataFormat getDataFormat() throws jakarta.xml.bind.JAXBException- Throws:
jakarta.xml.bind.JAXBException
-