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/24 12:31:54 UTC

svn commit: r348713 [17/18] - in /incubator/synapse/trunk/scratch/prototype3: ./ .settings/ doc/ doc/index-files/ doc/org/ doc/org/apache/ doc/org/apache/synapse/ doc/org/apache/synapse/api/ doc/org/apache/synapse/api/class-use/ doc/org/apache/synapse/...

Added: incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-summary.html
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-summary.html?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-summary.html (added)
+++ incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-summary.html Thu Nov 24 03:30:06 2005
@@ -0,0 +1,152 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.4.2_09) on Thu Nov 24 11:26:22 GMT 2005 -->
+<TITLE>
+sampleMediators
+</TITLE>
+
+<META NAME="keywords" CONTENT="sampleMediators package">
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    parent.document.title="sampleMediators";
+}
+</SCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../org/apache/synapse/spi/engine/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;
+&nbsp;NEXT PACKAGE</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<H2>
+Package sampleMediators
+</H2>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor">
+<TD COLSPAN=2><FONT SIZE="+2">
+<B>Class Summary</B></FONT></TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../sampleMediators/Logger.html" title="class in sampleMediators">Logger</A></B></TD>
+<TD>&nbsp;</TD>
+</TR>
+<TR BGCOLOR="white" CLASS="TableRowColor">
+<TD WIDTH="15%"><B><A HREF="../sampleMediators/SpringRedirect.html" title="class in sampleMediators">SpringRedirect</A></B></TD>
+<TD>&nbsp;</TD>
+</TR>
+</TABLE>
+&nbsp;
+
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Package</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-use.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../org/apache/synapse/spi/engine/package-summary.html"><B>PREV PACKAGE</B></A>&nbsp;
+&nbsp;NEXT PACKAGE</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-summary.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>

Added: incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-tree.html
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-tree.html?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-tree.html (added)
+++ incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-tree.html Thu Nov 24 03:30:06 2005
@@ -0,0 +1,147 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.4.2_09) on Thu Nov 24 11:26:22 GMT 2005 -->
+<TITLE>
+sampleMediators Class Hierarchy
+</TITLE>
+
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    parent.document.title="sampleMediators Class Hierarchy";
+}
+</SCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../org/apache/synapse/spi/engine/package-tree.html"><B>PREV</B></A>&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+Hierarchy For Package sampleMediators
+</H2>
+</CENTER>
+<DL>
+<DT><B>Package Hierarchies:</B><DD><A HREF="../overview-tree.html">All Packages</A></DL>
+<HR>
+<H2>
+Class Hierarchy
+</H2>
+<UL>
+<LI TYPE="circle">class java.lang.Object<UL>
+<LI TYPE="circle">class sampleMediators.<A HREF="../sampleMediators/Logger.html" title="class in sampleMediators"><B>Logger</B></A> (implements org.apache.synapse.api.<A HREF="../org/apache/synapse/api/Mediator.html" title="interface in org.apache.synapse.api">Mediator</A>)
+<LI TYPE="circle">class sampleMediators.<A HREF="../sampleMediators/SpringRedirect.html" title="class in sampleMediators"><B>SpringRedirect</B></A> (implements org.apache.synapse.api.<A HREF="../org/apache/synapse/api/Mediator.html" title="interface in org.apache.synapse.api">Mediator</A>)
+</UL>
+</UL>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Tree</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;<A HREF="../org/apache/synapse/spi/engine/package-tree.html"><B>PREV</B></A>&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-tree.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>

Added: incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-use.html
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-use.html?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-use.html (added)
+++ incubator/synapse/trunk/scratch/prototype3/doc/sampleMediators/package-use.html Thu Nov 24 03:30:06 2005
@@ -0,0 +1,136 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.4.2_09) on Thu Nov 24 11:26:22 GMT 2005 -->
+<TITLE>
+Uses of Package sampleMediators
+</TITLE>
+
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="../stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    parent.document.title="Uses of Package sampleMediators";
+}
+</SCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H2>
+<B>Uses of Package<br>sampleMediators</B></H2>
+</CENTER>
+No usage of sampleMediators
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Use</B></FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="../index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="package-use.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="../allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="../allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>

Added: incubator/synapse/trunk/scratch/prototype3/doc/serialized-form.html
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/doc/serialized-form.html?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/doc/serialized-form.html (added)
+++ incubator/synapse/trunk/scratch/prototype3/doc/serialized-form.html Thu Nov 24 03:30:06 2005
@@ -0,0 +1,185 @@
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<!--NewPage-->
+<HTML>
+<HEAD>
+<!-- Generated by javadoc (build 1.4.2_09) on Thu Nov 24 11:26:23 GMT 2005 -->
+<TITLE>
+Serialized Form
+</TITLE>
+
+
+<LINK REL ="stylesheet" TYPE="text/css" HREF="stylesheet.css" TITLE="Style">
+
+<SCRIPT type="text/javascript">
+function windowTitle()
+{
+    parent.document.title="Serialized Form";
+}
+</SCRIPT>
+
+</HEAD>
+
+<BODY BGCOLOR="white" onload="windowTitle();">
+
+
+<!-- ========= START OF TOP NAVBAR ======= -->
+<A NAME="navbar_top"><!-- --></A>
+<A HREF="#skip-navbar_top" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_top_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="serialized-form.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_top"></A>
+<!-- ========= END OF TOP NAVBAR ========= -->
+
+<HR>
+<CENTER>
+<H1>
+Serialized Form</H1>
+</CENTER>
+<HR SIZE="4" NOSHADE>
+
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TD ALIGN="center"><FONT SIZE="+2">
+<B>Package</B> <B>org.apache.synapse.axis2</B></FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+<A NAME="org.apache.synapse.axis2.SynapseDispatcher"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TD COLSPAN=2><FONT SIZE="+2">
+<B>Class <A HREF="org/apache/synapse/axis2/SynapseDispatcher.html" title="class in org.apache.synapse.axis2">org.apache.synapse.axis2.SynapseDispatcher</A> extends org.apache.axis2.engine.AbstractDispatcher implements Serializable</B></FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+<B>serialVersionUID:&nbsp;</B>-6970206989111592645l
+
+<P>
+
+<P>
+<HR SIZE="4" NOSHADE>
+<A NAME="org.apache.synapse.spi.engine.SynapseEngineRuleTest"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TD COLSPAN=2><FONT SIZE="+2">
+<B>Class <A HREF="org/apache/synapse/spi/engine/SynapseEngineRuleTest.html" title="class in org.apache.synapse.spi.engine">org.apache.synapse.spi.engine.SynapseEngineRuleTest</A> extends TestCase implements Serializable</B></FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+
+<P>
+<HR SIZE="4" NOSHADE>
+<A NAME="org.apache.synapse.SynapseException"><!-- --></A>
+<TABLE BORDER="1" WIDTH="100%" CELLPADDING="3" CELLSPACING="0" SUMMARY="">
+<TR BGCOLOR="#CCCCFF" CLASS="TableSubHeadingColor">
+<TD COLSPAN=2><FONT SIZE="+2">
+<B>Class <A HREF="org/apache/synapse/SynapseException.html" title="class in org.apache.synapse">org.apache.synapse.SynapseException</A> extends java.lang.RuntimeException implements Serializable</B></FONT></TD>
+</TR>
+</TABLE>
+
+<P>
+<B>serialVersionUID:&nbsp;</B>-7244032125641596311l
+
+<P>
+
+<P>
+<HR>
+
+
+<!-- ======= START OF BOTTOM NAVBAR ====== -->
+<A NAME="navbar_bottom"><!-- --></A>
+<A HREF="#skip-navbar_bottom" title="Skip navigation links"></A>
+<TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0" SUMMARY="">
+<TR>
+<TD COLSPAN=3 BGCOLOR="#EEEEFF" CLASS="NavBarCell1">
+<A NAME="navbar_bottom_firstrow"><!-- --></A>
+<TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3" SUMMARY="">
+  <TR ALIGN="center" VALIGN="top">
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Package</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Class</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <FONT CLASS="NavBarFont1">Use</FONT>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="overview-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>
+  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>
+  </TR>
+</TABLE>
+</TD>
+<TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM>
+</EM>
+</TD>
+</TR>
+
+<TR>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+&nbsp;PREV&nbsp;
+&nbsp;NEXT</FONT></TD>
+<TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">
+  <A HREF="index.html" target="_top"><B>FRAMES</B></A>  &nbsp;
+&nbsp;<A HREF="serialized-form.html" target="_top"><B>NO FRAMES</B></A>  &nbsp;
+&nbsp;<SCRIPT type="text/javascript">
+  <!--
+  if(window==top) {
+    document.writeln('<A HREF="allclasses-noframe.html"><B>All Classes</B></A>');
+  }
+  //-->
+</SCRIPT>
+<NOSCRIPT>
+  <A HREF="allclasses-noframe.html"><B>All Classes</B></A>
+</NOSCRIPT>
+
+</FONT></TD>
+</TR>
+</TABLE>
+<A NAME="skip-navbar_bottom"></A>
+<!-- ======== END OF BOTTOM NAVBAR ======= -->
+
+<HR>
+
+</BODY>
+</HTML>

Added: incubator/synapse/trunk/scratch/prototype3/doc/stylesheet.css
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/doc/stylesheet.css?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/doc/stylesheet.css (added)
+++ incubator/synapse/trunk/scratch/prototype3/doc/stylesheet.css Thu Nov 24 03:30:06 2005
@@ -0,0 +1,29 @@
+/* Javadoc style sheet */
+
+/* Define colors, fonts and other style attributes here to override the defaults */
+
+/* Page background color */
+body { background-color: #FFFFFF }
+
+/* Headings */
+h1 { font-size: 145% }
+
+/* Table colors */
+.TableHeadingColor     { background: #CCCCFF } /* Dark mauve */
+.TableSubHeadingColor  { background: #EEEEFF } /* Light mauve */
+.TableRowColor         { background: #FFFFFF } /* White */
+
+/* Font used in left-hand frame lists */
+.FrameTitleFont   { font-size: 100%; font-family: Helvetica, Arial, sans-serif }
+.FrameHeadingFont { font-size:  90%; font-family: Helvetica, Arial, sans-serif }
+.FrameItemFont    { font-size:  90%; font-family: Helvetica, Arial, sans-serif }
+
+/* Navigation bar fonts and colors */
+.NavBarCell1    { background-color:#EEEEFF;} /* Light mauve */
+.NavBarCell1Rev { background-color:#00008B;} /* Dark Blue */
+.NavBarFont1    { font-family: Arial, Helvetica, sans-serif; color:#000000;}
+.NavBarFont1Rev { font-family: Arial, Helvetica, sans-serif; color:#FFFFFF;}
+
+.NavBarCell2    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+.NavBarCell3    { font-family: Arial, Helvetica, sans-serif; background-color:#FFFFFF;}
+

Added: incubator/synapse/trunk/scratch/prototype3/log4j.properties
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/log4j.properties?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/log4j.properties (added)
+++ incubator/synapse/trunk/scratch/prototype3/log4j.properties Thu Nov 24 03:30:06 2005
@@ -0,0 +1,25 @@
+log4j.rootCategory=ERROR,stdout,logfile
+
+# Set the level to DEBUG if you want to log all SlideExceptions (some of them aren't errors)
+log4j.category.org.apache.axis2=FATAL
+log4j.category.org.apache.synapse=FATAL
+log4j.category.org.apache.synapse.mediators=INFO
+
+log4j.appender.stdout=org.apache.log4j.ConsoleAppender
+log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
+
+log4j.appender.stdout.layout.ConversionPattern=[%t] %-5p %-20c{2} - %m %n 
+
+####  appender writes to a file
+log4j.appender.logfile=org.apache.log4j.RollingFileAppender
+log4j.appender.logfile.File=synapse.log
+
+
+# Control the maximum log file size
+log4j.appender.logfile.MaxFileSize=1000KB
+# Archive log files (one backup file here)
+log4j.appender.logfile.MaxBackupIndex=10
+
+log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
+log4j.appender.logfile.layout.ConversionPattern=%6r %5p [%t] (%F:%L) - %m%n
+

Added: incubator/synapse/trunk/scratch/prototype3/repo/axis2.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/repo/axis2.xml?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/repo/axis2.xml (added)
+++ incubator/synapse/trunk/scratch/prototype3/repo/axis2.xml Thu Nov 24 03:30:06 2005
@@ -0,0 +1,140 @@
+<axisconfig name="AxisJava2.0">
+	<!-- ================================================= -->
+	<!-- Parameters -->
+	<!-- ================================================= -->
+	<parameter name="hotdeployment" locked="false">true</parameter>
+	<parameter name="hotupdate" locked="false">false</parameter>
+	<parameter name="enableMTOM" locked="false">true</parameter>
+	<!-- Uncomment this to enable REST support -->
+	<!--    <parameter name="enableREST" locked="false">true</parameter>-->
+
+
+	<parameter name="userName" locked="false">admin</parameter>
+	<parameter name="password" locked="false">axis2</parameter>
+
+	<parameter name="seralizeLocation" locked="false">.</parameter>
+
+	<parameter name="SynapseConfiguration" locked="false">synapse.xml</parameter>  
+
+	<!--if you want to extract the service archive file and work with that please uncomment this-->
+	<!--else , it wont extract archive file or does not take into consideration if someone drop-->
+	<!--exploded directory into /service directory-->
+	<!--<parameter name="extractServiceArchive" locked="false">true</parameter>-->
+
+
+	<!--    The way of adding listener to the system-->
+	<!--    <listener class="org.apache.axis2.ObserverIMPL">-->
+	<!--        <parameter name="RSS_URL" locked="false">http://127.0.0.1/rss</parameter>-->
+	<!--    </listener>-->
+
+	<!--Registering Axis Storage Class if you comment this default one will -->
+	<!--does the job (org.apache.axis2.storage.impl.AxisMemoryStorage) , if you-->
+	<!--want to register new one write a class by extanding AbastractStorage-->
+	<!--and put that name here-->
+	<axisStorage
+		class="org.apache.axis2.storage.impl.AxisMemoryStorage">
+		<parameter name="StoreLocation" locked="false">N:S</parameter>
+	</axisStorage>
+
+
+
+	<!-- ================================================= -->
+	<!-- Message Receivers -->
+	<!-- ================================================= -->
+	<!-- This is the Deafult Message Receiver for the Request Response style Operations -->
+	<messageReceiver mep="INOUT"
+		class="org.apache.axis2.receivers.RawXMLINOutMessageReceiver" />
+
+	<!-- ================================================= -->
+	<!-- Transport Ins -->
+	<!-- ================================================= -->
+	<transportReceiver name="http"
+		class="org.apache.axis2.transport.http.SimpleHTTPServer">
+		<parameter name="port" locked="false">6060</parameter>
+	</transportReceiver>
+
+	<!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+		<transportReceiver name="mail" class="org.apache.axis2.transport.mail.SimpleMailListener">
+		<parameter name="transport.mail.pop3.host" locked="false">127.0.0.1</parameter>
+		<parameter name="transport.mail.pop3.user" locked="false">axis2</parameter>
+		<parameter name="transport.mail.pop3.password" locked="false">axis2</parameter>
+		<parameter name="transport.mail.pop3.port" locked="false">110</parameter>
+		<parameter name="transport.mail.replyToAddress" locked="false">axis2@127.0.0.1</parameter>
+		</transportReceiver> -->
+
+	<transportReceiver name="tcp"
+		class="org.apache.axis2.transport.tcp.TCPServer">
+		<parameter name="port" locked="false">6060</parameter>
+	</transportReceiver>
+
+	<!-- ================================================= -->
+	<!-- Transport Outs -->
+	<!-- ================================================= -->
+
+	<transportSender name="tcp"
+		class="org.apache.axis2.transport.tcp.TCPTransportSender" />
+	<transportSender name="local"
+		class="org.apache.axis2.transport.local.LocalTransportSender" />
+	<transportSender name="http"
+		class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+		<parameter name="PROTOCOL" locked="false">HTTP/1.0</parameter>
+	</transportSender>
+	<transportSender name="https"
+		class="org.apache.axis2.transport.http.CommonsHTTPTransportSender">
+		<parameter name="PROTOCOL" locked="false">HTTP/1.1</parameter>
+	</transportSender>
+
+	<!-- Uncomment this one with the appropriate papameters to enable the SMTP transport Receiver
+		<transportSender name="mail" class="org.apache.axis2.transport.mail.MailTransportSender">
+		<parameter name="transport.mail.smtp.host" locked="false">127.0.0.1</parameter>
+		<parameter name="transport.mail.smtp.user" locked="false">axis2</parameter>
+		<parameter name="transport.mail.smtp.password" locked="false">axis2</parameter>
+		<parameter name="transport.mail.smtp.port" locked="false">25</parameter>
+		</transportSender>
+	-->
+
+	<!-- ================================================= -->
+	<!-- Global Modules  -->
+	<!-- ================================================= -->
+	<!-- Comment this to disable Addressing -->
+	<!--  <module ref="addressing" /> -->
+	<!--module ref="addressing" /--> 
+
+
+	<!--Configuring module , providing paramters for modules whether they refer or not-->
+	<!--<moduleConfig name="addressing">-->
+	<!--<parameter name="addressingPara" locked="false">N/A</parameter>-->
+	<!--</moduleConfig>-->
+
+	<dispatchOrder>
+		<dispatcher name="SynapseDispatcher"
+			class="org.apache.synapse.axis2.SynapseDispatcher" />
+	</dispatchOrder>
+
+	<!-- ================================================= -->
+	<!-- Phases  -->
+	<!-- ================================================= -->
+	<phaseOrder type="inflow">
+		<!--  System pre defined phases       -->
+		<phase name="TransportIn" />
+		<phase name="PreDispatch" />
+		<phase name="Dispatch" />
+		<phase name="PostDispatch" />
+		<!--  System pre defined phases       -->
+		<!--   After Postdispatch phase module author or or service author can add any phase he want      -->
+		<phase name="userphase1" />
+	</phaseOrder>
+	<phaseOrder type="outflow">
+		<!--      user can add his own phases to this area  -->
+		<phase name="userphase1" />
+	</phaseOrder>
+	<phaseOrder type="INfaultflow">
+		<!--      user can add his own phases to this area  -->
+		<phase name="userphase1" />
+	</phaseOrder>
+	<phaseOrder type="Outfaultflow">
+		<!--      user can add his own phases to this area  -->
+		<phase name="userphase1" />
+	</phaseOrder>
+</axisconfig>
+

Added: incubator/synapse/trunk/scratch/prototype3/repo/modules/addressing.mar
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/repo/modules/addressing.mar?rev=348713&view=auto
==============================================================================
Binary file - no diff available.

Propchange: incubator/synapse/trunk/scratch/prototype3/repo/modules/addressing.mar
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: incubator/synapse/trunk/scratch/prototype3/repo/services/emptymediator/meta-inf/services.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/repo/services/emptymediator/meta-inf/services.xml?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/repo/services/emptymediator/meta-inf/services.xml (added)
+++ incubator/synapse/trunk/scratch/prototype3/repo/services/emptymediator/meta-inf/services.xml Thu Nov 24 03:30:06 2005
@@ -0,0 +1,6 @@
+<service name="emptymediator">
+    <operation name="mediate" > 
+          <messageReceiver class="org.apache.synapse.axis2.EmptyMessageReceiver" />
+    </operation>
+</service>
+  
\ No newline at end of file

Added: incubator/synapse/trunk/scratch/prototype3/repo/services/synapse/meta-inf/services.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/repo/services/synapse/meta-inf/services.xml?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/repo/services/synapse/meta-inf/services.xml (added)
+++ incubator/synapse/trunk/scratch/prototype3/repo/services/synapse/meta-inf/services.xml Thu Nov 24 03:30:06 2005
@@ -0,0 +1,8 @@
+  <service name="synapse">
+
+    <operation name="mediate" > 
+          <messageReceiver class="org.apache.synapse.axis2.SynapseMessageReceiver" />
+    </operation>
+    
+  </service>
+  
\ No newline at end of file

Added: incubator/synapse/trunk/scratch/prototype3/repo/synapse.xml
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/repo/synapse.xml?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/repo/synapse.xml (added)
+++ incubator/synapse/trunk/scratch/prototype3/repo/synapse.xml Thu Nov 24 03:30:06 2005
@@ -0,0 +1,20 @@
+<synapse xmlns="http://ws.apache.org/ns/synapse">
+    
+    <stage name="logall">
+        <addressing/>
+		<log/>
+    </stage>
+    <stage name="service-specific" >
+		<regex message-address="to" pattern="http://xmethods.*">
+			<header type="to" value="http://64.124.140.30:9090/soap"/>
+			<xpath expr="//*[Symbol='MSFT']">
+				<fault/>
+			</xpath>
+		</regex>	
+	</stage>
+	<stage name="sender">
+		<send/>
+	</stage>
+	
+</synapse>
+

Added: incubator/synapse/trunk/scratch/prototype3/src/.classpath
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/.classpath?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/.classpath (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/.classpath Thu Nov 24 03:30:06 2005
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<classpath>
+	<classpathentry kind="src" path=""/>
+	<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
+	<classpathentry sourcepath="C:/axcommit/modules/core/src" kind="lib" path="C:/axcommit/target/axis2-0.93-SNAPSHOT.jar"/>
+	<classpathentry kind="lib" path="C:/axdb/target/lib/commons-logging-1.0.3.jar"/>
+	<classpathentry kind="lib" path="C:/axdb/target/lib/log4j-1.2.8.jar"/>
+	<classpathentry kind="lib" path="C:/axdb/target/lib/stax-1.1.2-dev.jar"/>
+	<classpathentry kind="lib" path="C:/axdb/target/lib/stax-api-1.0.jar"/>
+	<classpathentry kind="lib" path="C:/axdb/target/lib/jaxen-1.1-beta-7.jar"/>
+	<classpathentry kind="lib" path="C:/spring/dist/spring-context.jar"/>
+	<classpathentry kind="lib" path="C:/spring/dist/spring-core.jar"/>
+	<classpathentry kind="lib" path="C:/spring/dist/spring-beans.jar"/>
+	<classpathentry kind="output" path=""/>
+</classpath>

Added: incubator/synapse/trunk/scratch/prototype3/src/.project
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/.project?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/.project (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/.project Thu Nov 24 03:30:06 2005
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<projectDescription>
+	<name>Proto3</name>
+	<comment></comment>
+	<projects>
+	</projects>
+	<buildSpec>
+		<buildCommand>
+			<name>org.eclipse.jdt.core.javabuilder</name>
+			<arguments>
+			</arguments>
+		</buildCommand>
+	</buildSpec>
+	<natures>
+		<nature>org.eclipse.jdt.core.javanature</nature>
+	</natures>
+</projectDescription>

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Configurator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Configurator.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Configurator.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Configurator.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,41 @@
+package org.apache.synapse;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.OMNamespace;
+import org.apache.synapse.api.SynapseEnvironment;
+import org.apache.synapse.spi.Processor;
+
+/**
+ * @author Paul Fremantle
+ * 
+ * This class will get a Synapse processor for any given element in the
+ * synapse.xml
+ */
+public class Configurator {
+
+	/**
+	 * This method returns a Processor given an OMElement. This will be used
+	 * recursively by the elements which contain processor elements themselves
+	 * (e.g. rules)
+	 * 
+	 * @param synapseEnv
+	 * @param element
+	 * @return Processor
+	 */
+	public static Processor getProcessor(SynapseEnvironment synapseEnv, OMElement element) {
+		OMNamespace n = element.getNamespace();
+		Class cls = ProcessorFinder.find(new QName(n.getName(), element
+				.getLocalName()));
+		try {
+			Processor p = (Processor) cls.newInstance();
+			p.compile(synapseEnv, element);
+			return p;
+		} catch (InstantiationException e) {
+			throw new SynapseException(e);
+		} catch (IllegalAccessException e) {
+			throw new SynapseException(e);
+		}
+	}
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Constants.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/Constants.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,73 @@
+/*
+ * 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;
+
+import javax.xml.namespace.QName;
+
+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";
+
+	public static final String ISRESPONSE_PROPERTY = "synapse.isresponse";
+
+	public static final String EMPTYMEDIATOR = "emptymediator";
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/ProcessorFinder.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/ProcessorFinder.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/ProcessorFinder.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/ProcessorFinder.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,61 @@
+package org.apache.synapse;
+
+import java.util.HashMap;
+import java.util.Map;
+
+import javax.xml.namespace.QName;
+
+import org.apache.synapse.processors.AllProcessor;
+import org.apache.synapse.processors.StageProcessor;
+import org.apache.synapse.processors.SynapseProcessor;
+import org.apache.synapse.processors.mediators.AddressingProcessor;
+import org.apache.synapse.processors.mediators.ClassMediatorProcessor;
+import org.apache.synapse.processors.mediators.FaultProcessor;
+import org.apache.synapse.processors.mediators.HeaderProcessor;
+import org.apache.synapse.processors.mediators.LogProcessor;
+import org.apache.synapse.processors.mediators.SendProcessor;
+import org.apache.synapse.processors.rules.RegexProcessor;
+import org.apache.synapse.processors.rules.XPathProcessor;
+import org.apache.synapse.spi.Processor;
+
+/**
+ * @author Paul Fremantle
+ * 
+ * This class is a temporary place holder for a dynamic model Probably will be
+ * rebased on J2SE Service Provider model
+ * http://java.sun.com/j2se/1.3/docs/guide/jar/jar.html#Service%20Provider
+ */
+
+public class ProcessorFinder {
+	private static Map lookup = null;
+
+	private static Class[] processors = { SynapseProcessor.class,
+			AllProcessor.class, AddressingProcessor.class,
+			ClassMediatorProcessor.class, HeaderProcessor.class,
+			LogProcessor.class, SendProcessor.class, XPathProcessor.class,
+			RegexProcessor.class, StageProcessor.class, FaultProcessor.class };
+
+	private static void config() {
+		if (lookup != null)
+			return;
+		lookup = new HashMap();
+
+		for (int i = 0; i < processors.length; i++) {
+			Class c = processors[i];
+			try {
+				lookup.put(((Processor) c.newInstance()).getTagQName(), c);
+			} catch (Exception e) {
+				throw new SynapseException(e);
+			}
+		}
+	}
+
+	/**
+	 * @param QName
+	 * @return the class which implements the Processor for the given QName
+	 */
+	public static Class find(QName qn) {
+		config();
+		return (Class) lookup.get(qn);
+	}
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/SynapseException.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/SynapseException.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/SynapseException.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/SynapseException.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,37 @@
+/*
+ * 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;
+
+public class SynapseException extends RuntimeException {
+
+	private static final long serialVersionUID = -7244032125641596311L;
+
+	public SynapseException(String string) {
+		super(string);
+
+	}
+
+	public SynapseException(String msg, Throwable e) {
+		super(msg, e);
+
+	}
+
+	public SynapseException(Throwable t) {
+		super(t);
+
+	}
+
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/ConfigurationAware.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/ConfigurationAware.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/ConfigurationAware.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/ConfigurationAware.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,6 @@
+package org.apache.synapse.api;
+
+public interface ConfigurationAware {
+	public void setMediationConfiguration(MediatorConfiguration mc);
+
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/EnvironmentAware.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/EnvironmentAware.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/EnvironmentAware.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/EnvironmentAware.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,6 @@
+package org.apache.synapse.api;
+
+public interface EnvironmentAware {
+	public void setSynapseEnvironment(SynapseEnvironment se);
+
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/Mediator.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/Mediator.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/Mediator.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/Mediator.java Thu Nov 24 03:30:06 2005
@@ -0,0 +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.api;
+
+public interface Mediator {
+	public boolean mediate(SOAPMessageContext smc);
+}
\ No newline at end of file

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/MediatorConfiguration.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/MediatorConfiguration.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/MediatorConfiguration.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/MediatorConfiguration.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,11 @@
+package org.apache.synapse.api;
+
+import org.apache.axis2.om.OMElement;
+
+public interface MediatorConfiguration {
+	OMElement getMediatorElement();
+
+	String getMediatorName();
+
+	int getMediatorType();
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SOAPMessageContext.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SOAPMessageContext.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SOAPMessageContext.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SOAPMessageContext.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,83 @@
+/*
+ * 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.api;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.addressing.RelatesTo;
+import org.apache.axis2.soap.SOAPEnvelope;
+
+public interface SOAPMessageContext {
+
+	public EndpointReference getFaultTo();
+
+	public void setFaultTo(EndpointReference reference);
+
+	public EndpointReference getFrom();
+
+	public void setFrom(EndpointReference reference);
+
+	public SOAPEnvelope getEnvelope();
+
+	public void setEnvelope(SOAPEnvelope envelope) throws AxisFault;
+
+	public String getMessageID();
+
+	public void setMessageID(String string);
+
+	public RelatesTo getRelatesTo();
+
+	public void setRelatesTo(RelatesTo reference);
+
+	public EndpointReference getReplyTo();
+
+	public void setReplyTo(EndpointReference reference);
+
+	public EndpointReference getTo();
+
+	public void setTo(EndpointReference reference);
+
+	public void setWSAAction(String actionURI);
+
+	public String getWSAAction();
+
+	public void setWSAMessageId(String messageID);
+
+	public String getWSAMessageId();
+
+	public Object getProperty(String key);
+
+	public void setProperty(String key, Object value);
+
+	public String getSoapAction();
+
+	public void setSoapAction(String string);
+
+	public boolean isDoingMTOM();
+
+	public void setDoingMTOM(boolean b);
+
+	public boolean isDoingREST();
+
+	public void setDoingREST(boolean b);
+
+	public boolean isSOAP11();
+
+	public void setResponse(boolean b);
+
+	public boolean isResponse();
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SynapseEnvironment.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SynapseEnvironment.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SynapseEnvironment.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/api/SynapseEnvironment.java Thu Nov 24 03:30:06 2005
@@ -0,0 +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.api;
+
+public interface SynapseEnvironment {
+	public void injectMessage(SOAPMessageContext smc);
+
+	public ClassLoader getClassLoader();
+
+	public void sendOn(SOAPMessageContext smc);
+
+	public void sendBack(SOAPMessageContext smc);
+
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2FlexibleMEPClient.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,131 @@
+package org.apache.synapse.axis2;
+
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.ConfigurationContextFactory;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.context.ServiceContext;
+import org.apache.axis2.deployment.util.PhasesInfo;
+import org.apache.axis2.description.AxisOperation;
+import org.apache.axis2.description.AxisService;
+import org.apache.axis2.description.OutInAxisOperation;
+import org.apache.axis2.engine.AxisConfigurationImpl;
+import org.apache.axis2.engine.AxisEngine;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.axis2.transport.TransportUtils;
+import org.apache.axis2.util.UUIDGenerator;
+import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseException;
+
+import javax.xml.namespace.QName;
+
+public class Axis2FlexibleMEPClient {
+
+	// wholesale cut and paste from axis2.clientapi.*
+	public static MessageContext send(MessageContext smc) {
+		try {
+
+			ConfigurationContext sysContext = null;
+			ConfigurationContextFactory efac = new ConfigurationContextFactory();
+			sysContext = efac.buildClientConfigurationContext(null);
+			QName assumedServiceName = new QName("AnonymousService");
+			AxisService axisService = new AxisService(assumedServiceName);
+			AxisOperation axisOperationTemplate = new OutInAxisOperation(
+					new QName("TemplateOperation"));
+			PhasesInfo info = ((AxisConfigurationImpl) sysContext
+					.getAxisConfiguration()).getPhasesinfo();
+			if (info != null) {
+				info.setOperationPhases(axisOperationTemplate);
+			}
+			axisService.addOperation(axisOperationTemplate);
+			sysContext.getAxisConfiguration().addService(axisService);
+			ServiceContext serviceContext = axisService.getParent()
+					.getServiceGroupContext(sysContext).getServiceContext(
+							assumedServiceName.getLocalPart());
+
+			MessageContext msgCtx = new MessageContext(serviceContext
+					.getConfigurationContext());
+
+			if (smc.getSoapAction() != null)
+				msgCtx.setSoapAction(smc.getSoapAction());
+			if (smc.getTo() != null)
+				msgCtx.setTo(smc.getTo());
+			if (smc.getFrom() != null)
+				msgCtx.setFrom(smc.getFrom());
+			if (smc.getMessageID() != null)
+				msgCtx.setMessageID(smc.getMessageID());
+			else
+				msgCtx.setMessageID(String.valueOf("uuid:"
+						+ UUIDGenerator.getUUID()));
+			if (smc.getReplyTo() != null)
+				msgCtx.setReplyTo(smc.getReplyTo());
+			if (smc.getRelatesTo() != null)
+				msgCtx.setRelatesTo(smc.getRelatesTo());
+
+			msgCtx.setEnvelope(smc.getEnvelope());
+			if (msgCtx.getEnvelope().getHeader() == null)
+				msgCtx.getEnvelope().getBody().insertSiblingBefore(
+						OMAbstractFactory.getSOAP11Factory()
+								.getDefaultEnvelope().getHeader());
+
+			msgCtx.setServiceContext(serviceContext);
+
+			EndpointReference epr = msgCtx.getTo();
+			String transport = null;
+			if (epr != null) {
+				String toURL = epr.getAddress();
+				int index = toURL.indexOf(':');
+				if (index > 0) {
+					transport = toURL.substring(0, index);
+				}
+			}
+
+			if (transport != null) {
+
+				msgCtx.setTransportOut(serviceContext.getConfigurationContext()
+						.getAxisConfiguration().getTransportOut(
+								new QName(transport)));
+
+			} else {
+				throw new SynapseException("cannotInferTransport");
+			}
+			// initialize and set the Operation Context
+
+			msgCtx.setOperationContext(axisOperationTemplate
+					.findOperationContext(msgCtx, serviceContext));
+			AxisEngine engine = new AxisEngine(sysContext);
+			engine.send(msgCtx);
+
+			MessageContext response = new MessageContext(msgCtx
+					.getSystemContext(), msgCtx.getSessionContext(), msgCtx
+					.getTransportIn(), msgCtx.getTransportOut());
+			response.setProperty(MessageContext.TRANSPORT_IN, msgCtx
+					.getProperty(MessageContext.TRANSPORT_IN));
+			msgCtx.getAxisOperation().registerOperationContext(response,
+					msgCtx.getOperationContext());
+			response.setServerSide(false);
+			response.setServiceContext(msgCtx.getServiceContext());
+			response.setServiceGroupContext(msgCtx.getServiceGroupContext());
+
+			// If request is REST we assume the response is REST, so set the
+			// variable
+			response.setDoingREST(msgCtx.isDoingREST());
+
+			SOAPEnvelope resenvelope = TransportUtils.createSOAPMessage(
+					response, msgCtx.getEnvelope().getNamespace().getName());
+
+			response.setEnvelope(resenvelope);
+			engine = new AxisEngine(msgCtx.getSystemContext());
+			engine.receive(response);
+			response.setProperty(Constants.ISRESPONSE_PROPERTY, new Boolean(
+					true));
+			return response;
+		} catch (Exception e) {
+			e.printStackTrace();
+			throw new SynapseException(e);
+		}
+
+	}
+
+}

Added: 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/Axis2SOAPMessageContext.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SOAPMessageContext.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SOAPMessageContext.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,182 @@
+package org.apache.synapse.axis2;
+
+import java.util.HashMap;
+import java.util.Iterator;
+import java.util.Map;
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.addressing.EndpointReference;
+import org.apache.axis2.addressing.RelatesTo;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.soap.SOAPEnvelope;
+import org.apache.synapse.Constants;
+import org.apache.synapse.api.SOAPMessageContext;
+
+public class Axis2SOAPMessageContext implements SOAPMessageContext {
+
+	private MessageContext mc = null;
+
+	private Map props = new HashMap();
+
+	private boolean response = false;
+
+	public Axis2SOAPMessageContext(MessageContext mc) {
+		setMessageContext(mc);
+		Boolean resp = (Boolean) mc.getProperty(Constants.ISRESPONSE_PROPERTY);
+		if (resp != null)
+			response = resp.booleanValue();
+	}
+
+	public EndpointReference getFaultTo() {
+		return mc.getFaultTo();
+	}
+
+	public void setFaultTo(EndpointReference reference) {
+		mc.setFaultTo(reference);
+	}
+
+	public EndpointReference getFrom() {
+		return mc.getFrom();
+	}
+
+	public void setFrom(EndpointReference reference) {
+		mc.setFrom(reference);
+
+	}
+
+	public SOAPEnvelope getEnvelope() {
+
+		return mc.getEnvelope();
+	}
+
+	public void setEnvelope(SOAPEnvelope envelope) throws AxisFault {
+		mc.setEnvelope(envelope);
+
+	}
+
+	public String getMessageID() {
+		return mc.getMessageID();
+	}
+
+	public void setMessageID(String string) {
+		mc.setMessageID(string);
+
+	}
+
+	public RelatesTo getRelatesTo() {
+		return getRelatesTo();
+
+	}
+
+	public void setRelatesTo(RelatesTo reference) {
+		mc.setRelatesTo(reference);
+
+	}
+
+	public EndpointReference getReplyTo() {
+		return mc.getReplyTo();
+
+	}
+
+	public void setReplyTo(EndpointReference reference) {
+		mc.setReplyTo(reference);
+
+	}
+
+	public EndpointReference getTo() {
+		return mc.getTo();
+
+	}
+
+	public void setTo(EndpointReference reference) {
+		mc.setTo(reference);
+
+	}
+
+	public void setWSAAction(String actionURI) {
+		mc.setWSAAction(actionURI);
+
+	}
+
+	public String getWSAAction() {
+
+		return mc.getWSAAction();
+	}
+
+	public void setWSAMessageId(String messageID) {
+		mc.setWSAMessageId(messageID);
+
+	}
+
+	public String getWSAMessageId() {
+
+		return mc.getWSAMessageId();
+	}
+
+	public Object getProperty(String key) {
+		return props.get(key);
+
+	}
+
+	public void setProperty(String key, Object value) {
+		props.put(key, value);
+	}
+
+	public Iterator getPropertyNames() {
+		return props.keySet().iterator();
+	}
+
+	public String getSoapAction() {
+		return mc.getSoapAction();
+	}
+
+	public void setSoapAction(String string) {
+		mc.setSoapAction(string);
+
+	}
+
+	public boolean isDoingMTOM() {
+
+		return mc.isDoingMTOM();
+	}
+
+	public void setDoingMTOM(boolean b) {
+		mc.setDoingMTOM(b);
+
+	}
+
+	public boolean isDoingREST() {
+
+		return mc.isDoingREST();
+	}
+
+	public void setDoingREST(boolean b) {
+		mc.setDoingREST(b);
+
+	}
+
+	public boolean isSOAP11() {
+
+		return mc.isSOAP11();
+	}
+
+	public MessageContext getMessageContext() {
+		return mc;
+	}
+
+	public void setMessageContext(MessageContext mc) {
+		this.mc = mc;
+		Boolean resp = (Boolean) mc.getProperty(Constants.ISRESPONSE_PROPERTY);
+		if (resp != null)
+			response = resp.booleanValue();
+	}
+
+	public void setResponse(boolean b) {
+		response = b;
+		mc.setProperty(Constants.ISRESPONSE_PROPERTY, new Boolean(b));
+	}
+
+	public boolean isResponse() {
+		return response;
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2Sender.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2Sender.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,96 @@
+package org.apache.synapse.axis2;
+
+import org.apache.axis2.AxisFault;
+
+import org.apache.axis2.context.ConfigurationContext;
+import org.apache.axis2.context.MessageContext;
+
+import org.apache.axis2.context.OperationContextFactory;
+
+import org.apache.axis2.description.AxisOperation;
+import org.apache.axis2.description.AxisService;
+import org.apache.axis2.engine.AxisEngine;
+import org.apache.axis2.om.OMAbstractFactory;
+import org.apache.axis2.transport.http.HTTPConstants;
+import org.apache.synapse.Constants;
+import org.apache.synapse.SynapseException;
+
+import org.apache.synapse.api.SOAPMessageContext;
+
+public class Axis2Sender {
+
+	public static void sendOn(SOAPMessageContext smc) {
+
+		try {
+
+			MessageContext messageContext = ((Axis2SOAPMessageContext) smc)
+					.getMessageContext();
+			AxisEngine ae = new AxisEngine(messageContext.getSystemContext());
+
+			ConfigurationContext sc = messageContext.getSystemContext();
+
+			MessageContext outMsgContext = Axis2FlexibleMEPClient
+					.send(messageContext);
+
+			// run all rules on response
+
+			outMsgContext.setServerSide(true);
+
+			// deal with the fact that AddressingOutHandler has a bug if
+			// there
+			// is no header at all.
+			if (outMsgContext.getEnvelope().getHeader() == null)
+				outMsgContext.getEnvelope().getBody().insertSiblingBefore(
+						OMAbstractFactory.getSOAP11Factory()
+								.getDefaultEnvelope().getHeader());
+			Object os = messageContext
+					.getProperty(MessageContext.TRANSPORT_OUT);
+			outMsgContext.setProperty(MessageContext.TRANSPORT_OUT, os);
+			Object ti = messageContext
+					.getProperty(HTTPConstants.HTTPOutTransportInfo);
+			outMsgContext.setProperty(HTTPConstants.HTTPOutTransportInfo, ti);
+
+			SynapseDispatcher sd = new SynapseDispatcher();
+			sd.initDispatcher();
+			AxisService synapseService = sd.findService(messageContext);
+			AxisOperation synapseOperation = sd.findOperation(synapseService,
+					messageContext);
+
+			outMsgContext.setConfigurationContext(sc);
+			outMsgContext.setAxisService(synapseService);
+			outMsgContext.setAxisOperation(synapseOperation);
+			outMsgContext.setOperationContext(OperationContextFactory
+					.createOperationContext(
+							OperationContextFactory.MEP_CONSTANT_OUT_ONLY,
+							synapseOperation));
+
+			ae.receive(outMsgContext);
+
+		} catch (Exception e) {
+			throw new SynapseException(e);
+		}
+	}
+
+	public static void sendBack(SOAPMessageContext smc) {
+		MessageContext messageContext = ((Axis2SOAPMessageContext) smc)
+				.getMessageContext();
+		AxisEngine ae = new AxisEngine(messageContext.getSystemContext());
+
+		if (messageContext.getEnvelope().getHeader() == null)
+			messageContext.getEnvelope().getBody().insertSiblingBefore(
+					OMAbstractFactory.getSOAP11Factory().getDefaultEnvelope()
+							.getHeader());
+
+		messageContext.setProperty(Constants.ISRESPONSE_PROPERTY, new Boolean(
+				true));
+
+		try {
+			ae.send(messageContext);
+		} catch (AxisFault e) {
+			throw new SynapseException(e);
+
+		}
+
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironment.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironment.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,45 @@
+package org.apache.synapse.axis2;
+
+import org.apache.axis2.om.OMElement;
+
+import org.apache.synapse.api.SOAPMessageContext;
+import org.apache.synapse.api.SynapseEnvironment;
+
+import org.apache.synapse.processors.SynapseProcessor;
+import org.apache.synapse.spi.Processor;
+
+public class Axis2SynapseEnvironment implements SynapseEnvironment {
+	private Processor processor = new SynapseProcessor();
+
+	private ClassLoader cl = null;
+
+	public Axis2SynapseEnvironment(OMElement synapseConfiguration,
+			ClassLoader cl) {
+		super();
+		this.cl = cl;
+		processor.compile(this, synapseConfiguration);
+	}
+
+	public void injectMessage(SOAPMessageContext smc) {
+		processor.process(this, smc);
+	}
+
+	public ClassLoader getClassLoader() {
+		return cl;
+	}
+
+	public void setClassLoader(ClassLoader cl) {
+		this.cl = cl;
+	}
+
+	public void sendOn(SOAPMessageContext smc) {
+		Axis2Sender.sendOn(smc);
+
+	}
+
+	public void sendBack(SOAPMessageContext smc) {
+		Axis2Sender.sendBack(smc);
+
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironmentFinder.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/Axis2SynapseEnvironmentFinder.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,66 @@
+package org.apache.synapse.axis2;
+
+import java.io.InputStream;
+
+import javax.xml.stream.XMLStreamException;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.description.Parameter;
+import org.apache.axis2.description.ParameterImpl;
+import org.apache.axis2.engine.AxisConfiguration;
+import org.apache.axis2.om.OMElement;
+import org.apache.axis2.om.impl.llom.builder.StAXOMBuilder;
+
+import org.apache.synapse.SynapseException;
+import org.apache.synapse.api.SynapseEnvironment;
+
+public class Axis2SynapseEnvironmentFinder {
+
+	private static final String SYNAPSECONFIGURATION = "SynapseConfiguration";
+
+	public static final String SYNAPSE_ENVIRONMENT = "synapse.environment";
+
+	public static synchronized SynapseEnvironment getSynapseEnvironment(
+			MessageContext mc) {
+		AxisConfiguration ac = mc.getSystemContext().getAxisConfiguration();
+		Parameter synapseEnvParam = ac.getParameter(SYNAPSE_ENVIRONMENT);
+		if (synapseEnvParam == null) {
+
+			Parameter param = ac.getParameter(SYNAPSECONFIGURATION);
+			if (param == null) {
+				throw new SynapseException("no parameter '"
+						+ SYNAPSECONFIGURATION + "' in axis2.xml");
+			}
+			String synapseConfig = (String) param.getValue();
+			InputStream is = mc.getAxisService().getClassLoader()
+					.getResourceAsStream(synapseConfig);
+
+			StAXOMBuilder builder;
+			try {
+				builder = new StAXOMBuilder(is);
+
+			} catch (XMLStreamException e1) {
+				throw new SynapseException(
+						"Trouble parsing Synapse Configuration ", e1);
+
+			}
+			OMElement config = builder.getDocumentElement();
+			// todo: ---- following needed to be added.
+			config.build();
+			Axis2SynapseEnvironment se = new Axis2SynapseEnvironment(config, mc
+					.getAxisService().getClassLoader());
+
+			synapseEnvParam = new ParameterImpl(SYNAPSE_ENVIRONMENT, null);
+			synapseEnvParam.setValue(se);
+			try {
+				ac.addParameter(synapseEnvParam);
+			} catch (AxisFault e) {
+				throw new SynapseException(e);
+			}
+		}
+		return (SynapseEnvironment) synapseEnvParam.getValue();
+
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/EmptyMessageReceiver.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/EmptyMessageReceiver.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,16 @@
+package org.apache.synapse.axis2;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+
+import org.apache.axis2.engine.MessageReceiver;
+import org.apache.synapse.Constants;
+
+public class EmptyMessageReceiver implements MessageReceiver {
+
+	public void receive(MessageContext mc) throws AxisFault {
+		mc.setProperty(Constants.MEDIATOR_RESPONSE_PROPERTY, Boolean
+				.valueOf(true));
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseDispatcher.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseDispatcher.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,67 @@
+/*
+ * 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 javax.xml.namespace.QName;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+import org.apache.axis2.context.OperationContext;
+import org.apache.axis2.description.AxisOperation;
+import org.apache.axis2.description.AxisService;
+import org.apache.axis2.description.HandlerDescription;
+import org.apache.axis2.engine.AbstractDispatcher;
+import org.apache.axis2.engine.AxisConfiguration;
+
+public class SynapseDispatcher extends AbstractDispatcher {
+	// FOR EVERY REQUEST - ALWAYS DISPATH TO THE SYNAPSE SERVICE
+
+	private static final long serialVersionUID = -6970206989111592645L;
+
+	private static final String SYNAPSE_SERVICE_NAME = "synapse";
+
+	private static final String MEDIATE_OPERATION_NAME = "mediate";
+
+	public void initDispatcher() {
+		QName qn = new QName("http://synapse.apache.org", "SynapseDispatcher");
+		HandlerDescription hd = new HandlerDescription(qn);
+		super.init(hd);
+
+	}
+
+	public AxisService findService(MessageContext mc) throws AxisFault {
+		AxisConfiguration ac = mc.getSystemContext().getAxisConfiguration();
+		AxisService as = ac.getService(SYNAPSE_SERVICE_NAME);
+		// TODO handle missing config
+		return as;
+	}
+
+	public AxisOperation findOperation(AxisService svc, MessageContext mc)
+			throws AxisFault {
+
+		AxisOperation ao = svc.getOperation(MEDIATE_OPERATION_NAME);
+		// code taken from InstanceDispatcher
+		OperationContext oc = new OperationContext(ao);
+
+		ao.registerOperationContext(mc, oc);
+
+		// fill the service group context and service context info
+		mc.getSystemContext().fillServiceContextAndServiceGroupContext(mc);
+		// TODO handle missing config
+		return ao;
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseMessageReceiver.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/axis2/SynapseMessageReceiver.java Thu Nov 24 03:30:06 2005
@@ -0,0 +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.axis2;
+
+import org.apache.axis2.AxisFault;
+import org.apache.axis2.context.MessageContext;
+
+import org.apache.axis2.engine.MessageReceiver;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+
+import org.apache.synapse.api.SOAPMessageContext;
+import org.apache.synapse.api.SynapseEnvironment;
+
+public class SynapseMessageReceiver implements MessageReceiver {
+
+	private Log log = LogFactory.getLog(getClass());
+
+	public void receive(MessageContext mc) throws AxisFault {
+		log.debug("receiving message");
+		SynapseEnvironment env = Axis2SynapseEnvironmentFinder
+				.getSynapseEnvironment(mc);
+		SOAPMessageContext smc = new Axis2SOAPMessageContext(mc);
+		env.injectMessage(smc);
+	}
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AbstractProcessor.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AbstractProcessor.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,27 @@
+package org.apache.synapse.processors;
+
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axis2.om.OMAttribute;
+import org.apache.axis2.om.OMElement;
+import org.apache.synapse.api.SynapseEnvironment;
+
+import org.apache.synapse.spi.Processor;
+
+public abstract class AbstractProcessor implements Processor {
+	private String name = null;
+
+	List processors = null;
+
+	public void compile(SynapseEnvironment se, OMElement el) {
+		OMAttribute nm = el.getAttribute(new QName("name"));
+		if (nm != null)
+			name = nm.getAttributeValue();
+	}
+
+	public String getName() {
+		return name;
+	}
+}

Added: incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AllProcessor.java
URL: http://svn.apache.org/viewcvs/incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AllProcessor.java?rev=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AllProcessor.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/AllProcessor.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,67 @@
+package org.apache.synapse.processors;
+
+import java.util.Iterator;
+import java.util.LinkedList;
+import java.util.List;
+
+import javax.xml.namespace.QName;
+
+import org.apache.axis2.om.OMElement;
+import org.apache.commons.logging.Log;
+import org.apache.commons.logging.LogFactory;
+import org.apache.synapse.Configurator;
+import org.apache.synapse.Constants;
+import org.apache.synapse.api.SOAPMessageContext;
+import org.apache.synapse.api.SynapseEnvironment;
+import org.apache.synapse.spi.Processor;
+
+/**
+ * @author Paul Fremantle This class simply runs the message through all rules,
+ *         stages, mediations that it has as subelements It is a way of grouping
+ *         stuff.
+ * 
+ */
+public class AllProcessor extends AbstractProcessor {
+	public static final QName tag = new QName(Constants.SYNAPSE_NAMESPACE,
+			"all");
+
+	private Log log = LogFactory.getLog(getClass());
+
+	List processors = null;
+
+	public void compile(SynapseEnvironment se, OMElement el) {
+		super.compile(se, el);
+
+		// no special children
+		Iterator it = el.getChildElements();
+		processors = new LinkedList();
+		while (it.hasNext()) {
+			OMElement child = (OMElement) it.next();
+			Processor p = Configurator.getProcessor(se, child);
+			if (p != null)
+				processors.add(p);
+			else
+				log.info("Unknown child of all" + child.getLocalName());
+		}
+
+	}
+
+	public boolean process(SynapseEnvironment se, SOAPMessageContext smc) {
+		if (processors == null) {
+			log.info("process called on empty processor list");
+			return true;
+		}
+		Iterator it = processors.iterator();
+		while (it.hasNext()) {
+			Processor p = (Processor) it.next();
+			if (!p.process(se,smc))
+				return false;
+		}
+		return true;
+	}
+
+	public QName getTagQName() {
+		return tag;
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/StageProcessor.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/StageProcessor.java Thu Nov 24 03:30:06 2005
@@ -0,0 +1,19 @@
+package org.apache.synapse.processors;
+
+import javax.xml.namespace.QName;
+
+import org.apache.synapse.Constants;
+
+/**
+ * @author Paul Fremantle A stage is really just an alias for &ltall&gt
+ * 
+ */
+public class StageProcessor extends AllProcessor {
+	private static final QName STAGE_Q = new QName(Constants.SYNAPSE_NAMESPACE,
+			"stage");
+
+	public QName getTagQName() {
+		return STAGE_Q;
+	}
+
+}

Added: 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=348713&view=auto
==============================================================================
--- incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/SynapseProcessor.java (added)
+++ incubator/synapse/trunk/scratch/prototype3/src/org/apache/synapse/processors/SynapseProcessor.java Thu Nov 24 03:30:06 2005
@@ -0,0 +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 javax.xml.namespace.QName;
+
+import org.apache.synapse.Constants;
+
+public class SynapseProcessor extends AllProcessor {
+	private final static QName tagname = new QName(Constants.SYNAPSE_NAMESPACE,
+			"synapse");
+
+	public QName getTagQName() {
+		return tagname;
+	}
+
+}



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