Package org.talend.esb.policy.correlation

Examples of org.talend.esb.policy.correlation.CorrelationIDCallbackHandler


                        if (MethodType.XPATH.equals(mType)) {
                         
                          XPathProcessor proc = new XPathProcessor(message);
                          correlationId = proc.getCorrelationID(cAssertion, message);
                        } else if (MethodType.CALLBACK.equals(mType)){
                            CorrelationIDCallbackHandler handler = (CorrelationIDCallbackHandler) message
                                    .get(CorrelationIDFeature.CORRELATION_ID_CALLBACK_HANDLER);
                            if (null == handler) {
                                handler = (CorrelationIDCallbackHandler) message
                                        .getContextualProperty(CorrelationIDFeature.CORRELATION_ID_CALLBACK_HANDLER);
                            }
                            if (handler != null)
                                correlationId = handler.getCorrelationId();
                        }
                        // Generate new ID if it was not set in callback or
                        // request
                        if (null == correlationId) {
                            correlationId = ContextUtils.generateUUID();
View Full Code Here


            if (MethodType.XPATH.equals(mType)) {
              XPathProcessor proc = new XPathProcessor(message);
              correlationId = proc.getCorrelationID(policy, message);
            } else if (MethodType.CALLBACK.equals(mType)){
                CorrelationIDCallbackHandler handler = (CorrelationIDCallbackHandler) message
                        .get(CorrelationIDFeature.CORRELATION_ID_CALLBACK_HANDLER);
                if (null == handler) {
                    handler = (CorrelationIDCallbackHandler) message
                            .getContextualProperty(CorrelationIDFeature.CORRELATION_ID_CALLBACK_HANDLER);
                }
                if (handler != null)
                    correlationId = handler.getCorrelationId();
            }
            // Generate new ID if it was not set in callback or
            // request
            if (null == correlationId) {
                correlationId = ContextUtils.generateUUID();
View Full Code Here

TOP

Related Classes of org.talend.esb.policy.correlation.CorrelationIDCallbackHandler

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.