Class SplitterDefinition

java.lang.Object
org.apache.camel.model.OptionalIdentifiedDefinition<Type>
org.apache.camel.model.ProcessorDefinition<Type>
org.apache.camel.model.OutputDefinition<org.apache.camel.model.RouteDefinition>
org.openehealth.ipf.platform.camel.core.model.SplitterDefinition
All Implemented Interfaces:
CamelContextAware, LineNumberAware, org.apache.camel.model.Block, org.apache.camel.model.OutputNode, NamedNode, HasId, IdAware

@Metadata(label="ipf,eip") public class SplitterDefinition extends org.apache.camel.model.OutputDefinition<org.apache.camel.model.RouteDefinition>
OutputDefinition for the Splitter processor This class is needed to create a Splitter that hands on the sub exchanges to a specified processor. The Splitter requires explicit definition of this processor because it has to send multiple exchanges to the processor. Usually processors only send a single exchange to the next processor in the route, which is done automatically by Camel.
Author:
Jens Riemschneider, Martin Krasser
  • Field Summary

    Fields inherited from class org.apache.camel.model.OutputDefinition

    outputs

    Fields inherited from class org.apache.camel.model.ProcessorDefinition

    disabled, inheritErrorHandler
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    SplitterDefinition(String expressionBean)
    Creates a split type, i.e.
    Creates a split definition, i.e.
  • Method Summary

    Modifier and Type
    Method
    Description
    aggregationStrategy(Closure aggregationStrategy)
    Defines the aggregation logic for the split results as a closure
    Defines the aggregation logic for the split results via a strategy interface
     
     
    org.apache.camel.model.language.ExpressionDefinition
     
     
     

    Methods inherited from class org.apache.camel.model.OutputDefinition

    getOutputs, setOutputs

    Methods inherited from class org.apache.camel.model.ProcessorDefinition

    addInterceptStrategy, addOutput, aggregate, aggregate, aggregate, aggregate, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, bean, choice, circuitBreaker, claimCheck, claimCheck, claimCheck, claimCheck, clearOutput, configureChild, convertBodyTo, convertBodyTo, convertBodyTo, delay, delay, delay, disabled, disabled, disabled, doTry, dynamicRouter, dynamicRouter, end, endChoice, endCircuitBreaker, endDoCatch, endDoTry, endParent, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrich, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, enrichWith, filter, filter, filter, filter, getDisabled, getIndex, getInterceptStrategies, getLabel, getParent, getRouteConfiguration, id, idempotentConsumer, idempotentConsumer, idempotentConsumer, inheritErrorHandler, inOnly, inOnly, inOnly, inOnly, inOnly, inOut, inOut, inOut, inOut, inOut, isAbstract, isInheritErrorHandler, isTopLevelOnly, isWrappingEntireOutput, kamelet, loadBalance, loadBalance, log, log, log, log, log, log, loop, loop, loop, loopDoWhile, loopDoWhile, markRollbackOnly, markRollbackOnlyLast, marshal, marshal, marshal, marshal, multicast, multicast, multicast, nodePrefixId, onCompletion, onException, onException, pausable, pausable, pausable, pausable, pipeline, pipeline, pipeline, pipeline, policy, policy, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrich, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, pollEnrichWith, preCreateProcessor, process, process, process, recipientList, recipientList, recipientList, recipientList, removeHeader, removeHeaders, removeHeaders, removeProperties, removeProperties, removeProperty, resequence, resequence, resumable, resumable, resumable, rollback, rollback, routeDescription, routeGroup, routeId, routingSlip, routingSlip, routingSlip, saga, sample, sample, sample, sample, sample, script, script, serviceCall, serviceCall, serviceCall, setBody, setBody, setBody, setDisabled, setExchangePattern, setExchangePattern, setHeader, setHeader, setHeader, setInheritErrorHandler, setParent, setProperty, setProperty, setProperty, setRouteConfiguration, sort, sort, sort, split, split, split, split, startupOrder, step, step, stop, threads, threads, threads, threads, throttle, throttle, throttle, throttle, throttle, throwException, throwException, to, to, to, to, to, to, to, to, to, to, to, to, to, to, toD, toD, toD, toD, toD, toD, toD, toF, transacted, transacted, transform, transform, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, unmarshal, validate, validate, validate, wireTap, wireTap, wireTap

    Methods inherited from class org.apache.camel.model.OptionalIdentifiedDefinition

    description, description, getCamelContext, getCustomId, getDescription, getDescriptionText, getId, getLineNumber, getLocation, hasCustomIdAssigned, idOrCreate, setCamelContext, setCustomId, setDescription, setGeneratedId, setId, setLineNumber, setLocation

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • SplitterDefinition

      public SplitterDefinition()
    • SplitterDefinition

      public SplitterDefinition(Expression expression)
      Creates a split definition, i.e. a builder for Splitter.
      Parameters:
      expression - The expression to be passed to the Splitter upon creation.
    • SplitterDefinition

      public SplitterDefinition(String expressionBean)
      Creates a split type, i.e. a builder for Splitter
      Parameters:
      expressionBean - The name of the expression bean to be passed to the Splitter upon creation
  • Method Details

    • getShortName

      public String getShortName()
      Specified by:
      getShortName in interface NamedNode
      Overrides:
      getShortName in class org.apache.camel.model.OutputDefinition<org.apache.camel.model.RouteDefinition>
    • toString

      public String toString()
      Overrides:
      toString in class org.apache.camel.model.OutputDefinition<org.apache.camel.model.RouteDefinition>
    • aggregationStrategy

      public SplitterDefinition aggregationStrategy(Closure aggregationStrategy)
      Defines the aggregation logic for the split results as a closure
      Parameters:
      aggregationStrategy - the aggregation strategy
    • aggregationStrategy

      public SplitterDefinition aggregationStrategy(AggregationStrategy aggregationStrategy)
      Defines the aggregation logic for the split results via a strategy interface
      Parameters:
      aggregationStrategy - the aggregation strategy
    • getAggregationStrategy

      public AggregationStrategy getAggregationStrategy()
    • getExpressionDefinition

      public org.apache.camel.model.language.ExpressionDefinition getExpressionDefinition()
    • getExpressionBean

      public String getExpressionBean()