Package org.apache.camel.model

Examples of org.apache.camel.model.OutputDefinition


    private OutputDefinitionRenderer() {
        // Utility class, no public or protected default constructor
    }

    public static void render(StringBuilder buffer, ProcessorDefinition processor) {
        OutputDefinition out = (OutputDefinition)processor;
        boolean notGlobal = buffer.toString().endsWith(")");
        if (notGlobal) {
            buffer.append(".");
        }
        buffer.append(out.getShortName());

        if (out instanceof AOPDefinition) {
            renderAop(buffer, out);
        } else if (out instanceof BeanDefinition) {
            renderBean(buffer, processor);
        } else if (out instanceof EnrichDefinition) {
            String enrich = out.toString();
            String resourceUri = enrich.substring(enrich.indexOf('[') + 1, enrich.indexOf(' '));
            buffer.append("(\"").append(resourceUri).append("\")");
        } else if (out instanceof FinallyDefinition) {
            renderFinally(buffer, out);
        } else if (out instanceof InterceptDefinition) {
View Full Code Here


    private OutputDefinitionRenderer() {
        // Utility class, no public or protected default constructor
    }

    public static void render(StringBuilder buffer, ProcessorDefinition processor) {
        OutputDefinition out = (OutputDefinition)processor;
        boolean notGlobal = buffer.toString().endsWith(")");
        if (notGlobal) {
            buffer.append(".");
        }
        buffer.append(out.getShortName());

        if (out instanceof AOPDefinition) {
            renderAop(buffer, out);
        } else if (out instanceof BeanDefinition) {
            renderBean(buffer, processor);
        } else if (out instanceof EnrichDefinition) {
            String enrich = out.toString();
            String resourceUri = enrich.substring(enrich.indexOf('[') + 1, enrich.indexOf(' '));
            buffer.append("(\"").append(resourceUri).append("\")");
        } else if (out instanceof FinallyDefinition) {
            renderFinally(buffer, out);
        } else if (out instanceof InterceptDefinition) {
View Full Code Here

        } else {
            buffer.append(".").append(processor.getShortName()).append("()");
        }

        if (processor instanceof OutputDefinition) {
            OutputDefinition out = (OutputDefinition)processor;
            if (out instanceof FinallyDefinition) {
                return;
            }
        }
        List<ProcessorDefinition> outputs = processor.getOutputs();
View Full Code Here

        } else {
            buffer.append(".").append(processor.getShortName()).append("()");
        }

        if (processor instanceof OutputDefinition) {
            OutputDefinition out = (OutputDefinition)processor;
            if (out instanceof FinallyDefinition) {
                return;
            }
        }
        List<ProcessorDefinition> outputs = processor.getOutputs();
View Full Code Here

        } else {
            buffer.append(".").append(processor.getShortName()).append("()");
        }

        if (processor instanceof OutputDefinition) {
            OutputDefinition out = (OutputDefinition)processor;
            if (out instanceof FinallyDefinition) {
                return;
            }
        }
        List<ProcessorDefinition> outputs = processor.getOutputs();
View Full Code Here

    private OutputDefinitionRenderer() {
        // Utility class, no public or protected default constructor
    }

    public static void render(StringBuilder buffer, ProcessorDefinition<?> processor) {
        OutputDefinition out = (OutputDefinition)processor;
        boolean notGlobal = buffer.toString().endsWith(")");
        if (notGlobal) {
            buffer.append(".");
        }
        buffer.append(out.getShortName());

        if (out instanceof AOPDefinition) {
            renderAop(buffer, out);
        } else if (out instanceof BeanDefinition) {
            renderBean(buffer, processor);
        } else if (out instanceof EnrichDefinition) {
            String enrich = out.toString();
            String resourceUri = enrich.substring(enrich.indexOf('[') + 1, enrich.indexOf(' '));
            buffer.append("(\"").append(resourceUri).append("\")");
        } else if (out instanceof FinallyDefinition) {
            renderFinally(buffer, out);
        } else if (out instanceof InterceptDefinition) {
View Full Code Here

    }

    public OutputDefinition errorIfOver(long millis) {
        overdueMillis = millis;
        if (overdueProcessors == null) {
            overdueProcessors = new OutputDefinition();
        }
        return overdueProcessors;
    }
View Full Code Here

TOP

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

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.