本文整理汇总了Java中org.apache.camel.model.FilterDefinition类的典型用法代码示例。如果您正苦于以下问题:Java FilterDefinition类的具体用法?Java FilterDefinition怎么用?Java FilterDefinition使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FilterDefinition类属于org.apache.camel.model包,在下文中一共展示了FilterDefinition类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: handle
import org.apache.camel.model.FilterDefinition; //导入依赖的package包/类
@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();
}
开发者ID:syndesisio,项目名称:syndesis,代码行数:11,代码来源:FilterHandler.java
示例2: handle
import org.apache.camel.model.FilterDefinition; //导入依赖的package包/类
@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());
}
开发者ID:syndesisio,项目名称:syndesis-integration-runtime,代码行数:8,代码来源:FilterHandler.java
示例3: testCanImport
import org.apache.camel.model.FilterDefinition; //导入依赖的package包/类
@Test
public void testCanImport() throws Exception {
assertCanAcceptInput(MarshalDefinition.class, false);
assertCanAcceptInput(BeanDefinition.class, false);
assertCanAcceptInput(FilterDefinition.class, true);
}
开发者ID:fabric8io,项目名称:fabric8-forge,代码行数:7,代码来源:CamelModelUtilsTest.java
示例4: filter
import org.apache.camel.model.FilterDefinition; //导入依赖的package包/类
public static FilterDefinition filter(ProcessorDefinition<?> self, Closure<?> predicate) {
return self.filter(toExpression(predicate));
}
开发者ID:HydAu,项目名称:Camel,代码行数:4,代码来源:CamelGroovyMethods.java
示例5: createFilterDefinition
import org.apache.camel.model.FilterDefinition; //导入依赖的package包/类
private ExpressionNode createFilterDefinition() {
return new FilterDefinition(IN_OUT_CHECK)
.processRef(VALIDATION.name())
.processRef(TRANSFORMATION.name())
.processRef(VALIDATION.name());
}
开发者ID:jboss-switchyard,项目名称:switchyard,代码行数:7,代码来源:CamelExchangeBusRouteBuilder.java
注:本文中的org.apache.camel.model.FilterDefinition类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论