Package org.apache.synapse.config.xml

Examples of org.apache.synapse.config.xml.ValueSerializer.serializeValue()


        if (key != null) {
            script.addAttribute(fac.createOMAttribute("language", nullNS, language));

            // Serialize Value using ValueSerializer
            keySerializer.serializeValue(key, XMLConfigConstants.KEY, script);

            if (!function.equals("mediate")) {
                script.addAttribute(fac.createOMAttribute("function", nullNS, function));
            }
        } else {
View Full Code Here


        for (Value includeKey : includeMap.keySet()) {
            if (includeKey != null) {
                OMElement includeKeyElement = fac.createOMElement("include", synNS);

                // Serialize Value using ValueSerializer
                keySerializer.serializeValue(includeKey, XMLConfigConstants.KEY, includeKeyElement);

                script.addChild(includeKeyElement);
            }
        }
View Full Code Here

        OMElement xquery = fac.createOMElement("xquery", synNS);
        Value key = queryMediator.getQueryKey();
        if (key != null) {
            // Serialize Key using KeySerializer
            ValueSerializer keySerializer =  new ValueSerializer();
            keySerializer.serializeValue(key, XMLConfigConstants.KEY, xquery);

        }

        saveTracingState(xquery, queryMediator);
View Full Code Here

    public OMElement serialize(OMElement parent) {
        OMElement eventElement = fac.createOMElement("event", synNS);

        ValueSerializer vs = new ValueSerializer();
        if (getTopic() != null) {
            vs.serializeValue(getTopic(), "topic", eventElement);
        }

        if (getExpression() != null) {
            SynapseXPathSerializer.serializeXPath(getExpression(),
                    eventElement, "expression");
View Full Code Here

            parent.addChild(send);
        }

        if (receivingSeqValue != null) {
            ValueSerializer keySerializer = new ValueSerializer();
            keySerializer.serializeValue(receivingSeqValue, "receive", send);
        }
        //send.addAttribute("receive", receivingSeq, null);
        return send;
    }
View Full Code Here

        OMElement eventElement = fac.createOMElement("event", synNS);

        ValueSerializer vs = new ValueSerializer();
        if (eventMediator.getTopic() != null) {
            vs.serializeValue(eventMediator.getTopic(), "topic", eventElement);
        }

        if (eventMediator.getExpression() != null) {
            SynapseXPathSerializer.serializeXPath(eventMediator.getExpression(),
                    eventElement, "expression");
View Full Code Here

        OMElement sequence = fac.createOMElement("sequence", synNS);
        if (!anonymous) {
            if (key != null) {
                // Use KeySerializer to serialize Key
                ValueSerializer keySerializer = new ValueSerializer();
                keySerializer.serializeValue(key, XMLConfigConstants.KEY, sequence);
            } else if (name != null) {
                sequence.addAttribute(fac.createOMAttribute(
                        "name", nullNS, name));

                if (errorHandler != null) {
View Full Code Here

        if (key != null) {
            script.addAttribute(fac.createOMAttribute("language", nullNS, language));

            // Use KeySerializer to serialize Key
            ValueSerializer keySerializer = new ValueSerializer();
            keySerializer.serializeValue(key, XMLConfigConstants.KEY, script);

            if (!function.equals("mediate")) {
                script.addAttribute(fac.createOMAttribute("function", nullNS, function));
            }
        } else {
View Full Code Here

        OMElement xquery = fac.createOMElement("xquery", synNS);

        if (queryKey != null) {
            // Use KeySerializer to serialize Key
            ValueSerializer keySerializer =  new ValueSerializer();
            keySerializer.serializeValue(queryKey, XMLConfigConstants.KEY, xquery);
        }

        saveTracingState(xquery, this);

        if (target != null) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.