Package org.apache.camel.model

Examples of org.apache.camel.model.InterceptType


                // add exception handlers as top children
                route.getOutputs().addAll(exceptionHandlers);

                // add the interceptor
                InterceptType proxy = intercept.createProxy();
                route.addOutput(proxy);
                route.pushBlock(proxy.getProceed());

                int outputsSize = proxy.getOutputs().size();
                if (outputsSize > 0) {
                    ProcessorType processorType = proxy.getOutputs().get(outputsSize - 1);
                    if (processorType instanceof ProceedType) {
                        route.getOutputs().addAll(outputs);
                    }
                }
            }
View Full Code Here


                // add exception handlers as top children
                route.getOutputs().addAll(exceptionHandlers);

                // add the interceptor
                InterceptType proxy = intercept.createProxy();
                route.addOutput(proxy);
                route.pushBlock(proxy.getProceed());

                int outputsSize = proxy.getOutputs().size();
                if (outputsSize > 0) {
                    ProcessorType processorType = proxy.getOutputs().get(outputsSize - 1);
                    if (processorType instanceof ProceedType) {
                        route.getOutputs().addAll(outputs);
                    }
                }
            }
View Full Code Here

            // add exception handlers as top children
            route.getOutputs().addAll(exceptionHandlers);

            // add the interceptor but we must do some pre configuration beforehand
            intercept.afterPropertiesSet();
            InterceptType proxy = intercept.createProxy();
            route.addOutput(proxy);
            route.pushBlock(proxy.getProceed());

            // if there is a proceed in the interceptor proxy then we should add
            // the current outputs to out route so we will proceed and continue to route to them
            ProceedType proceed = ProcessorTypeHelper.findFirstTypeInOutputs(proxy.getOutputs(), ProceedType.class);
            if (proceed != null) {
                proceed.getOutputs().addAll(outputs);
            }
        }
    }
View Full Code Here

            // add exception handlers as top children
            route.getOutputs().addAll(exceptionHandlers);

            // add the interceptor but we must do some pre configuration beforehand
            intercept.afterPropertiesSet();
            InterceptType proxy = intercept.createProxy();
            route.addOutput(proxy);
            route.pushBlock(proxy.getProceed());

            // if there is a proceed in the interceptor proxy then we should add
            // the current outputs to out route so we will proceed and continue to route to them
            ProceedType proceed = ProcessorTypeHelper.findFirstTypeInOutputs(proxy.getOutputs(), ProceedType.class);
            if (proceed != null) {
                proceed.getOutputs().addAll(outputs);
            }
        }
    }
View Full Code Here

            // add exception handlers as top children
            route.getOutputs().addAll(exceptionHandlers);

            // add the interceptor but we must do some pre configuration beforehand
            intercept.afterPropertiesSet();
            InterceptType proxy = intercept.createProxy();
            route.addOutput(proxy);
            route.pushBlock(proxy.getProceed());

            // if there is a proceed in the interceptor proxy then we should add
            // the current outputs to out route so we will proceed and continue to route to them
            ProceedType proceed = ProcessorTypeHelper.findFirstTypeInOutputs(proxy.getOutputs(), ProceedType.class);
            if (proceed != null) {
                proceed.getOutputs().addAll(outputs);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.camel.model.InterceptType

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.