You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by pz...@apache.org on 2005/11/28 17:14:35 UTC

svn commit: r349413 - in /incubator/synapse/trunk/scratch/prototype3: SpringMediator/org/apache/synapse/processors/mediatortypes/spring/ src/org/apache/synapse/ src/org/apache/synapse/axis2/ src/org/apache/synapse/processors/ src/org/apache/synapse/pro...

Author: pzf
Date: Mon Nov 28 08:13:53 2005
New Revision: 349413

URL: http://svn.apache.org/viewcvs?rev=349413&view=rev
Log:
Added comments and Javadoc to a lot of classes

Added:
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java
      - copied, changed from r349405, incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SOAPMessageContext.java
Removed:
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SOAPMessageContext.java
Modified:
    incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessor.java
    incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Constants.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2Sender.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironment.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironmentFinder.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/EmptyMessageReceiver.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseDispatcher.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseMessageReceiver.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AbstractProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/InProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/ListProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/NeverProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/OutProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/RefProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/StageProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/SynapseProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/HeaderProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/LogProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/SendProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/AddressingProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/FaultProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/ClassMediatorProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/axis2/ServiceMediatorProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/RegexProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/XPathProcessor.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractListProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AddressingProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ClassMediatorProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/FaultProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/HeaderProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/InProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/LogProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/NeverProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/OutProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfiguratorFinder.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RefProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RegexProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SendProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ServiceMediatorProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/StageProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SynapseProcessorConfigurator.java
    incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/XPathProcessorConfigurator.java

Modified: incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessor.java Mon Nov 28 08:13:53 2005
@@ -4,7 +4,7 @@
 
 import javax.xml.namespace.QName;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
@@ -13,6 +13,18 @@
 import org.apache.synapse.processors.AbstractProcessor;
 import org.springframework.context.support.GenericApplicationContext;
 
+/**
+ * @author Paul Fremantle
+ * @see org.apache.synapse.processors.mediatortypes.spring.SpringMediatorProcessorConfigurator
+ * <p> This class is the class that "plugs" Spring-based mediators into Synapse. 
+ * <p> A spring based mediator is any object that implements mediator and can be instantiated by
+ * Spring (see www.springframework.org). The mediator definition is set up using the 
+ *  SpringMediatorProcessorConfigurator class.
+ *  
+ * This class simply has a Context property which is set with a Spring GenericApplicationContext and 
+ * a BeanName property, which is set with the name of the bean  
+ *
+ */
 public class SpringMediatorProcessor extends AbstractProcessor {
 	private static final QName tagName = new QName(Constants.SYNAPSE_NAMESPACE
 			+ "/spring", "springmediator");

Modified: incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/SpringMediator/org/apache/synapse/processors/mediatortypes/spring/SpringMediatorProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -9,7 +9,7 @@
 
 import org.apache.axis2.om.OMAttribute;
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;
@@ -23,6 +23,20 @@
 
 
 
+/**
+ * @author Paul Fremantle
+ * @see org.apache.synapse.processors.mediatortypes.spring.SpringMediatorProcessor
+ * <p> This class configures the Spring mediator type. 
+ * <p> The tag looks like this
+ * <xmp>
+ * <spring:springmediator name="x" bean="beanname">
+ * 		<beans> 
+ * 			spring config here
+ *  	</beans>
+ * </xmp>
+ * The spring config is inlined (future work to let it be pointed to with an attribute). The bean attribute identifies
+ * the bean inside the spring assembly to be used. 
+ */
 public class SpringMediatorProcessorConfigurator extends AbstractProcessorConfigurator {
 	private static final QName tagName = new QName(Constants.SYNAPSE_NAMESPACE+"/spring", "springmediator");
 	public Processor createProcessor(SynapseEnvironment se, OMElement el) {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Constants.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Constants.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Constants.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Constants.java Mon Nov 28 08:13:53 2005
@@ -17,53 +17,19 @@
 
 import javax.xml.namespace.QName;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * <p> Global constants for the Synapse project
+ *
+ */
 public class Constants {
-	public static final String SPRINGMEDIATOR = "springmediator";
-
-	public static final String SYNAPSE_MEDIATOR_SPRING_BEAN_FACTORY = "synapse.mediator.spring.beanFactory";
-
-	public static final String SYNAPSE_SPRING_MEDIATOR_NAME = "synapse.spring.mediatorName";
+	
 
 	public static final String CLASSMEDIATOR = "classmediator";
 
-	public static final String SYNAPSE_MEDIATOR_CLASS = "synapse.mediator.class";
-
 	public static final String MEDIATE_OPERATION_NAME = "mediate";
 
-	public static final String SYNAPSE_MEDIATOR_XML_BYTES = "synapse.mediator.xml.bytes";
-
-	public static final String BPELMEDIATOR = "bpelmediator";
-
-	public static final String SYNAPSE_NAMESPACE = "http://ws.apache.org/ns/synapse";
-
-	public static final String SYNAPSE = "synapse";
-
-	public static final String MEDIATOR = "mediator";
-
-	public static final String STAGE = "stage";
-
-	public static final String TYPE = "type";
-
-	public static final QName STAGE_Q = new QName(SYNAPSE_NAMESPACE, STAGE);
-
-	public static final QName MEDIATOR_Q = new QName(SYNAPSE_NAMESPACE,
-			MEDIATOR);
-
-	public static final QName RULE_TYPE_ATT_Q = new QName("", "rule-type");
-
-	public static final QName TYPE_ATT_Q = new QName("", TYPE);
-
-	public static final QName STAGE_NAME_ATT_Q = new QName("", "name");
-
-	public static final QName IN_ORDER_ATTR_Q = new QName("", "order");
-
-	public static final QName OUT_ORDER_ATTR_Q = new QName("", "order");
-
-	public static final String IN = "inphase";
-
-	public static final String OUT = "outphase";
-
-	public static final String MEDIATOR_CONFIGURATION = "synapse.mediator.configuration";
 
 	public static final String MEDIATOR_RESPONSE_PROPERTY = "synapse.mediator.response";
 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2Sender.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2Sender.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2Sender.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2Sender.java Mon Nov 28 08:13:53 2005
@@ -23,7 +23,7 @@
 
 		try {
 
-			MessageContext messageContext = ((Axis2SOAPMessageContext) smc)
+			MessageContext messageContext = ((Axis2SynapseMessage) smc)
 					.getMessageContext();
 			AxisEngine ae = new AxisEngine(messageContext.getSystemContext());
 
@@ -73,7 +73,7 @@
 	}
 
 	public static void sendBack(SynapseMessage smc) {
-		MessageContext messageContext = ((Axis2SOAPMessageContext) smc)
+		MessageContext messageContext = ((Axis2SynapseMessage) smc)
 				.getMessageContext();
 		AxisEngine ae = new AxisEngine(messageContext.getSystemContext());
 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironment.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironment.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironment.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironment.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.axis2;
 
 import java.util.HashMap;
@@ -13,6 +29,13 @@
 
 import org.apache.synapse.xml.ProcessorConfiguratorFinder;
 
+/**
+ * @author Paul Fremantle
+ * @author Anthony Elder
+ * 
+ * <p> This is the Axis2 implementation of the SynapseEnvironment 
+ *
+ */
 public class Axis2SynapseEnvironment implements SynapseEnvironment {
 	private Processor mainprocessor = null;
 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironmentFinder.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironmentFinder.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironmentFinder.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironmentFinder.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.axis2;
 
 import java.io.InputStream;
@@ -15,6 +31,16 @@
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;
 
+/**
+ * @author Paul Fremantle
+ * @author Anthony Elder
+ * 
+ * <p>
+ * The SynapseEnvironment needs to be set up and then is used by the SynapseMessageReceiver to inject messages.
+ * This class is used by the SynapseMessageReceiver to find the environment. The env is stored in a Parameter to the Axis2 config
+ *  
+ *
+ */
 public class Axis2SynapseEnvironmentFinder {
 
 	private static final String SYNAPSECONFIGURATION = "SynapseConfiguration";

Copied: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java (from r349405, incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SOAPMessageContext.java)
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java?p2=incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java&p1=incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SOAPMessageContext.java&r1=349405&r2=349413&rev=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SOAPMessageContext.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseMessage.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.axis2;
 
 import java.util.HashMap;
@@ -11,7 +27,14 @@
 import org.apache.synapse.Constants;
 import org.apache.synapse.SynapseMessage;
 
-public class Axis2SOAPMessageContext implements SynapseMessage {
+/**
+ * @author Paul Fremantle
+ * 
+ * <p>
+ * A wrapper on Axis2's Message Context that implements the SynapseMessage interface
+ *
+ */
+public class Axis2SynapseMessage implements SynapseMessage {
 
 	private MessageContext mc = null;
 
@@ -19,7 +42,7 @@
 
 	private boolean response = false;
 
-	public Axis2SOAPMessageContext(MessageContext mc) {
+	public Axis2SynapseMessage(MessageContext mc) {
 		setMessageContext(mc);
 		Boolean resp = (Boolean) mc.getProperty(Constants.ISRESPONSE_PROPERTY);
 		if (resp != null)

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/EmptyMessageReceiver.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/EmptyMessageReceiver.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/EmptyMessageReceiver.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/EmptyMessageReceiver.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.axis2;
 
 import org.apache.axis2.AxisFault;
@@ -6,6 +22,11 @@
 import org.apache.axis2.engine.MessageReceiver;
 import org.apache.synapse.Constants;
 
+/**
+ * @author Paul Fremantle
+ * <p>Does nothing! Used as an endpoint so we can engage modules
+ *
+ */
 public class EmptyMessageReceiver implements MessageReceiver {
 
 	public void receive(MessageContext mc) throws AxisFault {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseDispatcher.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseDispatcher.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseDispatcher.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseDispatcher.java Mon Nov 28 08:13:53 2005
@@ -26,6 +26,12 @@
 import org.apache.axis2.engine.AbstractDispatcher;
 import org.apache.axis2.engine.AxisConfiguration;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * This sends every message to the SynapseMessageReceiver so that it can pass them to Synapse
+ *
+ */
 public class SynapseDispatcher extends AbstractDispatcher {
 	// FOR EVERY REQUEST - ALWAYS DISPATH TO THE SYNAPSE SERVICE
 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseMessageReceiver.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseMessageReceiver.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseMessageReceiver.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseMessageReceiver.java Mon Nov 28 08:13:53 2005
@@ -25,6 +25,14 @@
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * <p>
+ * 
+ * This is used to "catch" messages in Axis2 and pass them to Synapse for processing.
+ *
+ */
 public class SynapseMessageReceiver implements MessageReceiver {
 
 	private Log log = LogFactory.getLog(getClass());
@@ -33,7 +41,7 @@
 		log.debug("receiving message");
 		SynapseEnvironment env = Axis2SynapseEnvironmentFinder
 				.getSynapseEnvironment(mc);
-		SynapseMessage smc = new Axis2SOAPMessageContext(mc);
+		SynapseMessage smc = new Axis2SynapseMessage(mc);
 		env.injectMessage(smc);
 	}
 }

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AbstractProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AbstractProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AbstractProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AbstractProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,7 +1,30 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors;
 
 import org.apache.synapse.Processor;
 
+/**
+ * @author Paul Fremantle
+ * <p> 
+ * Abstract Processor... simply has a name
+ * 
+ *
+ */
 public abstract class AbstractProcessor implements Processor {
 	private String name = null;
 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/InProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/InProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/InProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/InProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,9 +1,31 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors;
 
 
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * Only processes if this is not a response
+ *
+ */
 public class InProcessor extends ListProcessor{
 
 	public boolean process(SynapseEnvironment se, SynapseMessage sm) {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/ListProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/ListProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/ListProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/ListProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors;
 
 import java.util.Iterator;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/NeverProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/NeverProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/NeverProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/NeverProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,9 +1,30 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors;
 
 
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
+/**
+ * @author Paul Fremantle
+ * This never executes its children. Used as a holder (for references)
+ *
+ */
 public class NeverProcessor extends ListProcessor{
 
 	public boolean process(SynapseEnvironment se, SynapseMessage sm) {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/OutProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/OutProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/OutProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/OutProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,9 +1,32 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors;
 
 
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * <p>
+ * This only executes on response messages
+ *
+ */
 public class OutProcessor extends ListProcessor{
 
 	public boolean process(SynapseEnvironment se, SynapseMessage sm) {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/RefProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/RefProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/RefProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/RefProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors;
 
 import org.apache.commons.logging.Log;
@@ -6,6 +22,12 @@
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * Calls another processor which is referred to by the Ref property.
+ *
+ */
 public class RefProcessor extends AbstractProcessor {
 	private Log log = LogFactory.getLog(getClass());
 	private String ref = null;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/StageProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/StageProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/StageProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/StageProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,8 +1,25 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors;
 
 
 /**
- * @author Paul Fremantle A stage is really just an alias for &ltall&gt
+ * @author Paul Fremantle A stage is a way of naming and grouping a set of elements
+ * 
  * 
  */
 public class StageProcessor extends ListProcessor {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/SynapseProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/SynapseProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/SynapseProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/SynapseProcessor.java Mon Nov 28 08:13:53 2005
@@ -16,5 +16,12 @@
 
 package org.apache.synapse.processors;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * This implements the main processor. Delegates to ListProcessor
+ * Here in case we need the main <synapse> to do anything special
+ *
+ */
 public class SynapseProcessor extends ListProcessor {
 }

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/HeaderProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/HeaderProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/HeaderProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/HeaderProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,20 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
 package org.apache.synapse.processors.builtin;
 
 import org.apache.synapse.HeaderType;
@@ -8,8 +25,9 @@
 
 /**
  * @author Paul Fremantle
- *         <p>
- *        
+ *      @see org.apache.synapse.HeaderType  
+ * <p> Sets aspects of the header to new values.
+ *   Uses HeaderType to set header values     
  * 
  */
 public class HeaderProcessor extends AbstractProcessor {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/LogProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/LogProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/LogProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/LogProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,19 +1,40 @@
-package org.apache.synapse.processors.builtin;
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 
-import javax.xml.namespace.QName;
+package org.apache.synapse.processors.builtin;
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import org.apache.synapse.Constants;
+
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
 import org.apache.synapse.processors.AbstractProcessor;
 
+/**
+ * @author Paul Fremantle
+ * <p>
+ * Logs the message using commons logging
+ * 
+ * <p>
+ * TODO make configurable - short or detailed logs
+ *
+ */
 public class LogProcessor extends AbstractProcessor {
-	private static final QName LOG_Q = new QName(Constants.SYNAPSE_NAMESPACE,
-			"log");
-
+	
 	private Log log = LogFactory.getLog(getClass());
 
 	public boolean process(SynapseEnvironment se, SynapseMessage smc) {
@@ -28,8 +49,5 @@
 		return true;
 	}
 
-	public QName getTagQName() {
-		return LOG_Q;
-	}
 
 }

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/SendProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/SendProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/SendProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/SendProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors.builtin;
 
 import org.apache.commons.logging.Log;
@@ -6,6 +22,13 @@
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseMessage;
 
+/**
+ * @author Paul Fremantle
+ * <p>
+ * 
+ * This sends the message on (or back)
+ *
+ */
 public class SendProcessor extends AbstractProcessor {
 	
 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/AddressingProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/AddressingProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/AddressingProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/AddressingProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors.builtin.axis2;
 
 import javax.xml.namespace.QName;
@@ -21,7 +37,8 @@
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.SynapseMessage;
 
-import org.apache.synapse.axis2.Axis2SOAPMessageContext;
+
+import org.apache.synapse.axis2.Axis2SynapseMessage;
 
 import org.apache.synapse.processors.AbstractProcessor;
 
@@ -38,7 +55,7 @@
 	public boolean process(SynapseEnvironment se, SynapseMessage smc) {
 		log.debug("process");
 		try {
-			MessageContext mc = ((Axis2SOAPMessageContext) smc)
+			MessageContext mc = ((Axis2SynapseMessage) smc)
 					.getMessageContext();
 			ConfigurationContext cc = mc.getSystemContext();
 			AxisConfiguration ac = cc.getAxisConfiguration();

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/FaultProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/FaultProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/FaultProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/builtin/axis2/FaultProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors.builtin.axis2;
 
 
@@ -13,13 +29,14 @@
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.SynapseMessage;
-import org.apache.synapse.axis2.Axis2SOAPMessageContext;
+
+import org.apache.synapse.axis2.Axis2SynapseMessage;
 import org.apache.synapse.processors.AbstractProcessor;
 
 /**
  * @author Paul Fremantle
  *         <p>
- *         <xmp><synapse:fault/> </xmp>
+ *         This returns a fault in response to this message
  * 
  * 
  */
@@ -31,7 +48,7 @@
 		log.debug("process");
 		try {
 
-			MessageContext messageContext = ((Axis2SOAPMessageContext) smc)
+			MessageContext messageContext = ((Axis2SynapseMessage) smc)
 					.getMessageContext();
 			MessageContext outMC = Utils
 					.createOutMessageContext(messageContext);

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/ClassMediatorProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/ClassMediatorProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/ClassMediatorProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/ClassMediatorProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors.mediatortypes;
 
 
@@ -7,6 +23,14 @@
 import org.apache.synapse.api.Mediator;
 import org.apache.synapse.processors.AbstractProcessor;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * This executes the "mediate" operation on a new instance of the specified class
+ * 
+ * TODO add support for simple properties to be set
+ *
+ */
 public class ClassMediatorProcessor extends AbstractProcessor {
 
 	private Class clazz = null;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/axis2/ServiceMediatorProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/axis2/ServiceMediatorProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/axis2/ServiceMediatorProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/mediatortypes/axis2/ServiceMediatorProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors.mediatortypes.axis2;
 
 
@@ -17,9 +33,18 @@
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.SynapseMessage;
-import org.apache.synapse.axis2.Axis2SOAPMessageContext;
+
+import org.apache.synapse.axis2.Axis2SynapseMessage;
 import org.apache.synapse.processors.AbstractProcessor;
 
+/**
+ * @author Paul Fremantle
+ * <p>
+ * This class executes a service in the "owning" axis2 engine.
+ * The service operation will be "mediate" and the service name is set as the ServiceName property
+ * 
+ *
+ */
 public class ServiceMediatorProcessor extends AbstractProcessor {
 	
 
@@ -28,7 +53,7 @@
 	public boolean process(SynapseEnvironment se, SynapseMessage smc) {
 		MessageContext messageContext = null;
 		try {
-			messageContext = ((Axis2SOAPMessageContext) smc)
+			messageContext = ((Axis2SynapseMessage) smc)
 					.getMessageContext();
 		} catch (ClassCastException cce) {
 			throw new SynapseException(

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/RegexProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/RegexProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/RegexProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/RegexProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors.rules;
 
 import java.util.regex.Pattern;
@@ -13,6 +29,11 @@
 
 /**
  * @author Paul Fremantle
+ * <p>
+ * This checks the pattern against a property and if true processes the message with its child or children
+ * <p>
+ * TODO add to the set of properties you can search
+ * 
  * 
  */
 public class RegexProcessor extends ListProcessor {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/XPathProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/XPathProcessor.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/XPathProcessor.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/rules/XPathProcessor.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.processors.rules;
 
 import org.apache.axis2.om.xpath.AXIOMXPath;
@@ -13,8 +29,10 @@
  * @author Paul Fremantle
  * 
  * <p>
- * This class executes a test and then processes all subsequent rules/mediations
+ * This class executes an XPath test against the message envelope and then processes all subsequent rules/mediations
  * if the test is true
+ * <p>
+ * TODO add the context into the XPath matching space
  * 
  */
 public class XPathProcessor extends ListProcessor {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractListProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractListProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractListProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractListProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.synapse.xml;
 
 import java.util.Iterator;
@@ -13,6 +28,13 @@
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.ListProcessor;
 
+/**
+ * @author Paul Fremantle 
+ * 
+ * <p> This is the abstract parent of any tag which is a "Node" - so &ltstage>, &ltin>&ltout> and &ltnever> all fit this model
+ * <p>It recursively creates a list of processors from the children. 
+ *
+ */
 public abstract class AbstractListProcessorConfigurator extends AbstractProcessorConfigurator {
 
 	Log log = LogFactory.getLog(getClass());

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AbstractProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
@@ -9,6 +24,13 @@
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * <p> This is the abstract superclass of any tag that isn't a "node". I.e. mediators or builtin
+ * mediators like log
+ *
+ */
 public abstract class AbstractProcessorConfigurator implements ProcessorConfigurator {
 
 	

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AddressingProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AddressingProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AddressingProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/AddressingProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,19 +1,35 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.builtin.axis2.AddressingProcessor;
 
 /**
  * @author Paul Fremantle
+ * 
+ *  <xmp><synapse:addressing/></xmp>
  *         <p>
- *         This class turns on the addressing module and then calls an empty
- *         service There's probably a better way but this should work!
+ *         This tag turns on the addressing module 
  * 
  */
 public class AddressingProcessorConfigurator extends AbstractProcessorConfigurator {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ClassMediatorProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ClassMediatorProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ClassMediatorProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ClassMediatorProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,15 +1,35 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMAttribute;
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;
 import org.apache.synapse.processors.mediatortypes.ClassMediatorProcessor;
 
+/**
+ * @author Paul Fremantle
+ * <xmp><synapse:classmediator name="nm" class="org.fremantle.mediator"</synapse:classmediator></xmp>
+ * TODO add ability to configure properties with Strings/OMElements based on children.
+ */
 public class ClassMediatorProcessorConfigurator extends AbstractProcessorConfigurator {
 	private static final QName CLM_Q = new QName(Constants.SYNAPSE_NAMESPACE,
 			"classmediator");

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/FaultProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/FaultProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/FaultProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/FaultProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,10 +1,25 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.builtin.axis2.FaultProcessor;
@@ -12,8 +27,8 @@
 /**
  * @author Paul Fremantle
  *         <p>
- *         <xmp><synapse:fault/> </xmp>
- * 
+ *         <xmp><synapse:fault name="optional"/> </xmp>
+ * 	TODO add the ability to configure the fault codes, etc
  * 
  */
 public class FaultProcessorConfigurator extends AbstractProcessorConfigurator {

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/HeaderProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/HeaderProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/HeaderProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/HeaderProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,18 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
@@ -5,7 +20,7 @@
 
 import org.apache.axis2.om.OMAttribute;
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;
@@ -14,7 +29,7 @@
 /**
  * @author Paul Fremantle
  *         <p>
- *         <xmp><synapse:header type="to|from|faultto|replyto|action"
+ *         <xmp><synapse:header name="optional" type="to|from|faultto|replyto|action"
  *         value="newvalue"/> </xmp>
  * 
  * 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/InProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/InProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/InProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/InProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,9 +1,24 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 
 import org.apache.synapse.SynapseEnvironment;
@@ -11,6 +26,14 @@
 
 
 
+/**
+ * @author Paul Fremantle
+ * 
+ * <p>
+ * <xmp><in name="optional">.... </in></xmp>
+ * Uses children if processing an request (i.e. if !response).  
+ *
+ */
 public class InProcessorConfigurator extends
 		AbstractListProcessorConfigurator {
 	private static final QName IN_Q = new QName(Constants.SYNAPSE_NAMESPACE,

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/LogProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/LogProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/LogProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/LogProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,14 +1,40 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMElement;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.builtin.LogProcessor;
 
+/**
+ * @author Paul Fremantle
+ * 
+ * <p>
+ * Logs messages using Commons-logging. 
+ * 
+ * <xmp><log name="optional"/></xmp>
+ * TODO add support for simple one-line log entry (doesn't cause body parsing)
+ *
+ */
 public class LogProcessorConfigurator extends AbstractProcessorConfigurator {
 	private static final QName LOG_Q = new QName(Constants.SYNAPSE_NAMESPACE,
 			"log");

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/NeverProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/NeverProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/NeverProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/NeverProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,14 +1,39 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.NeverProcessor;
 
 
+/**
+ * @author Paul Fremantle
+ * 
+ * <xmp><synapse:never name="optional"><more stuff in here></synapse:never></xmp>
+ * Stuff in here never gets processed
+ * You might think that a bit useless, but it lets you put things you want to refer to from elsewhere
+ *
+ *
+ */
 public class NeverProcessorConfigurator extends
 		AbstractListProcessorConfigurator {
 	private static final QName NEVER_Q = new QName(Constants.SYNAPSE_NAMESPACE,

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/OutProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/OutProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/OutProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/OutProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,9 +1,25 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.OutProcessor;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfiguratorFinder.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfiguratorFinder.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfiguratorFinder.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ProcessorConfiguratorFinder.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,20 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
 package org.apache.synapse.xml;
 
 import java.util.HashMap;
@@ -69,7 +86,7 @@
 		}
 	}
 
-	/**
+                            	/**
 	 * @param qn
 	 * @return the class which implements the Processor for the given QName
 	 */

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RefProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RefProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RefProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RefProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,10 +1,27 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMAttribute;
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RegexProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RegexProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RegexProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/RegexProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,20 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
 package org.apache.synapse.xml;
 
 
@@ -8,7 +25,7 @@
 import org.apache.axis2.om.OMElement;
 
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SendProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SendProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SendProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SendProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
@@ -5,7 +21,7 @@
 import org.apache.axis2.om.OMElement;
 
 import org.apache.synapse.processors.builtin.SendProcessor;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ServiceMediatorProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ServiceMediatorProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ServiceMediatorProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/ServiceMediatorProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,20 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
@@ -6,7 +23,7 @@
 import org.apache.axis2.om.OMAttribute;
 import org.apache.axis2.om.OMElement;
 
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/StageProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/StageProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/StageProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/StageProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,13 +1,33 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.StageProcessor;
 
+/**
+ * @author Paul Fremantle
+ *<xmp><synapse:stage name="optional"> do everything in here </synapse:stage></xmp>
+ */
 public class StageProcessorConfigurator extends
 		AbstractListProcessorConfigurator {
 	private static final QName STAGE_Q = new QName(Constants.SYNAPSE_NAMESPACE,

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SynapseProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SynapseProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SynapseProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/SynapseProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,9 +1,25 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import javax.xml.namespace.QName;
 
 import org.apache.axis2.om.OMElement;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.processors.SynapseProcessor;

Modified: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/XPathProcessorConfigurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/XPathProcessorConfigurator.java?rev=349413&r1=349412&r2=349413&view=diff
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/XPathProcessorConfigurator.java (original)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/xml/XPathProcessorConfigurator.java Mon Nov 28 08:13:53 2005
@@ -1,3 +1,19 @@
+/*
+ * Copyright 2004,2005 The Apache Software Foundation.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
 package org.apache.synapse.xml;
 
 import java.util.Iterator;
@@ -7,7 +23,7 @@
 import org.apache.axis2.om.OMAttribute;
 import org.apache.axis2.om.OMElement;
 import org.apache.axis2.om.OMNamespace;
-import org.apache.synapse.Constants;
+import org.apache.synapse.xml.Constants;
 import org.apache.synapse.Processor;
 import org.apache.synapse.SynapseEnvironment;
 import org.apache.synapse.SynapseException;



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