Search in sources :

Example 11 with ExpressionDefinition

use of org.apache.camel.model.language.ExpressionDefinition in project camel by apache.

the class StickyLoadBalancerDefinition method setCorrelationExpression.

public void setCorrelationExpression(Expression expression) {
    ExpressionDefinition def = ExpressionNodeHelper.toExpressionDefinition(expression);
    this.correlationExpression = new ExpressionSubElementDefinition();
    this.correlationExpression.setExpressionType(def);
}
Also used : ExpressionSubElementDefinition(org.apache.camel.model.ExpressionSubElementDefinition) ExpressionDefinition(org.apache.camel.model.language.ExpressionDefinition)

Aggregations

ExpressionDefinition (org.apache.camel.model.language.ExpressionDefinition)11 Expression (org.apache.camel.Expression)3 Processor (org.apache.camel.Processor)2 SimpleBuilder (org.apache.camel.builder.SimpleBuilder)2 ValueBuilder (org.apache.camel.builder.ValueBuilder)2 XPathBuilder (org.apache.camel.builder.xml.XPathBuilder)2 SimpleExpression (org.apache.camel.model.language.SimpleExpression)2 XPathExpression (org.apache.camel.model.language.XPathExpression)2 InterceptEndpointProcessor (org.apache.camel.processor.InterceptEndpointProcessor)2 IdAware (org.apache.camel.spi.IdAware)2 NamespaceAware (org.apache.camel.spi.NamespaceAware)2 ByteArrayOutputStream (java.io.ByteArrayOutputStream)1 OutputStream (java.io.OutputStream)1 PrintStream (java.io.PrintStream)1 ArrayList (java.util.ArrayList)1 XmlAccessType (javax.xml.bind.annotation.XmlAccessType)1 XmlAccessorType (javax.xml.bind.annotation.XmlAccessorType)1 CamelContext (org.apache.camel.CamelContext)1 Channel (org.apache.camel.Channel)1 Predicate (org.apache.camel.Predicate)1