Package org.apache.synapse.core.axis2

Examples of org.apache.synapse.core.axis2.ProxyService.configure()


        String nameString = proxy.getName();
        if (nameString == null || "".equals(nameString)) {
            nameString = SynapseConstants.ANONYMOUS_PROXYSERVICE;
        }
        AspectConfiguration aspectConfiguration = new AspectConfiguration(nameString);
        proxy.configure(aspectConfiguration);

        OMAttribute statistics = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE,
                XMLConfigConstants.STATISTICS_ATTRIB_NAME));
        if (statistics != null) {
            String statisticsValue = statistics.getAttributeValue();
View Full Code Here


            ProxyService proxy = getSynapseConfiguration().getProxyService(proxyName);
            if (proxy != null) {
                if (proxy.getAspectConfiguration() == null) {
                    AspectConfiguration config = new AspectConfiguration(proxyName);
                    config.enableStatistics();
                    proxy.configure(config);
                } else {
                    proxy.getAspectConfiguration().enableStatistics();
                }
                persistProxyService(proxy);
            } else {
View Full Code Here

            ProxyService proxy = getSynapseConfiguration().getProxyService(proxyName);
            if (proxy != null) {
                if (proxy.getAspectConfiguration() == null) {
                    AspectConfiguration config = new AspectConfiguration(proxyName);
                    config.disableStatistics();
                    proxy.configure(config);
                } else {
                    proxy.getAspectConfiguration().disableStatistics();
                }
                persistProxyService(proxy);
            } else {
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.