Class MllpComponent<ConfigType extends MllpEndpointConfiguration,AuditDatasetType extends MllpAuditDataset>

java.lang.Object
org.apache.camel.support.service.BaseService
org.apache.camel.support.service.ServiceSupport
org.apache.camel.support.DefaultComponent
org.apache.camel.component.netty.NettyComponent
org.openehealth.ipf.platform.camel.ihe.mllp.core.MllpComponent<ConfigType,AuditDatasetType>
All Implemented Interfaces:
AutoCloseable, CamelContextAware, Component, Service, ShutdownableService, SSLContextParametersAware, StatefulService, SuspendableService, InterceptableComponent, Hl7v2ConfigurationHolder<AuditDatasetType>
Direct Known Subclasses:
MllpDispatchComponent, MllpTransactionComponent

public abstract class MllpComponent<ConfigType extends MllpEndpointConfiguration,AuditDatasetType extends MllpAuditDataset> extends org.apache.camel.component.netty.NettyComponent implements InterceptableComponent, Hl7v2ConfigurationHolder<AuditDatasetType>
Generic Camel component for MLLP.
Author:
Dmytro Rud
  • Field Details

  • Constructor Details

    • MllpComponent

      protected MllpComponent()
    • MllpComponent

      protected MllpComponent(CamelContext camelContext)
      Camel context-based constructor.
      Parameters:
      camelContext - camel context
  • Method Details

    • createConfig

      protected abstract ConfigType createConfig(String uri, Map<String,Object> parameters) throws Exception
      Creates a configuration object.
      Parameters:
      uri - endpoint URI
      parameters - URL parameters.
      Returns:
      configuration object filled with values from the provided parameter map.
      Throws:
      Exception
    • createEndpoint

      protected abstract MllpEndpoint<?,?,?> createEndpoint(org.apache.camel.component.netty.NettyEndpoint wrappedEndpoint, ConfigType config)
      Creates an endpoint object.
      Parameters:
      wrappedEndpoint - standard Camel Netty endpoint instance.
      config - endpoint configuration.
      Returns:
      configured MLLP endpoint instance which wraps the Netty one.
    • parseConfiguration

      protected org.apache.camel.component.netty.NettyConfiguration parseConfiguration(org.apache.camel.component.netty.NettyConfiguration configuration, String remaining, Map<String,Object> parameters) throws Exception
      Called when the NettyEndpoint is created. We overwrite a few parameters.
      Overrides:
      parseConfiguration in class org.apache.camel.component.netty.NettyComponent
      Throws:
      Exception
    • createEndpoint

      protected Endpoint createEndpoint(String uri, String remaining, Map<String,Object> parameters) throws Exception
      Creates and configures the endpoint.
      Overrides:
      createEndpoint in class org.apache.camel.component.netty.NettyComponent
      Throws:
      Exception
    • getEndpointPropertyConfigurer

      public PropertyConfigurer getEndpointPropertyConfigurer()
      Specified by:
      getEndpointPropertyConfigurer in interface Component
      Overrides:
      getEndpointPropertyConfigurer in class org.apache.camel.support.DefaultComponent