Package org.apache.synapse.util

Examples of org.apache.synapse.util.SimpleMapImpl


        if (tobeAdapted instanceof Map) {
            return tobeAdapted;
        } else if (tobeAdapted instanceof OMElement) {
            OMElement omElement = (OMElement) tobeAdapted;
            if (PayloadHelper.MAPELT.equals(omElement.getQName())) {
                return new SimpleMapImpl(omElement);
            } else {
                throw new LoggedRuntimeException("Incompatible value for the map " + "Wrong QName" +
                        omElement.getQName() + " expected " + PayloadHelper.MAPELT, log);
            }
        } else {
View Full Code Here


        if (propertyOutputAdapter.adaptOutput(description, result, context, messageInterceptor)) {
            return true;
        }
        if (result instanceof Map) {
            Map map = (Map) result;
            SimpleMap simplemap = new SimpleMapImpl();
            for (Object o : map.keySet()) {
                if (o == null || "".equals(o)) {
                    continue;
                }
                String key = (String) o;
                Object value = map.get(key);
                simplemap.put(key, value);
            }
            Object targetNode = ResourceDescriptionEvaluator.evaluateExpression(description,
                    context,
                    messageInterceptor);
            if (targetNode instanceof SOAPEnvelope) {
View Full Code Here

TOP

Related Classes of org.apache.synapse.util.SimpleMapImpl

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.