synapse-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asan...@apache.org
Subject svn commit: r577213 [4/5] - in /webservices/synapse/trunk/java/modules: core/src/main/java/org/apache/synapse/ core/src/main/java/org/apache/synapse/config/ core/src/main/java/org/apache/synapse/config/xml/ core/src/main/java/org/apache/synapse/config/...
Date Wed, 19 Sep 2007 09:09:14 GMT
Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/mediators/transform/XSLTMediator.java Wed Sep 19 02:09:01 2007
@@ -31,12 +31,9 @@
 import org.apache.axiom.om.xpath.AXIOMXPath;
 import org.apache.axiom.soap.SOAP11Constants;
 import org.apache.axiom.soap.SOAP12Constants;
-import org.apache.axiom.soap.SOAPFactory;
-import org.apache.axiom.soap.SOAPEnvelope;
-import org.apache.axiom.soap.impl.llom.soap11.SOAP11Factory;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.MessageContext;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.core.axis2.Axis2MessageContext;
@@ -45,7 +42,6 @@
 import org.apache.synapse.mediators.AbstractMediator;
 import org.apache.synapse.mediators.MediatorProperty;
 import org.apache.axis2.transport.base.BaseConstants;
-import org.apache.axis2.AxisFault;
 import org.jaxen.JaxenException;
 import org.w3c.dom.Element;
 import org.w3c.dom.Node;
@@ -81,7 +77,7 @@
 public class XSLTMediator extends AbstractMediator {
 
     private static final Log log = LogFactory.getLog(XSLTMediator.class);
-    private static final Log trace = LogFactory.getLog(Constants.TRACE_LOGGER);
+    private static final Log trace = LogFactory.getLog(SynapseConstants.TRACE_LOGGER);
 
     /**
      * The feature for which deciding swiching between DOM and Stream during the

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/GlobalRequestCountHandler.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/GlobalRequestCountHandler.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/GlobalRequestCountHandler.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/GlobalRequestCountHandler.java Wed Sep 19 02:09:01 2007
@@ -32,9 +32,9 @@
 
     public InvocationResponse invoke(MessageContext msgContext) throws AxisFault {
         msgContext
-                .setProperty(Constants.REQUEST_RECEIVED_TIME, new Long(System.currentTimeMillis()));
+                .setProperty(MetricsConstants.REQUEST_RECEIVED_TIME, new Long(System.currentTimeMillis()));
         // global increment
-        ((Counter) msgContext.getParameter(Constants.GLOBAL_REQUEST_COUNTER).getValue())
+        ((Counter) msgContext.getParameter(MetricsConstants.GLOBAL_REQUEST_COUNTER).getValue())
                 .increment();
         return InvocationResponse.CONTINUE;
     }

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsAggregatorModule.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsAggregatorModule.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsAggregatorModule.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsAggregatorModule.java Wed Sep 19 02:09:01 2007
@@ -39,7 +39,7 @@
 
         Counter globalRequestCounter = new Counter();
         Parameter globalRequestCounterParameter = new Parameter();
-        globalRequestCounterParameter.setName(Constants.GLOBAL_REQUEST_COUNTER);
+        globalRequestCounterParameter.setName(MetricsConstants.GLOBAL_REQUEST_COUNTER);
         globalRequestCounterParameter.setValue(globalRequestCounter);
         axiConfiguration.addParameter(globalRequestCounterParameter);
 

Copied: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsConstants.java (from r574820, webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/Constants.java)
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsConstants.java?p2=webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsConstants.java&p1=webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/Constants.java&r1=574820&r2=577213&rev=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/Constants.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsConstants.java Wed Sep 19 02:09:01 2007
@@ -22,7 +22,7 @@
  * 
  */
 
-public final class Constants {
+public final class MetricsConstants {
     public static String GLOBAL_REQUEST_COUNTER = "__GLOBAL_REQUEST_COUNTER__";
     public static String REQUEST_RECEIVED_TIME = "__REQUEST_RECEIVED_TIME__";
 }

Propchange: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/metrics/MetricsConstants.java
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzFactory.java Wed Sep 19 02:09:01 2007
@@ -8,7 +8,7 @@
 import org.apache.axiom.om.OMElement;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.synapse.config.xml.Constants;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 import org.apache.synapse.config.xml.PropertyHelper;
 import org.apache.synapse.config.xml.StartupFactory;
 import org.apache.synapse.Startup;
@@ -30,17 +30,17 @@
  */
 
 public class SimpleQuartzFactory implements StartupFactory {
-	public  final static QName JOB = new QName(Constants.SYNAPSE_NAMESPACE,
+	public  final static QName JOB = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE,
 			"job");
 
-	private final static QName SIMPLE = new QName(Constants.SYNAPSE_NAMESPACE,
+	private final static QName SIMPLE = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE,
 			"simpletrigger");
 
-	private final static QName CRON = new QName(Constants.SYNAPSE_NAMESPACE,
+	private final static QName CRON = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE,
 			"crontrigger");
 
 	private final static QName PROPERTY = new QName(
-			Constants.SYNAPSE_NAMESPACE, "property");
+			XMLConfigConstants.SYNAPSE_NAMESPACE, "property");
 
 	private final static Log log = LogFactory.getLog(SimpleQuartzFactory.class);
 

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/startup/quartz/SimpleQuartzSerializer.java Wed Sep 19 02:09:01 2007
@@ -7,7 +7,7 @@
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
 import org.apache.axiom.om.OMNamespace;
-import org.apache.synapse.config.xml.Constants;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 import org.apache.synapse.config.xml.StartupSerializer;
 import org.apache.synapse.Startup;
 import org.apache.synapse.SynapseException;
@@ -22,7 +22,7 @@
 		OMElement job = fac.createOMElement(SimpleQuartzFactory.JOB,  parent);
 		job.addAttribute("class", sq.getJobClass(), nullNS);
 		if (sq.isSimple()) {
-			OMElement el = fac.createOMElement(new QName(Constants.SYNAPSE_NAMESPACE,"simpletrigger"), job);
+			OMElement el = fac.createOMElement(new QName(XMLConfigConstants.SYNAPSE_NAMESPACE,"simpletrigger"), job);
 			if (sq.getCount()==-1) {
 				el.addAttribute("forever","true",nullNS);
 			} else {
@@ -30,7 +30,7 @@
 			}
 			el.addAttribute("interval", Long.toString(sq.getInterval()), nullNS);
 		} else {
-			OMElement el = fac.createOMElement(new QName(Constants.SYNAPSE_NAMESPACE,"crontrigger"), job);
+			OMElement el = fac.createOMElement(new QName(XMLConfigConstants.SYNAPSE_NAMESPACE,"crontrigger"), job);
 			el.addAttribute("expression", sq.getCron(), nullNS);
 		}
 		Iterator it = sq.getProperties().iterator();

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsCollector.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsCollector.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsCollector.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsCollector.java Wed Sep 19 02:09:01 2007
@@ -18,7 +18,7 @@
  */
 package org.apache.synapse.statistics;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 
 import java.util.*;
 
@@ -53,7 +53,7 @@
         if (statisticsHolder == null) {
             statisticsHolder = new StatisticsHolder();
             statisticsHolder.setKey(keyOfStatistic);
-            statisticsHolder.setStatisticsCategory(Constants.ENDPOINT_STATISTICS);
+            statisticsHolder.setStatisticsCategory(SynapseConstants.ENDPOINT_STATISTICS);
             endpointStatistics.put(keyOfStatistic, statisticsHolder);
         }
         statisticsHolder.update(isResponse, inTime, outTime, isFault);
@@ -76,7 +76,7 @@
         if (statisticsHolder == null) {
             statisticsHolder = new StatisticsHolder();
             statisticsHolder.setKey(keyOfStatistic);
-            statisticsHolder.setStatisticsCategory(Constants.PROXYSERVICE_STATISTICS);
+            statisticsHolder.setStatisticsCategory(SynapseConstants.PROXYSERVICE_STATISTICS);
             proxyServicesStatistics.put(keyOfStatistic, statisticsHolder);
         }
         statisticsHolder.update(isResponse, inTime, outTime, isFault);
@@ -98,7 +98,7 @@
         if (statisticsHolder == null) {
             statisticsHolder = new StatisticsHolder();
             statisticsHolder.setKey(keyOfStatistic);
-            statisticsHolder.setStatisticsCategory(Constants.SEQUENCE_STATISTICS);
+            statisticsHolder.setStatisticsCategory(SynapseConstants.SEQUENCE_STATISTICS);
             sequenceStatistics.put(keyOfStatistic, statisticsHolder);
         }
         statisticsHolder.update(isResponse, inTime, outTime, isFault);

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsHolder.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsHolder.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsHolder.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsHolder.java Wed Sep 19 02:09:01 2007
@@ -18,8 +18,6 @@
  */
 package org.apache.synapse.statistics;
 
-import org.apache.synapse.Constants;
-
 /**
  * To hold statistics that will collected during both of in and out message mediation
  */

Modified: webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsUtils.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsUtils.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsUtils.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/main/java/org/apache/synapse/statistics/StatisticsUtils.java Wed Sep 19 02:09:01 2007
@@ -18,7 +18,7 @@
  */
 package org.apache.synapse.statistics;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.MessageContext;
 import org.apache.synapse.endpoints.Endpoint;
 import org.apache.synapse.core.SynapseEnvironment;
@@ -43,12 +43,12 @@
         StatisticsCollector statisticsCollector = getStatisticsCollector(synCtx);
         boolean isFault = synCtx.getEnvelope().getBody().hasFault();
         ProxyServiceStatisticsStack proxyServiceStatisticsStack = (ProxyServiceStatisticsStack)
-                synCtx.getProperty(Constants.PROXYSERVICE_STATISTICS_STACK);
+                synCtx.getProperty(SynapseConstants.PROXYSERVICE_STATISTICS_STACK);
         if (proxyServiceStatisticsStack != null) {
             proxyServiceStatisticsStack.reportToStatisticsCollector(statisticsCollector,isFault);
         }
         ProxyServiceStatisticsStack synapseServiceStatisticsStack = (ProxyServiceStatisticsStack)
-                synCtx.getProperty(Constants.SYNAPSESERVICE_STATISTICS_STACK);
+                synCtx.getProperty(SynapseConstants.SYNAPSESERVICE_STATISTICS_STACK);
         if (synapseServiceStatisticsStack != null) {
             synapseServiceStatisticsStack.reportToStatisticsCollector(statisticsCollector,isFault);
         }
@@ -63,9 +63,9 @@
         StatisticsCollector statisticsCollector = getStatisticsCollector(synCtx);
         boolean isFault = synCtx.getEnvelope().getBody().hasFault();
         EndPointStatisticsStack endPointStatisticsStack = (EndPointStatisticsStack)
-                synCtx.getProperty(Constants.ENDPOINT_STATISTICS_STACK);
+                synCtx.getProperty(SynapseConstants.ENDPOINT_STATISTICS_STACK);
         if (endPointStatisticsStack != null) {
-            Object endpointObj = synCtx.getProperty(Constants.PROCESSED_ENDPOINT);
+            Object endpointObj = synCtx.getProperty(SynapseConstants.PROCESSED_ENDPOINT);
             if (endpointObj instanceof Endpoint) {
                 Endpoint endpoint = (Endpoint) endpointObj;
                 String name = endpoint.getName();
@@ -90,7 +90,7 @@
         StatisticsCollector statisticsCollector = getStatisticsCollector(synCtx);
         boolean isFault = synCtx.getEnvelope().getBody().hasFault();
         SequenceStatisticsStack sequenceStatisticsStack = (SequenceStatisticsStack)
-                synCtx.getProperty(Constants.SEQUENCE_STATISTICS_STACK);
+                synCtx.getProperty(SynapseConstants.SEQUENCE_STATISTICS_STACK);
         if (sequenceStatisticsStack != null) {
             sequenceStatisticsStack.reportToStatisticsCollector(statisticsCollector,isFault);
         }
@@ -105,7 +105,7 @@
         StatisticsCollector statisticsCollector = getStatisticsCollector(synCtx);
         boolean isFault = synCtx.getEnvelope().getBody().hasFault();
         SequenceStatisticsStack sequenceStatisticsStack = (SequenceStatisticsStack)
-                synCtx.getProperty(Constants.SEQUENCE_STATISTICS_STACK);
+                synCtx.getProperty(SynapseConstants.SEQUENCE_STATISTICS_STACK);
         if (sequenceStatisticsStack != null) {
             sequenceStatisticsStack.reportAllToStatisticsCollector(statisticsCollector,isFault);
         }

Modified: webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/TestMessageContext.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/TestMessageContext.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/TestMessageContext.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/TestMessageContext.java Wed Sep 19 02:09:01 2007
@@ -87,23 +87,23 @@
     }
 
     public Mediator getMainSequence() {
-        Object o = localEntries.get(Constants.MAIN_SEQUENCE_KEY);
+        Object o = localEntries.get(SynapseConstants.MAIN_SEQUENCE_KEY);
         if (o != null && o instanceof Mediator) {
             return (Mediator) o;
         } else {
             Mediator main = getConfiguration().getMainSequence();
-            localEntries.put(Constants.MAIN_SEQUENCE_KEY, main);
+            localEntries.put(SynapseConstants.MAIN_SEQUENCE_KEY, main);
             return main;
         }
     }
 
     public Mediator getFaultSequence() {
-        Object o = localEntries.get(Constants.FAULT_SEQUENCE_KEY);
+        Object o = localEntries.get(SynapseConstants.FAULT_SEQUENCE_KEY);
         if (o != null && o instanceof Mediator) {
             return (Mediator) o;
         } else {
             Mediator fault = getConfiguration().getFaultSequence();
-            localEntries.put(Constants.FAULT_SEQUENCE_KEY, fault);
+            localEntries.put(SynapseConstants.FAULT_SEQUENCE_KEY, fault);
             return fault;
         }
     }

Modified: webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/base/SequenceMediatorTest.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/base/SequenceMediatorTest.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/base/SequenceMediatorTest.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/base/SequenceMediatorTest.java Wed Sep 19 02:09:01 2007
@@ -20,12 +20,11 @@
 package org.apache.synapse.mediators.base;
 
 import junit.framework.TestCase;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.MessageContext;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.config.SynapseConfiguration;
 import org.apache.synapse.core.axis2.SynapseMessageReceiver;
-import org.apache.synapse.core.axis2.Axis2MessageContext;
 import org.apache.synapse.core.axis2.MessageContextCreatorForAxis2;
 import org.apache.synapse.core.axis2.Axis2SynapseEnvironment;
 import org.apache.synapse.mediators.TestMediateHandler;
@@ -101,7 +100,7 @@
             new TestMediateHandler() {
                 public void handle(MessageContext synCtx) {
                     result.append("T4");
-                    assertEquals("test", synCtx.getProperty(Constants.ERROR_MESSAGE));
+                    assertEquals("test", synCtx.getProperty(SynapseConstants.ERROR_MESSAGE));
                 }
             });
 
@@ -118,7 +117,7 @@
         // invoke transformation, with static enveope
         SynapseConfiguration synConfig = new SynapseConfiguration();
         synConfig.addSequence("myErrorHandler", seqErr);
-        synConfig.addSequence(Constants.MAIN_SEQUENCE_KEY, seq);
+        synConfig.addSequence(SynapseConstants.MAIN_SEQUENCE_KEY, seq);
 
         MessageContextCreatorForAxis2.setSynConfig(synConfig);
         MessageContextCreatorForAxis2.setSynEnv(new Axis2SynapseEnvironment());

Modified: webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/HeaderMediatorTest.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/HeaderMediatorTest.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/HeaderMediatorTest.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/mediators/transform/HeaderMediatorTest.java Wed Sep 19 02:09:01 2007
@@ -22,7 +22,7 @@
 import junit.framework.TestCase;
 import org.apache.axiom.om.xpath.AXIOMXPath;
 import org.apache.synapse.MessageContext;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.mediators.TestUtils;
 
 import javax.xml.namespace.QName;
@@ -34,7 +34,7 @@
     public void testSimpleHeaderSetAndRemove() throws Exception {
 
         HeaderMediator headerMediator = new HeaderMediator();
-        headerMediator.setQName(new QName(Constants.HEADER_TO));
+        headerMediator.setQName(new QName(SynapseConstants.HEADER_TO));
         headerMediator.setValue(TEST_HEADER);
 
         // invoke transformation, with static enveope
@@ -53,7 +53,7 @@
     public void testSimpleHeaderXPathSetAndRemove() throws Exception {
 
         HeaderMediator headerMediator = new HeaderMediator();
-        headerMediator.setQName(new QName(Constants.HEADER_TO));
+        headerMediator.setQName(new QName(SynapseConstants.HEADER_TO));
         headerMediator.setExpression(new AXIOMXPath("concat('http://','server','/path')"));
 
         // invoke transformation, with static enveope

Modified: webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/n2n/SynapseCommodityServiceTest.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/n2n/SynapseCommodityServiceTest.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/n2n/SynapseCommodityServiceTest.java (original)
+++ webservices/synapse/trunk/java/modules/core/src/test/java/org/apache/synapse/n2n/SynapseCommodityServiceTest.java Wed Sep 19 02:09:01 2007
@@ -32,15 +32,13 @@
 import org.apache.axis2.context.ConfigurationContextFactory;
 import org.apache.axis2.description.AxisService;
 import org.apache.axis2.description.TransportInDescription;
-import org.apache.axis2.rpc.receivers.RPCMessageReceiver;
 import org.apache.axis2.transport.TransportListener;
 import org.apache.axis2.engine.ListenerManager;
 import org.apache.axis2.engine.MessageReceiver;
 import org.apache.axis2.AxisFault;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.utils.Services;
 
-import javax.xml.namespace.QName;
 import java.util.Iterator;
 import java.util.HashMap;
 
@@ -52,7 +50,7 @@
 
     protected void setUp() throws java.lang.Exception {
         // Initializing Synapse repository
-        System.setProperty(Constants.SYNAPSE_XML,
+        System.setProperty(SynapseConstants.SYNAPSE_XML,
                            "./../../repository/conf/sample/resources/misc/synapse.xml");
         System.setProperty(org.apache.axis2.Constants.AXIS2_CONF,
                            "./../../repository/conf/axis2.xml");

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/attachment/AttachmentMediatorFactory.java Wed Sep 19 02:09:01 2007
@@ -28,8 +28,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.synapse.Mediator;
 import org.apache.synapse.SynapseException;
-import org.apache.synapse.config.xml.Constants;
-import org.apache.synapse.config.xml.MediatorFactory;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 import org.apache.synapse.config.xml.OMElementUtils;
 import org.apache.synapse.config.xml.AbstractMediatorFactory;
 import org.jaxen.JaxenException;
@@ -37,15 +36,15 @@
 public class AttachmentMediatorFactory extends AbstractMediatorFactory {
 
 	private static final Log log = LogFactory.getLog(AttachmentMediatorFactory.class);
-    private static final QName TAG_NAME    = new QName(Constants.SYNAPSE_NAMESPACE, "attachments");
+    private static final QName TAG_NAME    = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "attachments");
 	
 	public Mediator createMediator(OMElement elem) {	
 		AttachmentMediator mediator = new AttachmentMediator();
 		
-		OMAttribute attMode   = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "mode"));        
-        OMAttribute attMimeType = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "mimeType"));
-        OMElement omPath = elem.getFirstChildWithName(new QName(Constants.NULL_NAMESPACE, "attachmentPath"));
-        OMElement omNS = elem.getFirstChildWithName(new QName(Constants.NULL_NAMESPACE, "attachmentNS"));       
+		OMAttribute attMode   = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "mode"));
+        OMAttribute attMimeType = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "mimeType"));
+        OMElement omPath = elem.getFirstChildWithName(new QName(XMLConfigConstants.NULL_NAMESPACE, "attachmentPath"));
+        OMElement omNS = elem.getFirstChildWithName(new QName(XMLConfigConstants.NULL_NAMESPACE, "attachmentNS"));
         
         if(attMode != null && attMode.getAttributeValue().equals("MTOM_TO_BASE64")){
         	mediator.setMode(AttachmentMediator.MTOM_TO_BASE64);
@@ -64,8 +63,8 @@
 				OMElementUtils.addNameSpaces(xp, elem, log);
 				
 				if(omNS != null){
-					String prefix = omNS.getAttributeValue(new QName(Constants.NULL_NAMESPACE, "prefix"));
-					String name = omNS.getAttributeValue(new QName(Constants.NULL_NAMESPACE, "name"));
+					String prefix = omNS.getAttributeValue(new QName(XMLConfigConstants.NULL_NAMESPACE, "prefix"));
+					String name = omNS.getAttributeValue(new QName(XMLConfigConstants.NULL_NAMESPACE, "name"));
 					xp.addNamespace(prefix,name);		
 				}
 				

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediator.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediator.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediator.java Wed Sep 19 02:09:01 2007
@@ -23,7 +23,7 @@
 import org.apache.bsf.xml.XMLHelper;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.MessageContext;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.config.Entry;
@@ -54,7 +54,7 @@
 public class ScriptMediator extends AbstractMediator {
 
     private static final Log log = LogFactory.getLog(ScriptMediator.class);
-    private static final Log trace = LogFactory.getLog(Constants.TRACE_LOGGER);
+    private static final Log trace = LogFactory.getLog(SynapseConstants.TRACE_LOGGER);
 
     /**
      * The name of the variable made available to the scripting language to access the message

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediatorFactory.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediatorFactory.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/bsf/ScriptMediatorFactory.java Wed Sep 19 02:09:01 2007
@@ -26,7 +26,7 @@
 import org.apache.synapse.Mediator;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.config.xml.AbstractMediatorFactory;
-import org.apache.synapse.config.xml.Constants;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 
 import java.util.Map;
 import java.util.Iterator;
@@ -57,16 +57,16 @@
  */
 public class ScriptMediatorFactory extends AbstractMediatorFactory {
 
-    private static final QName TAG_NAME = new QName(Constants.SYNAPSE_NAMESPACE, "script");
+    private static final QName TAG_NAME = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "script");
 
-    private static final QName INCLUDE_Q = new QName(Constants.SYNAPSE_NAMESPACE, "include");
+    private static final QName INCLUDE_Q = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "include");
 
     public Mediator createMediator(OMElement elem) {
 
         ScriptMediator mediator;
-        OMAttribute keyAtt  = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "key"));
-        OMAttribute langAtt = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "language"));
-        OMAttribute funcAtt = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "function"));
+        OMAttribute keyAtt  = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "key"));
+        OMAttribute langAtt = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "language"));
+        OMAttribute funcAtt = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "function"));
 
         if (langAtt == null) {
             throw new SynapseException("The 'language' attribute is required for a script mediator");
@@ -100,7 +100,7 @@
         Iterator iter = elem.getChildrenWithName(INCLUDE_Q);
         while (iter.hasNext()) {
             OMElement includeElem = (OMElement) iter.next();
-            OMAttribute key = includeElem.getAttribute(new QName(Constants.NULL_NAMESPACE, "key"));
+            OMAttribute key = includeElem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "key"));
 
             if (key == null) {
                 throw new SynapseException("Cannot use 'include' element without 'key' attribute for a script mediator");

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dblookup/DBLookupMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dblookup/DBLookupMediatorFactory.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dblookup/DBLookupMediatorFactory.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dblookup/DBLookupMediatorFactory.java Wed Sep 19 02:09:01 2007
@@ -21,7 +21,7 @@
 
 import org.apache.synapse.config.xml.AbstractMediatorFactory;
 import org.apache.synapse.Mediator;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.SynapseException;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMAttribute;
@@ -56,24 +56,24 @@
 
     private static final Log log = LogFactory.getLog(DBLookupMediatorFactory.class);
 
-    private static final QName DBLOOKUP_Q = new QName(Constants.SYNAPSE_NAMESPACE, "dblookup");
+    private static final QName DBLOOKUP_Q = new QName(SynapseConstants.SYNAPSE_NAMESPACE, "dblookup");
 
     private static final QName DRIVER_Q   =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "driver");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "driver");
     private static final QName URL_Q      =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "url");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "url");
     private static final QName USER_Q     =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "user");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "user");
     private static final QName PASS_Q     =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "password");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "password");
 
     private static final QName QUERY_Q    =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "query");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "query");
     private static final QName Q_ATT_Q    = new QName("setAttribute");
     private static final QName SQL_Q      =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "sql");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "sql");
     private static final QName PARAM_Q    =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "parameter");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "parameter");
     private static final QName PROPERTY_Q = new QName("property");
     private static final QName XPATH_Q    = new QName("xpath");
     private static final QName TYPE_Q     = new QName("type");
@@ -85,7 +85,7 @@
 
         try {
             AXIOMXPath xpath = new AXIOMXPath("//syn:connection/syn:jdbc");
-            xpath.addNamespace("syn", org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE);
+            xpath.addNamespace("syn", org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE);
             OMElement jdbc = (OMElement) xpath.selectSingleNode(elem);
 
             try {

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dbreport/DBReportMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dbreport/DBReportMediatorFactory.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dbreport/DBReportMediatorFactory.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/dbreport/DBReportMediatorFactory.java Wed Sep 19 02:09:01 2007
@@ -21,7 +21,7 @@
 
 import org.apache.synapse.config.xml.AbstractMediatorFactory;
 import org.apache.synapse.Mediator;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.mediators.dblookup.Query;
 import org.apache.axiom.om.OMElement;
@@ -57,23 +57,23 @@
 
     private static final Log log = LogFactory.getLog(DBReportMediatorFactory.class);
 
-    private static final QName DBREPORT_Q = new QName(Constants.SYNAPSE_NAMESPACE, "dbreport");
+    private static final QName DBREPORT_Q = new QName(SynapseConstants.SYNAPSE_NAMESPACE, "dbreport");
 
     private static final QName DRIVER_Q   =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "driver");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "driver");
     private static final QName URL_Q      =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "url");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "url");
     private static final QName USER_Q     =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "user");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "user");
     private static final QName PASS_Q     =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "password");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "password");
 
     private static final QName INSERT_Q   =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "insert");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "insert");
     private static final QName SQL_Q      =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "sql");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "sql");
     private static final QName PARAM_Q    =
-        new QName(org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE, "parameter");
+        new QName(org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE, "parameter");
 
     private static final QName PROPERTY_Q = new QName("property");
     private static final QName XPATH_Q    = new QName("xpath");
@@ -86,7 +86,7 @@
 
         try {
             AXIOMXPath xpath = new AXIOMXPath("//syn:connection/syn:jdbc");
-            xpath.addNamespace("syn", org.apache.synapse.config.xml.Constants.SYNAPSE_NAMESPACE);
+            xpath.addNamespace("syn", org.apache.synapse.config.xml.XMLConfigConstants.SYNAPSE_NAMESPACE);
             OMElement jdbc = (OMElement) xpath.selectSingleNode(elem);
 
             try {

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediator.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediator.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediator.java Wed Sep 19 02:09:01 2007
@@ -24,7 +24,7 @@
 import org.apache.synapse.MessageContext;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.Mediator;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.mediators.AbstractMediator;
 import org.apache.synapse.config.Util;
 import org.apache.synapse.config.Entry;
@@ -44,7 +44,7 @@
 public class SpringMediator extends AbstractMediator {
 
     private static final Log log = LogFactory.getLog(SpringMediator.class);
-    private static final Log trace = LogFactory.getLog(Constants.TRACE_LOGGER);
+    private static final Log trace = LogFactory.getLog(SynapseConstants.TRACE_LOGGER);
 
     /**
      * The Spring bean ref to be used

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorFactory.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorFactory.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorFactory.java Wed Sep 19 02:09:01 2007
@@ -25,8 +25,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.Mediator;
-import org.apache.synapse.config.xml.Constants;
-import org.apache.synapse.config.xml.MediatorFactory;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 import org.apache.synapse.config.xml.AbstractMediatorFactory;
 
 import javax.xml.namespace.QName;
@@ -42,7 +41,7 @@
 
     private static final Log log = LogFactory.getLog(SpringMediatorFactory.class);
 
-    private static final QName TAG_NAME = new QName(Constants.SYNAPSE_NAMESPACE + "/spring", "spring");
+    private static final QName TAG_NAME = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE + "/spring", "spring");
 
     /**
      * Create a Spring mediator instance referring to the bean and configuration given
@@ -54,8 +53,8 @@
     public Mediator createMediator(OMElement elem) {
 
         SpringMediator sm = new SpringMediator();
-        OMAttribute bean = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "bean"));
-        OMAttribute key  = elem.getAttribute(new QName(Constants.NULL_NAMESPACE, "key"));
+        OMAttribute bean = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "bean"));
+        OMAttribute key  = elem.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "key"));
 
         if (bean == null) {
             handleException("The 'bean' attribute is required for a Spring mediator definition");

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorSerializer.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorSerializer.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorSerializer.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/spring/SpringMediatorSerializer.java Wed Sep 19 02:09:01 2007
@@ -25,7 +25,7 @@
 import org.apache.commons.logging.LogFactory;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.Mediator;
-import org.apache.synapse.config.xml.Constants;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 import org.apache.synapse.config.xml.MediatorSerializer;
 import org.apache.synapse.config.xml.AbstractMediatorSerializer;
 
@@ -35,7 +35,7 @@
 public class SpringMediatorSerializer extends AbstractMediatorSerializer
     implements MediatorSerializer {
 
-    private static final OMNamespace sprNS = fac.createOMNamespace(Constants.SYNAPSE_NAMESPACE+"/spring", "spring");
+    private static final OMNamespace sprNS = fac.createOMNamespace(XMLConfigConstants.SYNAPSE_NAMESPACE+"/spring", "spring");
 
     private static final Log log = LogFactory.getLog(SpringMediatorSerializer.class);
 

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediator.java Wed Sep 19 02:09:01 2007
@@ -22,7 +22,7 @@
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 import org.apache.neethi.PolicyEngine;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.Mediator;
 import org.apache.synapse.MessageContext;
 import org.apache.synapse.SynapseException;
@@ -42,7 +42,7 @@
 public class ThrottleMediator extends AbstractMediator {
 
     private static final Log log = LogFactory.getLog(ThrottleMediator.class);
-    private static final Log trace = LogFactory.getLog(Constants.TRACE_LOGGER);
+    private static final Log trace = LogFactory.getLog(SynapseConstants.TRACE_LOGGER);
     /** The key for getting policy value - key refer to registry entry  */
     private String policyKey = null;
     /** InLine policy object - XML   */

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorFactory.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorFactory.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorFactory.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorFactory.java Wed Sep 19 02:09:01 2007
@@ -23,7 +23,7 @@
 import org.apache.synapse.Mediator;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.config.xml.AbstractMediatorFactory;
-import org.apache.synapse.config.xml.Constants;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 import org.apache.synapse.config.xml.SequenceMediatorFactory;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -42,15 +42,15 @@
      * The Tag Name for throttle
      */
     private static final QName TAG_NAME
-            = new QName(Constants.SYNAPSE_NAMESPACE + "/throttle", "throttle");
+            = new QName(XMLConfigConstants.SYNAPSE_NAMESPACE + "/throttle", "throttle");
 
     public Mediator createMediator(OMElement elem) {
 
         ThrottleMediator throttleMediator = new ThrottleMediator();
         OMElement policy = elem.getFirstChildWithName(
-                new QName(Constants.SYNAPSE_NAMESPACE, "policy"));
+                new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, "policy"));
         if (policy != null) {
-            OMAttribute key = policy.getAttribute(new QName(Constants.NULL_NAMESPACE, "key"));
+            OMAttribute key = policy.getAttribute(new QName(XMLConfigConstants.NULL_NAMESPACE, "key"));
             if (key != null) {
                 String keyValue = key.getAttributeValue();
                 if (keyValue != null && !"".equals(keyValue)) {
@@ -72,7 +72,7 @@
         initMediator(throttleMediator,elem);
         SequenceMediatorFactory mediatorFactory = new SequenceMediatorFactory();
         OMAttribute onReject = elem.getAttribute(
-                new QName(Constants.NULL_NAMESPACE, Constants.ONREJECT));
+                new QName(XMLConfigConstants.NULL_NAMESPACE, XMLConfigConstants.ONREJECT));
         if (onReject != null) {
             String onRejectValue = onReject.getAttributeValue();
             if (onRejectValue != null) {
@@ -80,14 +80,14 @@
             }
         } else {
             OMElement onRejectMediatorElement = elem.getFirstChildWithName(
-                    new QName(Constants.SYNAPSE_NAMESPACE, Constants.ONREJECT));
+                    new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, XMLConfigConstants.ONREJECT));
             if (onRejectMediatorElement != null) {
                 throttleMediator.setOnRejectMediator(mediatorFactory.createAnonymousSequence(
                         onRejectMediatorElement));
             }
         }
         OMAttribute onAccept = elem.getAttribute(
-                new QName(Constants.NULL_NAMESPACE, Constants.ONACCEPT));
+                new QName(XMLConfigConstants.NULL_NAMESPACE, XMLConfigConstants.ONACCEPT));
         if (onAccept != null) {
             String onAcceptValue = onAccept.getAttributeValue();
             if (onAcceptValue != null) {
@@ -95,7 +95,7 @@
             }
         } else {
             OMElement onAcceptMediatorElement = elem.getFirstChildWithName(
-                    new QName(Constants.SYNAPSE_NAMESPACE, Constants.ONACCEPT));
+                    new QName(XMLConfigConstants.SYNAPSE_NAMESPACE, XMLConfigConstants.ONACCEPT));
             if (onAcceptMediatorElement != null) {
                 throttleMediator.setOnAcceptMediator(mediatorFactory.createAnonymousSequence(
                         onAcceptMediatorElement));

Modified: webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorSerializer.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorSerializer.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorSerializer.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/main/java/org/apache/synapse/mediators/throttle/ThrottleMediatorSerializer.java Wed Sep 19 02:09:01 2007
@@ -27,7 +27,7 @@
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.mediators.base.SequenceMediator;
 import org.apache.synapse.config.xml.AbstractMediatorSerializer;
-import org.apache.synapse.config.xml.Constants;
+import org.apache.synapse.config.xml.XMLConfigConstants;
 import org.apache.synapse.config.xml.SequenceMediatorSerializer;
 
 /**
@@ -39,7 +39,7 @@
     private static final Log log = LogFactory.getLog(ThrottleMediatorSerializer.class);
 
     private static final OMNamespace throttleNS
-            = fac.createOMNamespace(Constants.SYNAPSE_NAMESPACE + "/throttle", "throttle");
+            = fac.createOMNamespace(XMLConfigConstants.SYNAPSE_NAMESPACE + "/throttle", "throttle");
 
     public OMElement serializeMediator(OMElement parent, Mediator m) {
         if (!(m instanceof ThrottleMediator)) {
@@ -63,27 +63,27 @@
         finalizeSerialization(throttle, throttleMediator);
         String onReject = throttleMediator.getOnReject();
         if (onReject != null) {
-            throttle.addAttribute(fac.createOMAttribute(Constants.ONREJECT, nullNS, onReject));
+            throttle.addAttribute(fac.createOMAttribute(XMLConfigConstants.ONREJECT, nullNS, onReject));
         } else {
             Mediator mediator = throttleMediator.getOnRejectMediator();
             SequenceMediatorSerializer serializer = new SequenceMediatorSerializer();
             if (mediator != null && mediator instanceof SequenceMediator) {
                 OMElement element = serializer.serializeAnonymousSequence(null,
                         (SequenceMediator) mediator);
-                element.setLocalName(Constants.ONREJECT);
+                element.setLocalName(XMLConfigConstants.ONREJECT);
                 throttle.addChild(element);
             }
         }
         String onAccept = throttleMediator.getOnAccept();
         if (onAccept != null) {
-            throttle.addAttribute(fac.createOMAttribute(Constants.ONACCEPT, nullNS, onAccept));
+            throttle.addAttribute(fac.createOMAttribute(XMLConfigConstants.ONACCEPT, nullNS, onAccept));
         } else {
             Mediator mediator = throttleMediator.getOnAcceptMediator();
             SequenceMediatorSerializer serializer = new SequenceMediatorSerializer();
             if (mediator != null && mediator instanceof SequenceMediator) {
                 OMElement element = serializer.serializeAnonymousSequence(null,
                         (SequenceMediator) mediator);
-                element.setLocalName(Constants.ONACCEPT);
+                element.setLocalName(XMLConfigConstants.ONACCEPT);
                 throttle.addChild(element);
             }
         }

Modified: webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/TestMessageContext.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/TestMessageContext.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/TestMessageContext.java (original)
+++ webservices/synapse/trunk/java/modules/extensions/src/test/java/org/apache/synapse/TestMessageContext.java Wed Sep 19 02:09:01 2007
@@ -87,23 +87,23 @@
     }
 
     public Mediator getMainSequence() {
-        Object o = localEntries.get(Constants.MAIN_SEQUENCE_KEY);
+        Object o = localEntries.get(SynapseConstants.MAIN_SEQUENCE_KEY);
         if (o != null && o instanceof Mediator) {
             return (Mediator) o;
         } else {
             Mediator main = getConfiguration().getMainSequence();
-            localEntries.put(Constants.MAIN_SEQUENCE_KEY, main);
+            localEntries.put(SynapseConstants.MAIN_SEQUENCE_KEY, main);
             return main;
         }
     }
 
     public Mediator getFaultSequence() {
-        Object o = localEntries.get(Constants.FAULT_SEQUENCE_KEY);
+        Object o = localEntries.get(SynapseConstants.FAULT_SEQUENCE_KEY);
         if (o != null && o instanceof Mediator) {
             return (Mediator) o;
         } else {
             Mediator fault = getConfiguration().getFaultSequence();
-            localEntries.put(Constants.FAULT_SEQUENCE_KEY, fault);
+            localEntries.put(SynapseConstants.FAULT_SEQUENCE_KEY, fault);
             return fault;
         }
     }

Modified: webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseInHandler.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseInHandler.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseInHandler.java (original)
+++ webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseInHandler.java Wed Sep 19 02:09:01 2007
@@ -27,7 +27,7 @@
 import org.apache.synapse.core.axis2.MessageContextCreatorForAxis2;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.FaultHandler;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.util.HandlerUtil;
 
 /**
@@ -60,10 +60,10 @@
 
         // handles the incoming and outgoing behaviours in client and server sides
         if (!messageContext.isServerSide()) {
-            synCtx.setProperty(Constants.RESPONSE, Boolean.TRUE);
+            synCtx.setProperty(SynapseConstants.RESPONSE, Boolean.TRUE);
             synCtx.setResponse(true);
         } else {
-            synCtx.setProperty(Constants.RESPONSE, Boolean.FALSE);
+            synCtx.setProperty(SynapseConstants.RESPONSE, Boolean.FALSE);
             synCtx.setResponse(false);
         }
 

Modified: webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseModule.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseModule.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseModule.java (original)
+++ webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseModule.java Wed Sep 19 02:09:01 2007
@@ -26,7 +26,7 @@
 import org.apache.axis2.AxisFault;
 import org.apache.neethi.Assertion;
 import org.apache.neethi.Policy;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.synapse.core.axis2.SynapseInitializationModule;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
@@ -62,17 +62,17 @@
      */
     public void init(ConfigurationContext configurationContext,
                      AxisModule axisModule) throws AxisFault {
-        if (System.getProperty(Constants.SYNAPSE_XML) == null) {
-            System.setProperty(Constants.SYNAPSE_XML, configurationContext.
+        if (System.getProperty(SynapseConstants.SYNAPSE_XML) == null) {
+            System.setProperty(SynapseConstants.SYNAPSE_XML, configurationContext.
                     getAxisConfiguration().getRepository().getPath() + "/conf/synapse.xml");
         }
-        if (new File(System.getProperty(Constants.SYNAPSE_XML)).exists()) {
+        if (new File(System.getProperty(SynapseConstants.SYNAPSE_XML)).exists()) {
             initializationModule = new org.apache.synapse.core.axis2.SynapseInitializationModule();
             initializationModule.init(configurationContext, axisModule);
         } else {
             handleException("Unable to initialize the Synapse initializationModule. Couldn't " +
                     "find the configuration file in the location "
-                    + System.getProperty(Constants.SYNAPSE_XML));
+                    + System.getProperty(SynapseConstants.SYNAPSE_XML));
         }
     }
 

Modified: webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseOutHandler.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseOutHandler.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseOutHandler.java (original)
+++ webservices/synapse/trunk/java/modules/handler/src/main/java/org/apache/synapse/handler/SynapseOutHandler.java Wed Sep 19 02:09:01 2007
@@ -20,14 +20,13 @@
 package org.apache.synapse.handler;
 
 import org.apache.axis2.handlers.AbstractHandler;
-import org.apache.axis2.engine.Handler;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.AxisFault;
 import org.apache.synapse.util.HandlerUtil;
 import org.apache.synapse.core.axis2.MessageContextCreatorForAxis2;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.FaultHandler;
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
 
@@ -61,10 +60,10 @@
 
         // handles the incoming and outgoing behaviours in client and server sides
         if (messageContext.isServerSide()) {
-            synCtx.setProperty(Constants.RESPONSE, Boolean.TRUE);
+            synCtx.setProperty(SynapseConstants.RESPONSE, Boolean.TRUE);
             synCtx.setResponse(true);
         } else {
-            synCtx.setProperty(Constants.RESPONSE, Boolean.FALSE);
+            synCtx.setProperty(SynapseConstants.RESPONSE, Boolean.FALSE);
             synCtx.setResponse(false);
         }
 

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_0_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_0_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_0_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_0_Integration.java Wed Sep 19 02:09:01 2007
@@ -19,7 +19,7 @@
 
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -28,7 +28,7 @@
 public class SynapseSample_0_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_0.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_0.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         super.setUp();
     }

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_100_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_100_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_100_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_100_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_100_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_100.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_100.xml");
         System.setProperty("addurl", SYNAPSE_BASE_URL + "soap/StockQuoteProxy");
         super.setUp();
     }

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_101_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_101_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_101_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_101_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_101_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_101.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_101.xml");
         super.setUp();
     }
 

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_102_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_102_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_102_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_102_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import org.apache.axis2.AxisFault;
 import samples.userguide.StockQuoteClient;
 
@@ -10,7 +10,7 @@
 public class SynapseSample_102_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_102.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_102.xml");
         super.setUp();
     }
 

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_103_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_103_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_103_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_103_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_103_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_102.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_102.xml");
         System.setProperty("trpurl", SYNAPSE_BASE_URL + "soap/StockQuoteProxy");
         System.setProperty("policy", "./../../repository/conf/sample/resources/policy/client_policy_3.xml");
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_104_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_104_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_104_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_104_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_104_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_104.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_104.xml");
         System.setProperty("addurl", SYNAPSE_BASE_URL + "soap/StockQuoteProxy");
         System.setProperty("symbol", "IBM");
         System.setProperty("mode", "quote");

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_10_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_10_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_10_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_10_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_10_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_10.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_10.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_110_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_110_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_110_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_110_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 
 /**
  *
@@ -8,7 +8,7 @@
 public class SynapseSample_110_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_110.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_110.xml");
 //        System.setProperty("addurl", SYNAPSE_BASE_URL + "soap/StockQuoteProxy");
 //        System.setProperty("symbol", "IBM");
         // todo : setup the JMS

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_111_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_111_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_111_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_111_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 
 /**
  *
@@ -8,7 +8,7 @@
 public class SynapseSample_111_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_111.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_111.xml");
 //        System.setProperty("addurl", SYNAPSE_BASE_URL + "soap/StockQuoteProxy");
         // todo : setup the JMS
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_112_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_112_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_112_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_112_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_112_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_1.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_1.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("mode", "placeorder");
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_113_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_113_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_113_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_113_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 
 /**
  *
@@ -8,7 +8,7 @@
 public class SynapseSample_113_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_113.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_113.xml");
         System.setProperty("addurl", SYNAPSE_BASE_URL + "soap/StockQuoteProxy");
         // todo: JMS setting up
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_114_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_114_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_114_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_114_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 
 /**
  *
@@ -8,7 +8,7 @@
 public class SynapseSample_114_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_114.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_114.xml");
         System.setProperty("addurl", SYNAPSE_BASE_URL + "soap/StockQuoteProxy");
         // todo: JMS setting up
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_11_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_11_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_11_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_11_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_11_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_11.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_11.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_1_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_1_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_1_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_1_Integration.java Wed Sep 19 02:09:01 2007
@@ -19,7 +19,7 @@
 
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -29,7 +29,7 @@
 
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_1.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_1.xml");
         System.setProperty("trpurl", SYNAPSE_BASE_URL + "soap/StockQuote");
         super.setUp();
     }

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_2_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_2_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_2_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_2_Integration.java Wed Sep 19 02:09:01 2007
@@ -19,7 +19,7 @@
 
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -28,7 +28,7 @@
 public class SynapseSample_2_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_2.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_2.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_3_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_3_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_3_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_3_Integration.java Wed Sep 19 02:09:01 2007
@@ -19,7 +19,7 @@
 
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -28,7 +28,7 @@
 public class SynapseSample_3_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_3.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_3.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_4_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_4_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_4_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_4_Integration.java Wed Sep 19 02:09:01 2007
@@ -19,7 +19,7 @@
 
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -28,7 +28,7 @@
 public class SynapseSample_4_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_4.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_4.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         super.setUp();

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_500_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_500_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_500_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_500_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_500_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_500.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_500.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         System.setProperty("mode", "customquote");

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_501_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_501_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_501_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_501_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_501_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_501.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_501.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         System.setProperty("mode", "customquote");

Modified: webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_502_Integration.java
URL: http://svn.apache.org/viewvc/webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_502_Integration.java?rev=577213&r1=577212&r2=577213&view=diff
==============================================================================
--- webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_502_Integration.java (original)
+++ webservices/synapse/trunk/java/modules/samples/src/test/java/org/apache/synapse/samples/n2n/SynapseSample_502_Integration.java Wed Sep 19 02:09:01 2007
@@ -1,6 +1,6 @@
 package org.apache.synapse.samples.n2n;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseConstants;
 import samples.userguide.StockQuoteClient;
 
 /**
@@ -9,7 +9,7 @@
 public class SynapseSample_502_Integration extends AbstractAutomationTestCase {
 
     protected void setUp() throws Exception {
-        System.setProperty(Constants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_502.xml");
+        System.setProperty(SynapseConstants.SYNAPSE_XML, SAMPLE_CONFIG_ROOT_PATH + "synapse_sample_502.xml");
         System.setProperty("addurl", "http://localhost:9000/soap/SimpleStockQuoteService");
         System.setProperty("trpurl", SYNAPSE_BASE_URL);
         super.setUp();



---------------------------------------------------------------------
To unsubscribe, e-mail: synapse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: synapse-dev-help@ws.apache.org


Mime
View raw message