/** * Adds a route for an interceptor that intercepts incoming messages on any inputs in this route * * @return the builder */ public InterceptFromDefinition interceptFrom() { if (!getRouteCollection().getRoutes().isEmpty()) { throw new IllegalArgumentException("interceptFrom must be defined before any routes in the RouteBuilder"); } getRouteCollection().setCamelContext(getContext()); return getRouteCollection().interceptFrom(); }
/** * Adds a route for an interceptor that intercepts incoming messages on the given endpoint. * * @param uri endpoint uri * @return the builder */ public InterceptFromDefinition interceptFrom(String uri) { if (!getRouteCollection().getRoutes().isEmpty()) { throw new IllegalArgumentException("interceptFrom must be defined before any routes in the RouteBuilder"); } getRouteCollection().setCamelContext(getContext()); return getRouteCollection().interceptFrom(uri); }
public List<InterceptFromDefinition> getInterceptFroms() { return interceptFroms; }
public void setInterceptFroms(List<InterceptFromDefinition> interceptFroms) { this.interceptFroms = interceptFroms; }
@Override public List<InterceptFromDefinition> getInterceptFroms() { return _factoryBean.getInterceptFroms(); }
public abstract List<InterceptFromDefinition> getInterceptFroms();