/** * Applies a route for an interceptor if an exchange is send to the given endpoint * * @param uri endpoint uri * @return the builder */ public InterceptSendToEndpointDefinition interceptSendToEndpoint(String uri) { if (!getRouteCollection().getRoutes().isEmpty()) { throw new IllegalArgumentException("interceptSendToEndpoint must be defined before any routes in the RouteBuilder"); } getRouteCollection().setCamelContext(getContext()); return getRouteCollection().interceptSendToEndpoint(uri); }
public List<InterceptSendToEndpointDefinition> getInterceptSendToEndpoints() { return interceptSendToEndpoints; }
public void setInterceptSendToEndpoints(List<InterceptSendToEndpointDefinition> interceptSendToEndpoints) { this.interceptSendToEndpoints = interceptSendToEndpoints; }
public static InterceptSendToEndpointDefinition when(InterceptSendToEndpointDefinition self, Closure<?> predicate) { return self.when(toExpression(predicate)); }
@Override public List<InterceptSendToEndpointDefinition> getInterceptSendToEndpoints() { return _factoryBean.getInterceptSendToEndpoints(); }
public abstract List<InterceptSendToEndpointDefinition> getInterceptSendToEndpoints();