[jboss-svn-commits] JBL Code SVN: r6184 - in labs/jbossesb/workspace/eschifman: . src src/org src/org/jboss src/org/jboss/soa src/org/jboss/soa/esb src/org/jboss/soa/esb/messaging src/org/jboss/soa/esb/messaging/adapters src/org/jboss/soa/esb/messaging/interfaces src/org/jboss/soa/esbcore src/org/jboss/soa/esbcore/addressing src/org/jboss/soa/esbcore/common src/org/jboss/soa/esbcore/contract src/org/jboss/soa/esbcore/contract/client src/org/jboss/soa/esbcore/contract/service src/org/jboss/soa/esbcore/exceptions

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Tue Sep 12 16:50:44 EDT 2006


Author: estebanschifman
Date: 2006-09-12 16:50:36 -0400 (Tue, 12 Sep 2006)
New Revision: 6184

Added:
   labs/jbossesb/workspace/eschifman/src/
   labs/jbossesb/workspace/eschifman/src/org/
   labs/jbossesb/workspace/eschifman/src/org/jboss/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/EsbStandardMessage.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/ExampleXmlAdapter.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/XMLUtil.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgContext.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgHeader.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfStandardMessage.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/EPR.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/Interaction.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/PortReference.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/common/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/common/Protocols.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/DispatcherContract.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/ClientPluginContract.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/SenderPluginContract.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/service/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/service/ReceiverPluginContract.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/MarshalException.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/ProtocolNotSupportedException.java
   labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/SendFailedException.java
Log:


Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/EsbStandardMessage.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/EsbStandardMessage.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/EsbStandardMessage.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,75 @@
+package org.jboss.soa.esb.messaging;
+
+import java.util.*;
+
+import org.jboss.soa.esb.messaging.interfaces.ItfMsgContext;
+import org.jboss.soa.esb.messaging.interfaces.ItfMsgHeader;
+import org.jboss.soa.esb.messaging.interfaces.ItfStandardMessage;
+
+public class EsbStandardMessage implements ItfStandardMessage
+{
+	public ItfMsgHeader getHeader() 		{ return _header; }
+	public void setHeader(ItfMsgHeader pObj){ _header	= pObj; }
+
+	public ItfMsgContext getContext() 		{ return _context; }
+	public void setContext(ItfMsgContext pObj) { _context = pObj; }
+
+	private Map<String,Object> getAttachmentMap()
+	{	return (null!=_attachments) ? _attachments
+			: (_attachments = new HashMap<String,Object>());
+	}
+	public Map<String, Object> getAttachments() { return _attachments; }
+	public Set<String>getAttachmentNames()
+	{	return (null==_attachments) ? new HashSet<String>()
+			: (_attachments.keySet());
+	}	
+	public Object getAttachment(String pName) throws IllegalArgumentException 
+	{
+		return (null==_attachments)? null : _attachments.get(pName);
+	}
+
+	public Object setAttachment(String pName, Object pObj)  throws IllegalArgumentException
+	{
+		return (null==pObj) ? removeAttachment(pName)
+			: getAttachmentMap().put(pName,pObj);
+	}
+
+	public Object removeAttachment(String pName) throws IllegalArgumentException 
+	{	return (null==_attachments) ? null : _attachments.remove(pName);
+	}
+
+	private Map<String,Object> getPropertyMap()
+	{	return (null!=_properties) ? _properties
+			: (_properties = new HashMap<String,Object>());
+	}
+	public Map<String, Object> getProperties() { return _properties; }
+	public Set<String>getPropertyNames()
+	{	return (null==_properties) ? new HashSet<String>()
+			: (_properties.keySet());
+	}	
+	public Object getProperty(String pName) throws IllegalArgumentException 
+	{
+		return (null==_properties)? null : _properties.get(pName);
+	}
+
+	public Object setProperty(String pName, Object pObj)  throws IllegalArgumentException
+	{
+		return (null==pObj) ? removeProperty(pName)
+			: getPropertyMap().put(pName,pObj);
+	}
+
+	public Object removeProperty(String pName) throws IllegalArgumentException 
+	{	return (null==_properties) ? null : _properties.remove(pName);
+	}
+
+	public Object getBody() 		{ return _body; }
+	public void setBody(Object pObj){ _body = pObj; }
+
+	
+	protected ItfMsgHeader		_header;
+	protected ItfMsgContext		_context;
+	protected Map<String,Object> _attachments;
+	protected Map<String,Object> _properties;
+	protected Object			_body;
+	
+} //____________________________________________________________________________

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/ExampleXmlAdapter.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/ExampleXmlAdapter.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/ExampleXmlAdapter.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,83 @@
+package org.jboss.soa.esb.messaging.adapters;
+
+import java.io.*;
+import org.jboss.soa.esb.messaging.*;
+
+import javax.xml.parsers.*;
+import org.w3c.dom.*;
+import org.xml.sax.*;
+import org.xml.sax.helpers.*;
+
+/**
+ * 
+ * @author
+ *
+ */
+public class ExampleXmlAdapter
+{
+	/**
+	 * Beat instantiation
+	 */
+	private ExampleXmlAdapter() {}
+
+
+	public static void toWriter(EsbStandardMessage pMsg, Writer pWr)
+	{
+		//TODO put your real XML formatting here
+	} //________________________________
+
+	public static String toString(EsbStandardMessage pMsg)
+	{
+		StringWriter oW = new StringWriter();
+		toWriter(pMsg,oW);
+		return oW.toString();
+	} //________________________________
+	
+	public static EsbStandardMessage getFromReader(Reader pRdr)
+		throws SAXException,IOException,ParserConfigurationException
+	{
+		return getFromElement(fromReader(pRdr));
+	} //________________________________
+
+	public static EsbStandardMessage getFromString(String pXml)
+		throws Exception
+	{
+		return getFromElement(fromReader(new StringReader(pXml)));
+	} //________________________________
+	
+	private static EsbStandardMessage getFromElement(Element pElem)
+	{
+		EsbStandardMessage oRet = new EsbStandardMessage();
+		//TODO put your adapter from a org.w3c.dom.Element logic here
+		return oRet;
+	} //________________________________	
+
+	static
+	  { 
+		System.setProperty("javax.xml.parsers.SAXParserFactory",
+	                         "org.apache.xerces.jaxp.SAXParserFactoryImpl");
+	  }
+
+	private static Element fromReader(Reader pRdr)
+		throws SAXException, ParserConfigurationException, IOException
+	{
+	    SAXParser oParser = SAXParserFactory.newInstance().newSAXParser();
+	    XMLReader oXmlRd  = oParser.getXMLReader();
+	    MyHandler oHandler = new MyHandler();
+	    oXmlRd.setContentHandler(oHandler);
+	    oXmlRd.parse(new InputSource(pRdr));
+	    return oHandler._document.getDocumentElement();
+	} //________________________________
+
+	private static class MyHandler extends DefaultHandler
+	{
+		Document		_document;
+
+		//TODO  Implement your callbacks here
+		MyHandler() throws ParserConfigurationException
+		{
+			 DocumentBuilder oDB = DocumentBuilderFactory.newInstance().newDocumentBuilder();
+			 _document = oDB.newDocument();
+		}		
+	} //________________________________
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/XMLUtil.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/XMLUtil.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/adapters/XMLUtil.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,62 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * XMLUtil.java
+ */
+
+package org.jboss.soa.esb.messaging.adapters;
+
+public class XMLUtil
+{
+    // WS-Addr
+
+    public static final String WSA_PREFIX = "wsa";
+    public static final String WSA_NAMESPACE_URI = "http://schemas.xmlsoap.org/ws/2004/08/addressing";
+
+    public static final String ENDPOINT_REFERENCE_TAG   = "EndpointReference";
+    public static final String MESSAGE_IDENTIFIER_TAG   = "MessageID";
+    public static final String REFERENCE_PROPERTIES_TAG = "ReferenceProperties";
+    public static final String REFERENCE_PARAMETERS_TAG = "ReferenceParameters";
+    public static final String REPLY_TO_TAG             = "ReplyTo";
+    public static final String FROM_TAG            		= "From";
+
+    public static final String TO_TAG                   = "To";
+    public static final String ADDRESS_TAG              = "Address";
+    public static final String ACTION_TAG               = "Action";
+    public static final String RELATES_TO_TAG           = "RelatesTo";
+    public static final String FAULT_TO_TAG             = "FaultTo";
+
+    // WS-ARJADDR
+
+    public static final String WSARJADDR_PREFIX        = "wsarjaddr";
+    public static final String WSARJADDR_NAMESPACE_URI = "http://schemas.arjuna.com/ws/2004/06/wsarjaddr";
+
+    public static final String INSTANCE_IDENTIFIER_TAG = "InstanceIdentifier";
+
+    public static final String UNKNOWNERROR_ERROR_CODE = "UnknownError";
+    
+    // XML Namespace
+    public static final String XMLNS_URI = "http://www.w3.org/2000/xmlns/" ;
+    public static final String XMLNS_PREFIX = "xmlns:" ;
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgContext.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgContext.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgContext.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,9 @@
+package org.jboss.soa.esb.messaging.interfaces;
+
+public interface ItfMsgContext 
+{
+	//TODO Still not clear on what transaction info is
+	Object getTransactionInfo();
+	//TODO Still not clear on what security info is
+	Object getSecurityInfo();
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgHeader.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgHeader.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfMsgHeader.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,7 @@
+package org.jboss.soa.esb.messaging.interfaces;
+
+public interface ItfMsgHeader extends java.io.Serializable
+{
+	//TODO Still not clear on what routing info is
+	Object getRoutingInfo();
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfStandardMessage.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfStandardMessage.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esb/messaging/interfaces/ItfStandardMessage.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,29 @@
+package org.jboss.soa.esb.messaging.interfaces;
+
+import java.util.*;
+
+public interface ItfStandardMessage
+{
+	public ItfMsgHeader	getHeader();
+	public void setHeader(ItfMsgHeader pObj);
+	
+	public ItfMsgContext	getContext();
+	public void setContext(ItfMsgContext pObj);
+
+	public Map <String,Object>	getAttachments();
+	public Set<String>			getAttachmentNames();
+	public Object setAttachment		(String pName, Object pObj)
+			throws IllegalArgumentException;
+	public Object getAttachment		(String pName) throws IllegalArgumentException;
+	public Object removeAttachment	(String pName) throws IllegalArgumentException;
+
+	public Map <String,Object>	getProperties();
+	public Set<String>			getPropertyNames();
+	public Object setProperty		(String pName, Object pObj)
+			throws IllegalArgumentException;
+	public Object getProperty		(String pName) throws IllegalArgumentException;
+	public Object removeProperty	(String pName) throws IllegalArgumentException;
+
+	public Object	getBody			();
+	public void 	setBody			(Object pObj);
+} //____________________________________________________________________________

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/EPR.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/EPR.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/EPR.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,59 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+package org.jboss.soa.esbcore.addressing;
+
+/**
+ * This class represents the endpoint reference for services.
+ */
+
+import java.net.URI;
+
+public class EPR
+{
+	public EPR () {}
+	public EPR (URI uri)
+	{
+		_uri = new PortReference(uri.toString());		
+	}
+	
+	public void copy (EPR from)
+	{
+		EPR fromImpl = (EPR) from;
+		
+		_uri = fromImpl._uri;
+	}
+	
+	public void setUri(PortReference pUri) { _uri = pUri; }
+	public PortReference getUri() { return _uri; }
+	
+//	public void setMetaData (MetaData md);
+//	public MetaData getMetaData ();
+//	public void addReferenceParameter (...);
+//	public ??? getReferenceParameters ();
+	
+	public String toString ()
+	{
+		return "URI: "+_uri;
+	}
+	
+	private PortReference _uri;
+} 
\ No newline at end of file

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/Interaction.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/Interaction.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/Interaction.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,142 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+package org.jboss.soa.esbcore.addressing;
+
+/**
+ * This class represents an interaction between endpoints
+ */
+
+import java.net.URI;
+import java.net.URISyntaxException;
+
+public class Interaction
+{
+	public Interaction ()
+	{
+		_to = new PortReference();
+		_from = _replyTo = _relatesTo = _faultTo = null;
+		_action = _messageID = null;
+	}
+	
+	public Interaction (URI uri)
+	{
+		_to = new PortReference(uri.toString());
+		
+		_from = _replyTo = _relatesTo = _faultTo = null;
+		_action = _messageID = null;
+	}
+	
+	public void setTo (PortReference uri)
+	{
+		_to = uri;
+	}
+	
+	public PortReference getTo () throws URISyntaxException
+	{
+		return _to;
+	}
+	
+	public void setFrom (EPR epr)
+	{
+		_from = epr;
+	}
+	
+	public EPR getFrom () throws URISyntaxException
+	{
+		return _from;
+	}
+	
+	public void setReplyTo (EPR epr)
+	{
+		_replyTo = epr;
+	}
+	
+	public EPR getReplyTo () throws URISyntaxException
+	{
+		return _replyTo;
+	}
+	
+	public void setFaultTo (EPR epr)
+	{
+		_faultTo = epr;
+	}
+	
+	public EPR getFaultTo () throws URISyntaxException
+	{
+		return _faultTo;
+	}
+	
+	public void setRelatesTo (EPR epr)
+	{
+		_relatesTo = epr;
+	}
+	
+	public EPR getRelatesTo () throws URISyntaxException
+	{
+		return _relatesTo;
+	}
+	
+	public void setAction (URI uri)
+	{
+		_action = uri;
+	}
+
+	public URI getAction () throws URISyntaxException
+	{
+		return _action;
+	}
+	
+	public void setMessageID (URI uri)
+	{
+		_messageID = uri;
+	}
+	
+	public URI getMessageID () throws URISyntaxException
+	{
+		return _messageID;
+	}
+	
+	public void copy (Interaction from)
+	{
+		_to = from._to;
+		_from = from._from;
+		_replyTo = from._replyTo;
+		_relatesTo = from._relatesTo;
+		_faultTo = from._faultTo;
+		_action = from._action;
+		_messageID = from._messageID;
+	}
+	
+	public String toString ()
+	{
+		return "To: "+_to+" From: "+_from+" ReplyTo: "+_replyTo+" FaultTo: "+_faultTo+" Action: "+_action;
+	}
+		
+	private PortReference _to;
+	private EPR _from;
+	private EPR _faultTo;
+	private EPR _replyTo;
+	private EPR _relatesTo;
+	private URI _action;
+	private URI _messageID;
+	
+} 
\ No newline at end of file

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/PortReference.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/PortReference.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/addressing/PortReference.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,330 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+/*
+ * Copyright (c) 2002, 2003, Arjuna Technologies Limited.
+ *
+ * PortReference.java
+ */
+
+package org.jboss.soa.esbcore.addressing;
+
+import java.util.*;
+
+import org.jboss.soa.esb.messaging.adapters.XMLUtil;
+
+
+/**
+ * An implementation of a WS-Addressing EPR. It needs completely rewriting after
+ * the interoperability workshop as it is not extensible and not guaranteed to
+ * work in the general case. It's morphed with the changing WS-C/WS-T and
+ * WS-Addr specifications and their quirks; now that WS-Addr is finalized the
+ * old quirks no longer need to be supported so it's best to rewrite this from
+ * scratch.
+ * 
+ * An instance of a PortReference represents a single element in WS-A.
+ */
+
+public class PortReference {
+	public PortReference() {
+	}
+
+	public PortReference(String address) {
+		setAddress(address);
+	}
+
+	public void setAddress(String address) {
+		_address = address;
+	}
+
+	public String getAddress() {
+		return _address;
+	}
+
+	public void addExtension(PortReference.Extension extension) {
+		_extensions.add(extension);
+	}
+
+	// all extensions are added as the Arjuna namespace.
+
+	public void addExtension(String value) {
+		addExtension(XMLUtil.INSTANCE_IDENTIFIER_TAG, XMLUtil.WSARJADDR_PREFIX,
+				XMLUtil.WSARJADDR_NAMESPACE_URI, value,
+				Extension.REFERENCE_PROPERTIES);
+	}
+
+	public void addExtension(String tag, String value) {
+		addExtension(tag, XMLUtil.WSARJADDR_PREFIX,
+				XMLUtil.WSARJADDR_NAMESPACE_URI, value,
+				Extension.REFERENCE_PROPERTIES);
+	}
+
+	/**
+	 * Define the tag, prefix and namespace URI for the extension value. The
+	 * parent is a refProperty.
+	 */
+
+	public void addExtension(String tag, String prefix, String uri, String value) {
+		_extensions.add(new Extension(tag, prefix, uri, value,
+				Extension.REFERENCE_PROPERTIES));
+	}
+
+	/**
+	 * Define the tag, prefix and namespace URI for the extension value. The
+	 * parent field defines whether the attribute has a refParam, refProp or
+	 * neither as its parent.
+	 */
+
+	public void addExtension(String tag, String prefix, String uri,
+			String value, int parent) {
+		_extensions.add(new Extension(tag, prefix, uri, value, parent));
+	}
+
+	// placeholders only
+
+	public void addPortType(String qName) {
+	}
+
+	public void addServiceName(String portName, String qName) {
+	}
+
+	public void addPolicy() {
+	}
+
+	public String getExtensionValue(String tag) {
+		String extensionValue = null;
+		Iterator iterator = _extensions.iterator();
+
+		while (iterator.hasNext() && (extensionValue == null)) {
+			Extension extension = (Extension) iterator.next();
+
+			if (tag.equals(extension.getTag()))
+				extensionValue = extension.getValue();
+		}
+
+		return extensionValue;
+	}
+
+	public Iterator getExtensions() {
+		return _extensions.iterator();
+	}
+
+	public void clearExtensions() {
+		_extensions.clear();
+	}
+
+	public String toString() {
+		return "PortReference < " + _address + " >";
+	}
+
+	public String extendedToString() {
+		String addr = "<" + XMLUtil.WSA_PREFIX + ":Address " + _address + "/>";
+
+		Iterator extensions = getExtensions();
+
+		while (extensions.hasNext()) {
+			Extension ext = (Extension) extensions.next();
+
+			addr += ", <" + XMLUtil.WSA_PREFIX + ":"
+					+ XMLUtil.REFERENCE_PROPERTIES_TAG + " " + ext.getPrefix()
+					+ ":" + ext.getTag() + " : " + ext.getValue() + "/>";
+		}
+
+		return "PortReference : " + addr;
+	}
+
+	/**
+	 * Is this object equal to the specified parameter?
+	 * 
+	 * @param rhs
+	 *            The rhs object.
+	 * @return true if the specified object is equal, false otherwise.
+	 */
+	public boolean equals(final Object rhs) {
+		if ((rhs != null) && (rhs.getClass() == getClass())) {
+			// This should really only include reference property extensions
+			final PortReference rhsPortReference = (PortReference) rhs;
+			return (equalsObject(_address, rhsPortReference._address)
+					&& equalsObject(_extensions, rhsPortReference._extensions)
+					&& equalsObject(_portType, rhsPortReference._portType)
+					&& equalsObject(_serviceName, rhsPortReference._serviceName) && equalsObject(
+					_policies, rhsPortReference._policies));
+		}
+		return false;
+	}
+
+	/**
+	 * Return the hash code for this object.
+	 * 
+	 * @return the hash code value.
+	 */
+	public int hashCode() {
+		// Not checked for spread.
+		return (objectHashCode(_address, 0x1)
+				^ objectHashCode(_extensions, 0x2)
+				^ objectHashCode(_portType, 0x4)
+				^ objectHashCode(_serviceName, 0x8) ^ objectHashCode(_policies,
+				0x10));
+	}
+
+	public static class Extension {
+		public static final int REFERENCE_PROPERTIES = 0;
+		public static final int REFERENCE_PARAMETERS = 1;
+		public static final int NEITHER = 2;
+
+		public Extension(String tag, String prefix, String uri) {
+			this(tag, prefix, uri, null, REFERENCE_PROPERTIES);
+		}
+
+		public Extension(String tag, String prefix, String uri, String value) {
+			this(tag, prefix, uri, value, REFERENCE_PROPERTIES);
+		}
+
+		public Extension(String tag, String prefix, String uri, String value,
+				int parent) {
+			_tag = tag;
+			_prefix = prefix;
+			_uri = uri;
+			_value = value;
+			_parent = parent;
+		}
+
+		public int getParent() {
+			return _parent;
+		}
+
+		public String getTag() {
+			return _tag;
+		}
+
+		public String getPrefix() {
+			return _prefix;
+		}
+
+		public String getURI() {
+			return _uri;
+		}
+
+		public String getValue() {
+			return _value;
+		}
+
+		public List getChildren() {
+			return _extensions;
+		}
+
+		public HashMap getAttributes() {
+			return _attributes;
+		}
+
+		public void addAttributes(HashMap props) {
+			_attributes = props;
+		}
+
+		public void addChild(Extension child) {
+			if (_extensions == null)
+				_extensions = new LinkedList<Extension>();
+
+			_extensions.add(child);
+		}
+
+		public String toString() {
+			return new String("< " + _tag + ", " + _prefix + ", " + _uri + ", "
+					+ _value + " >");
+		}
+
+		/**
+		 * Is this object equal to the specified parameter (ignoring prefix)?
+		 * 
+		 * @param rhs
+		 *            The rhs object.
+		 * @return true if the specified object is equal, false otherwise.
+		 */
+		public boolean equals(final Object rhs) {
+			if ((rhs != null) && (rhs.getClass() == getClass())) {
+				final Extension rhsExtension = (Extension) rhs;
+				return (equalsObject(_tag, rhsExtension._tag)
+						&& equalsObject(_uri, rhsExtension._uri)
+						&& equalsObject(_value, rhsExtension._value)
+						&& equalsObject(_extensions, rhsExtension._extensions) && (_parent == rhsExtension._parent));
+			}
+			return false;
+		}
+
+		/**
+		 * Return the hash code for this object.
+		 * 
+		 * @return the hash code value.
+		 */
+		public int hashCode() {
+			// Not checked for spread.
+			return (_parent ^ objectHashCode(_tag, 0x4)
+					^ objectHashCode(_uri, 0x8) ^ objectHashCode(_value, 0x10) ^ objectHashCode(
+					_extensions, 0x20));
+		}
+
+		private String _tag = null;
+		private String _prefix = null;
+		private String _uri = null;
+		private String _value = null;
+		private int _parent = NEITHER;
+		private List<Extension> _extensions = null;
+		private HashMap _attributes = null;
+
+	}
+
+	/**
+	 * Get the hash code from the object or use the default if null.
+	 * 
+	 * @param obj
+	 *            The object.
+	 * @param defaultHashCode
+	 *            The default hash code.
+	 * @return The hash code.
+	 */
+	static int objectHashCode(final Object obj, final int defaultHashCode) {
+		return (obj == null ? defaultHashCode : obj.hashCode());
+	}
+
+	/**
+	 * Are the two objects equal?
+	 * 
+	 * @param lhs
+	 *            The lhs object.
+	 * @param rhs
+	 *            The rhs object.
+	 * @return true if equal or both null, false otherwise.
+	 */
+	static boolean equalsObject(final Object lhs, final Object rhs) {
+		if (lhs == null) {
+			return (rhs == null);
+		} else {
+			return lhs.equals(rhs);
+		}
+	}
+
+	private String 	_address = null;
+	private List<Extension> _extensions = new LinkedList<Extension>();
+	private Extension _portType = null;
+	private Extension _serviceName = null;
+	private List 	_policies = null;
+
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/common/Protocols.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/common/Protocols.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/common/Protocols.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,31 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+package org.jboss.soa.esbcore.common;
+
+public abstract class Protocols
+{
+	public static final String TCP = "tcp";
+	public static final String JMS = "jms";
+	public static final String UDP = "udp";
+	public static final String SOAP = "soap";
+	public static final String HTTP = "http";
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/DispatcherContract.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/DispatcherContract.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/DispatcherContract.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,49 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+package org.jboss.soa.esbcore.contract;
+
+import org.jboss.soa.esbcore.contract.client.SenderPluginContract;
+import org.jboss.soa.esbcore.contract.service.ReceiverPluginContract;
+
+
+/**
+ * This class represents the contract definition that exists between the client/service
+ * and the dispatcher hierarchy.
+ */
+
+public interface DispatcherContract
+{
+	public boolean equals (Object cd); // true if two contracts are semantically equivalent.
+	
+	/*
+	 * Need more information here, such as initialisation parameters etc.
+	 */
+	
+	public String getClassName ();
+	public void setClassName (String className);
+	
+	public SenderPluginContract getSenderPluginContract ();
+	public void setSenderPluginContract (SenderPluginContract contract);
+	
+	public ReceiverPluginContract getReceiverPluginContract ();
+	public void setReceiverPluginContract (ReceiverPluginContract contract);
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/ClientPluginContract.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/ClientPluginContract.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/ClientPluginContract.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,48 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+package org.jboss.soa.esbcore.contract.client;
+
+import org.jboss.soa.esbcore.contract.DispatcherContract;
+
+
+/**
+ * This class represents the contract definition that exists between the dispatcher
+ * and the client interface to the messaging infrastructure.
+ */
+
+public interface ClientPluginContract
+{
+	public boolean equals (Object cd); // true if two contracts are semantically equivalent.
+	
+	/*
+	 * Need more information here, such as initialisation parameters etc.
+	 */
+
+	// public void fromXML (String doc);
+	// public String toXML ();
+	
+	public String getClassName ();
+	public void setClassName (String className);
+	
+	public DispatcherContract getDispatcherContract ();
+	public void setDispatcherContract (DispatcherContract contract);
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/SenderPluginContract.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/SenderPluginContract.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/client/SenderPluginContract.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,39 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+package org.jboss.soa.esbcore.contract.client;
+
+/**
+ * This class represents the contract definition that exists between the dispatcher
+ * and the client interface to the messaging infrastructure.
+ */
+
+public interface SenderPluginContract
+{
+	public boolean equals (Object cd); // true if two contracts are semantically equivalent.
+	
+	/*
+	 * Need more information here, such as initialisation parameters etc.
+	 */
+	
+	public String getClassName ();
+	public void setClassName (String className);
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/service/ReceiverPluginContract.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/service/ReceiverPluginContract.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/contract/service/ReceiverPluginContract.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,40 @@
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+
+package org.jboss.soa.esbcore.contract.service;
+
+/**
+ * This class represents the contract definition that exists between the dispatcher
+ * and the client interface to the messaging infrastructure.
+ */
+
+public interface ReceiverPluginContract
+{
+	public boolean equals (Object cd); // true if two contracts are semantically equivalent.
+	
+	/*
+	 * Need more information here, such as initialisation parameters etc.
+	 */
+	
+	public String getClassName ();
+	public void setClassName (String className);
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/MarshalException.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/MarshalException.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/MarshalException.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,37 @@
+package org.jboss.soa.esbcore.exceptions;
+
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+import java.lang.Exception;
+
+ at SuppressWarnings("serial")
+public class MarshalException extends Exception {
+
+	public MarshalException () {
+		super();
+	}
+
+	public MarshalException (String s) {
+		super(s);
+	}
+
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/ProtocolNotSupportedException.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/ProtocolNotSupportedException.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/ProtocolNotSupportedException.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,37 @@
+package org.jboss.soa.esbcore.exceptions;
+
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+import java.lang.Exception;
+
+ at SuppressWarnings("serial")
+public class ProtocolNotSupportedException extends Exception {
+
+	public ProtocolNotSupportedException () {
+		super();
+	}
+
+	public ProtocolNotSupportedException (String s) {
+		super(s);
+	}
+
+}

Added: labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/SendFailedException.java
===================================================================
--- labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/SendFailedException.java	2006-09-12 20:48:54 UTC (rev 6183)
+++ labs/jbossesb/workspace/eschifman/src/org/jboss/soa/esbcore/exceptions/SendFailedException.java	2006-09-12 20:50:36 UTC (rev 6184)
@@ -0,0 +1,48 @@
+package org.jboss.soa.esbcore.exceptions;
+
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated 
+ * by the @authors tag. All rights reserved. 
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors. 
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A 
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A 
+ * PARTICULAR PURPOSE.  See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
+ * MA  02110-1301, USA.
+ * 
+ * (C) 2005-2006,
+ * @author mark.little at jboss.com
+ */
+
+import java.lang.Exception;
+
+ at SuppressWarnings("serial")
+public class SendFailedException extends Exception {
+
+	public SendFailedException () {
+		super();
+	}
+
+	public SendFailedException (String s) {
+		super(s);
+	}
+
+	public SendFailedException (Exception ex)
+	{
+		_nestedException = ex;
+	}
+	
+	public Exception getNestedException ()
+	{
+		return _nestedException;
+	}
+	
+	private Exception _nestedException;
+}




More information about the jboss-svn-commits mailing list