在camelcontext中,API的定义格式为
答案 0 :(得分:1)
骆驼支持三种拦截器:
拦截可拦截每个处理步骤,而 在路由中路由Exchange。
interceptFrom(String uri)拦截路由中的传入Exchange。
interceptSendToEndpoint,在Exchange即将拦截时拦截 发送到给定的端点。
有几种方法可以为骆驼编写拦截器:
class CustomInterceptingRoute extends CustomRouteBuilder{
void configure() {
interceptFrom('rest:*')...
}
}