Package org.apache.synapse.endpoints

Examples of org.apache.synapse.endpoints.ResolvingEndpoint


        }

        fac = OMAbstractFactory.getOMFactory();
        OMElement endpointElement = fac.createOMElement("endpoint", SynapseConstants.SYNAPSE_OMNAMESPACE);

        ResolvingEndpoint resolvingEndpoint = (ResolvingEndpoint) endpoint;
        SynapseXPathSerializer.serializeXPath(resolvingEndpoint.getKeyExpression(),
                endpointElement, "key-expression");
        if (resolvingEndpoint.getName() != null && !resolvingEndpoint.isAnonymous()) {
            endpointElement.addAttribute("name", resolvingEndpoint.getName(), null);
        }

        // serialize the parameters
        serializeProperties(resolvingEndpoint, endpointElement);
View Full Code Here


    }

    protected Endpoint createEndpoint(OMElement epConfig, boolean anonymousEndpoint,
                                      Properties properties) {

        ResolvingEndpoint resolvingEndpoint = new ResolvingEndpoint();      
        String name = epConfig.getAttributeValue(new QName("name"));
        if (name != null) {
            resolvingEndpoint.setName(name);
        }
        try {
            resolvingEndpoint.setKeyExpression(
                    SynapseXPathFactory.getSynapseXPath(epConfig, ATTR_KEY_EXPRESSION));
        } catch (JaxenException e) {
            handleException("Couldn't build the ResolvingEndpoint, unable to set " +
                    "the key-expression XPath", e);
        }
View Full Code Here

TOP

Related Classes of org.apache.synapse.endpoints.ResolvingEndpoint

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.