Package org.apache.camel.model

Examples of org.apache.camel.model.InterceptFromDefinition


            buffer.append("(\"").append(resourceUri).append("\")");
        } else if (out instanceof FinallyDefinition) {
            renderFinally(buffer, out);
        } else if (out instanceof InterceptDefinition) {
            if (out instanceof InterceptFromDefinition) {
                InterceptFromDefinition interceptFrom = (InterceptFromDefinition)out;
                if (interceptFrom.getUri() != null) {
                    buffer.append("(\"").append(interceptFrom.getUri()).append("\")");
                    return;
                }
            }
            buffer.append("()");
        } else if (out instanceof InterceptSendToEndpointDefinition) {
View Full Code Here


            buffer.append("(\"").append(resourceUri).append("\")");
        } else if (out instanceof FinallyDefinition) {
            renderFinally(buffer, out);
        } else if (out instanceof InterceptDefinition) {
            if (out instanceof InterceptFromDefinition) {
                InterceptFromDefinition interceptFrom = (InterceptFromDefinition)out;
                if (interceptFrom.getUri() != null) {
                    buffer.append("(\"").append(interceptFrom.getUri()).append("\")");
                    return;
                }
            }
            buffer.append("()");
        } else if (out instanceof InterceptSendToEndpointDefinition) {
View Full Code Here

            buffer.append("(\"").append(resourceUri).append("\")");
        } else if (out instanceof FinallyDefinition) {
            renderFinally(buffer, out);
        } else if (out instanceof InterceptDefinition) {
            if (out instanceof InterceptFromDefinition) {
                InterceptFromDefinition interceptFrom = (InterceptFromDefinition)out;
                if (interceptFrom.getUri() != null) {
                    buffer.append("(\"").append(interceptFrom.getUri()).append("\")");
                    return;
                }
            }
            buffer.append("()");
        } else if (out instanceof InterceptSendToEndpointDefinition) {
View Full Code Here

            buffer.append("(\"").append(resourceUri).append("\")");
        } else if (out instanceof FinallyDefinition) {
            renderFinally(buffer, out);
        } else if (out instanceof InterceptDefinition) {
            if (out instanceof InterceptFromDefinition) {
                InterceptFromDefinition interceptFrom = (InterceptFromDefinition)out;
                if (interceptFrom.getUri() != null) {
                    buffer.append("(\"").append(interceptFrom.getUri()).append("\")");
                    return;
                }
            }
            buffer.append("()");
        } else if (out instanceof InterceptSendToEndpointDefinition) {
View Full Code Here

    }

    @SuppressWarnings("rawtypes")
    @Override
    public ProcessorDefinition createCamelDefinition() {
        InterceptFromDefinition answer = new InterceptFromDefinition();

        answer.setInheritErrorHandler(toXmlPropertyValue(PROPERTY_INHERITERRORHANDLER, Objects.<Boolean>getField(this, "inheritErrorHandler")));
        answer.setUri(toXmlPropertyValue(PROPERTY_URI, this.getUri()));

        super.savePropertiesToCamelDefinition(answer);
        return answer;
    }
View Full Code Here

    @Override
    protected void loadPropertiesFromCamelDefinition(ProcessorDefinition processor) {
        super.loadPropertiesFromCamelDefinition(processor);

        if (processor instanceof InterceptFromDefinition) {
            InterceptFromDefinition node = (InterceptFromDefinition) processor;

            this.setInheritErrorHandler(Objects.<Boolean>getField(node, "inheritErrorHandler"));
            this.setUri(node.getUri());
        } else {
            throw new IllegalArgumentException("ProcessorDefinition not an instanceof InterceptFromDefinition. Was " + processor.getClass().getName());
        }
    }
View Full Code Here

TOP

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

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.