Java 类org.apache.camel.model.FilterDefinition 实例源码

项目:syndesis    文件:FilterHandler.java   
@Override
public Optional<ProcessorDefinition> handle(Filter step, ProcessorDefinition route, SyndesisRouteBuilder routeBuilder) {
    CamelContext context = routeBuilder.getContext();
    Predicate predicate = JsonSimpleHelpers.getMandatorySimplePredicate(context, step, step.getExpression());
    FilterDefinition filter = route.filter(predicate);

    routeBuilder.addSteps(filter, step.getSteps());

    return Optional.empty();
}
项目:syndesis-integration-runtime    文件:FilterHandler.java   
@Override
public ProcessorDefinition handle(Filter step, ProcessorDefinition route, SyndesisRouteBuilder routeBuilder) {
  CamelContext context = routeBuilder.getContext();
  Predicate predicate = JsonSimpleHelpers.getMandatorySimplePredicate(context, step, step.getExpression());
  FilterDefinition filter = route.filter(predicate);
  return routeBuilder.addSteps(filter, step.getSteps());
}
项目:fabric8-forge    文件:CamelModelUtilsTest.java   
@Test
public void testCanImport() throws Exception {
    assertCanAcceptInput(MarshalDefinition.class, false);
    assertCanAcceptInput(BeanDefinition.class, false);
    assertCanAcceptInput(FilterDefinition.class, true);
}
项目:Camel    文件:CamelGroovyMethods.java   
public static FilterDefinition filter(ProcessorDefinition<?> self, Closure<?> predicate) {
    return self.filter(toExpression(predicate));
}
项目:switchyard    文件:CamelExchangeBusRouteBuilder.java   
private ExpressionNode createFilterDefinition() {
    return new FilterDefinition(IN_OUT_CHECK)
        .processRef(VALIDATION.name())
        .processRef(TRANSFORMATION.name())
        .processRef(VALIDATION.name());
}