You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by da...@apache.org on 2007/05/23 21:10:41 UTC

svn commit: r541034 [7/10] - in /webservices/kandula/site/1: ./ images/ images/logos/ style/ xref/ xref/org/ xref/org/apache/ xref/org/apache/kandula/ xref/org/apache/kandula/coordinator/ xref/org/apache/kandula/coordinator/at/ xref/org/apache/kandula/...

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Callback.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Callback.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Callback.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Callback.html Wed May 23 12:10:37 2007
@@ -0,0 +1,41 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Callback xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/Callback.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 30, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> javax.xml.soap.Name;
+<a name="8" href="#8">8</a>   
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis.message.addressing.EndpointReference;
+<a name="10" href="#10">10</a>  
+<a name="11" href="#11">11</a>  
+<a name="12" href="#12">12</a>  
+<a name="13" href="#13">13</a>  
+<a name="14" href="#14">14</a>  <em>/**<em>*</em></em>
+<a name="15" href="#15">15</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="16" href="#16">16</a>  <em> *  </em>
+<a name="17" href="#17">17</a>  <em> */</em>
+<a name="18" href="#18">18</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> {
+<a name="19" href="#19">19</a>  	
+<a name="20" href="#20">20</a>  	String getID();
+<a name="21" href="#21">21</a>  	
+<a name="22" href="#22">22</a>  	<strong>void</strong> onFault(Name code);
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  	<strong>void</strong> timeout() throws TimedOutException;
+<a name="25" href="#25">25</a>  	
+<a name="26" href="#26">26</a>  	EndpointReference getEndpointReference();
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CallbackRegistry.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CallbackRegistry.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CallbackRegistry.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CallbackRegistry.html Wed May 23 12:10:37 2007
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CallbackRegistry xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/CallbackRegistry.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 24, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> java.util.HashMap;
+<a name="8" href="#8">8</a>   <strong>import</strong> java.util.HashSet;
+<a name="9" href="#9">9</a>   <strong>import</strong> java.util.Iterator;
+<a name="10" href="#10">10</a>  <strong>import</strong> java.util.Map;
+<a name="11" href="#11">11</a>  <strong>import</strong> java.util.Set;
+<a name="12" href="#12">12</a>  <strong>import</strong> java.util.Timer;
+<a name="13" href="#13">13</a>  <strong>import</strong> java.util.TimerTask;
+<a name="14" href="#14">14</a>  
+<a name="15" href="#15">15</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="16" href="#16">16</a>  
+<a name="17" href="#17">17</a>  <strong>import</strong> org.apache.axis.message.addressing.AddressingHeaders;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <em>/**<em>*</em></em>
+<a name="20" href="#20">20</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="21" href="#21">21</a>  <em> *  </em>
+<a name="22" href="#22">22</a>  <em> */</em>
+<a name="23" href="#23">23</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/CallbackRegistry.html">CallbackRegistry</a> {
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> QName CALLBACK_REF = <strong>new</strong> QName(
+<a name="26" href="#26">26</a>  			<span class="string">"http://ws.apache.org/kandula"</span>, <span class="string">"CallbackRef"</span>);
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	<em class="comment">// FIXME:</em>
+<a name="29" href="#29">29</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> DEFAULT_TIMEOUT_MILLIS = 20 * 1000;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>private</strong> <strong>static</strong> Timer timer = <strong>new</strong> Timer();
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> <a href="../../../../org/apache/kandula/coordinator/CallbackRegistry.html">CallbackRegistry</a> instance = <strong>new</strong> <a href="../../../../org/apache/kandula/coordinator/CallbackRegistry.html">CallbackRegistry</a>();
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>private</strong> Map callbacks = <strong>new</strong> HashMap();
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>protected</strong> <a href="../../../../org/apache/kandula/coordinator/CallbackRegistry.html">CallbackRegistry</a>() {
+<a name="38" href="#38">38</a>  	}
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/coordinator/CallbackRegistry.html">CallbackRegistry</a> getInstance() {
+<a name="41" href="#41">41</a>  		<strong>return</strong> instance;
+<a name="42" href="#42">42</a>  	}
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>public</strong> <strong>synchronized</strong> <strong>void</strong> registerCallback(<a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> callback) {
+<a name="45" href="#45">45</a>  		callbacks.put(callback.getID(), callback);
+<a name="46" href="#46">46</a>  	}
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	<strong>public</strong> <strong>synchronized</strong> <strong>void</strong> registerCallback(<strong>final</strong> <a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> callback,
+<a name="49" href="#49">49</a>  			<strong>long</strong> timeout) {
+<a name="50" href="#50">50</a>  		callbacks.put(callback.getID(), callback);
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  		<strong>if</strong> (timeout == 0)
+<a name="53" href="#53">53</a>  			timeout = DEFAULT_TIMEOUT_MILLIS;
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>  		System.out.println(<span class="string">"[CallbackRegistry] registerCallback: timeout= "</span>
+<a name="56" href="#56">56</a>  				+ timeout + <span class="string">" callbacks.size= "</span> + callbacks.size());
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>  		timer.schedule(<strong>new</strong> TimerTask() {
+<a name="59" href="#59">59</a>  			<strong>public</strong> <strong>void</strong> run() {
+<a name="60" href="#60">60</a>  				callbacks.remove(callback.getID());
+<a name="61" href="#61">61</a>  				<strong>try</strong> {
+<a name="62" href="#62">62</a>  					callback.timeout();
+<a name="63" href="#63">63</a>  				} <strong>catch</strong> (TimedOutException e) {
+<a name="64" href="#64">64</a>  					<em class="comment">//	e.printStackTrace();</em>
+<a name="65" href="#65">65</a>  				}
+<a name="66" href="#66">66</a>  			}
+<a name="67" href="#67">67</a>  		}, timeout);
+<a name="68" href="#68">68</a>  	}
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  	<strong>public</strong> <strong>synchronized</strong> <a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> correlateMessage(QName q, <strong>boolean</strong> terminal) {
+<a name="71" href="#71">71</a>  		String s = getRef(q);
+<a name="72" href="#72">72</a>  		<strong>if</strong> (s == <strong>null</strong>)
+<a name="73" href="#73">73</a>  			<strong>return</strong> <strong>null</strong>;
+<a name="74" href="#74">74</a>  		<strong>else</strong>
+<a name="75" href="#75">75</a>  			<strong>return</strong> (Callback) callbacks.get(s);
+<a name="76" href="#76">76</a>  	}
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  	<strong>private</strong> String getRef(QName q) {
+<a name="79" href="#79">79</a>  		AddressingHeaders headers = org.apache.kandula.utils.AddressingHeaders.getAddressingHeadersOfCurrentMessage();
+<a name="80" href="#80">80</a>  		<strong>try</strong> {
+<a name="81" href="#81">81</a>  			<strong>return</strong> headers.getReferenceProperties().get(q).getValue();
+<a name="82" href="#82">82</a>  		} <strong>catch</strong> (NullPointerException e) {
+<a name="83" href="#83">83</a>  			<strong>return</strong> <strong>null</strong>;
+<a name="84" href="#84">84</a>  		}
+<a name="85" href="#85">85</a>  	}
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  	<strong>public</strong> <strong>synchronized</strong> <strong>void</strong> remove(<a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> callback) {
+<a name="88" href="#88">88</a>  		callbacks.remove(callback.getID());
+<a name="89" href="#89">89</a>  	}
+<a name="90" href="#90">90</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationContext.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationContext.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationContext.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationContext.html Wed May 23 12:10:37 2007
@@ -0,0 +1,167 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CoordinationContext xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/CoordinationContext.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> * </em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License"); you may not</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * use this file except in compliance with the License. You may obtain a copy of</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * </em>
+<a name="8" href="#8">8</a>   <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> * </em>
+<a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT</em>
+<a name="12" href="#12">12</a>  <em class="comment"> * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * License for the specific language governing permissions and limitations under</em>
+<a name="14" href="#14">14</a>  <em class="comment"> * the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *  </em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> org.apache.kandula.coordinator;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.rmi.RemoteException;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> javax.xml.soap.Name;
+<a name="22" href="#22">22</a>  <strong>import</strong> javax.xml.soap.SOAPElement;
+<a name="23" href="#23">23</a>  <strong>import</strong> javax.xml.soap.SOAPHeader;
+<a name="24" href="#24">24</a>  <strong>import</strong> javax.xml.soap.SOAPHeaderElement;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis.message.MessageElement;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis.message.PrefixedQName;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis.message.addressing.EndpointReference;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.axis.message.addressing.EndpointReferenceType;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.axis.message.addressing.util.TextExtractor;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.axis.types.URI;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.axis.types.URI.MalformedURIException;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.kandula.wscoor.CoordinationContextType;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.kandula.wscoor.CoordinationContextTypeIdentifier;
+<a name="35" href="#35">35</a>  <strong>import</strong> org.w3c.dom.Element;
+<a name="36" href="#36">36</a>  <strong>import</strong> org.w3c.dom.NodeList;
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a> <strong>extends</strong> org.apache.kandula.wscoor.CoordinationContext {
+<a name="39" href="#39">39</a>  	<em>/**<em>*</em></em>
+<a name="40" href="#40">40</a>  <em>	 * </em>
+<a name="41" href="#41">41</a>  <em>	 */</em>
+<a name="42" href="#42">42</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> <strong>long</strong> serialVersionUID = 8381946008795050470L;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> Name COORDINATION_CONTEXT = <strong>new</strong> PrefixedQName(
+<a name="45" href="#45">45</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>,
+<a name="46" href="#46">46</a>  			<span class="string">"CoordinationContext"</span>, <span class="string">"wscoor"</span>);
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> Name IDENTIFIER = <strong>new</strong> PrefixedQName(
+<a name="49" href="#49">49</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>, <span class="string">"Identifier"</span>,
+<a name="50" href="#50">50</a>  			<span class="string">"wscoor"</span>);
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> Name COORDINATION_TYPE = <strong>new</strong> PrefixedQName(
+<a name="53" href="#53">53</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>, <span class="string">"CoordinationType"</span>,
+<a name="54" href="#54">54</a>  			<span class="string">"wscoor"</span>);
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> Name REGISTRATION_SERVICE = <strong>new</strong> PrefixedQName(
+<a name="57" href="#57">57</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>,
+<a name="58" href="#58">58</a>  			<span class="string">"RegistrationService"</span>, <span class="string">"wscoor"</span>);
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> Name ADDRESS = <strong>new</strong> PrefixedQName(
+<a name="61" href="#61">61</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing"</span>, <span class="string">"Address"</span>,
+<a name="62" href="#62">62</a>  			<span class="string">"wsa"</span>);
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>  	<strong>private</strong> <strong>static</strong> <strong>final</strong> Name REFERENCE_PROPERTIES = <strong>new</strong> PrefixedQName(
+<a name="65" href="#65">65</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing"</span>,
+<a name="66" href="#66">66</a>  			<span class="string">"ReferenceProperties"</span>, <span class="string">"wsa"</span>);
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a>(CoordinationContextType c) {
+<a name="69" href="#69">69</a>  		<strong>this</strong>.setCoordinationType(c.getCoordinationType());
+<a name="70" href="#70">70</a>  		<strong>this</strong>.setExpires(c.getExpires());
+<a name="71" href="#71">71</a>  		<strong>this</strong>.setIdentifier(c.getIdentifier());
+<a name="72" href="#72">72</a>  		<strong>this</strong>.setRegistrationService(c.getRegistrationService());
+<a name="73" href="#73">73</a>  	}
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a>(String id, String coordinationType,
+<a name="76" href="#76">76</a>  			EndpointReference epr) throws MalformedURIException {
+<a name="77" href="#77">77</a>  		setIdentifier(<strong>new</strong> CoordinationContextTypeIdentifier(id));
+<a name="78" href="#78">78</a>  		setRegistrationService(epr);
+<a name="79" href="#79">79</a>  		setCoordinationType(<strong>new</strong> URI(coordinationType));
+<a name="80" href="#80">80</a>  	}
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a>(
+<a name="83" href="#83">83</a>  			<strong>final</strong> CoordinationContextTypeIdentifier id, 
+<a name="84" href="#84">84</a>  			<strong>final</strong> URI coordinationType,
+<a name="85" href="#85">85</a>  			<strong>final</strong> EndpointReference epr
+<a name="86" href="#86">86</a>  	) {
+<a name="87" href="#87">87</a>  		setIdentifier(id);
+<a name="88" href="#88">88</a>  		setRegistrationService(epr);
+<a name="89" href="#89">89</a>  		setCoordinationType(coordinationType);
+<a name="90" href="#90">90</a>  	}
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a>(SOAPElement el) {
+<a name="93" href="#93">93</a>  		<strong>try</strong> {
+<a name="94" href="#94">94</a>  			NodeList list = el.getElementsByTagNameNS(IDENTIFIER.getURI(),
+<a name="95" href="#95">95</a>  				IDENTIFIER.getLocalName());
+<a name="96" href="#96">96</a>  			Element node = (Element) list.item(0);
+<a name="97" href="#97">97</a>  			String s = TextExtractor.getText(node);
+<a name="98" href="#98">98</a>  			setIdentifier(<strong>new</strong> CoordinationContextTypeIdentifier(s));
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a> 			list = el.getElementsByTagNameNS(COORDINATION_TYPE.getURI(),
+<a name="101" href="#101">101</a> 				COORDINATION_TYPE.getLocalName());
+<a name="102" href="#102">102</a> 			node = (Element) list.item(0);
+<a name="103" href="#103">103</a> 			setCoordinationType(<strong>new</strong> URI(TextExtractor.getText(node)));
+<a name="104" href="#104">104</a> 
+<a name="105" href="#105">105</a> 			list = el.getElementsByTagNameNS(REGISTRATION_SERVICE.getURI(),
+<a name="106" href="#106">106</a> 				REGISTRATION_SERVICE.getLocalName());
+<a name="107" href="#107">107</a> 			node = (Element) list.item(0);
+<a name="108" href="#108">108</a> 
+<a name="109" href="#109">109</a> 			EndpointReference epr = <strong>new</strong> EndpointReference(node);
+<a name="110" href="#110">110</a> 			setRegistrationService(epr);
+<a name="111" href="#111">111</a> 		} <strong>catch</strong> (Exception e) {
+<a name="112" href="#112">112</a> 			<strong>throw</strong> <strong>new</strong> IllegalArgumentException(e.toString());
+<a name="113" href="#113">113</a> 		}
+<a name="114" href="#114">114</a> 	}
+<a name="115" href="#115">115</a> 
+<a name="116" href="#116">116</a> 	<strong>public</strong> <strong>static</strong> <strong>boolean</strong> is(SOAPElement e) {
+<a name="117" href="#117">117</a> 		<strong>return</strong> COORDINATION_CONTEXT.equals( e.getElementName() );
+<a name="118" href="#118">118</a> 	}
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a> 	<strong>public</strong> <strong>void</strong> toSOAPHeaderElement(SOAPHeader header) {
+<a name="121" href="#121">121</a> 		<strong>try</strong> {
+<a name="122" href="#122">122</a> 			SOAPHeaderElement e = header.addHeaderElement(COORDINATION_CONTEXT);
+<a name="123" href="#123">123</a> 			e.addChildElement(IDENTIFIER).addTextNode(
+<a name="124" href="#124">124</a> 				getIdentifier().toString());
+<a name="125" href="#125">125</a> 			e.addChildElement(COORDINATION_TYPE).addTextNode(
+<a name="126" href="#126">126</a> 				getCoordinationType().toString());
+<a name="127" href="#127">127</a> 			SOAPElement e1 = e.addChildElement(REGISTRATION_SERVICE);
+<a name="128" href="#128">128</a> 			EndpointReferenceType epr = getRegistrationService();
+<a name="129" href="#129">129</a> 			e1.addChildElement(ADDRESS).addTextNode(epr.getAddress().toString());
+<a name="130" href="#130">130</a> 			SOAPElement e3 = e1.addChildElement(REFERENCE_PROPERTIES);
+<a name="131" href="#131">131</a> 			MessageElement[] e4 = epr.getProperties().get_any();
+<a name="132" href="#132">132</a> 			<strong>for</strong> (<strong>int</strong> ii = 0; ii &lt; e4.length; ii++)
+<a name="133" href="#133">133</a> 				e3.addChildElement(e4[ii].getElementName()).addTextNode(
+<a name="134" href="#134">134</a> 					e4[ii].getValue());
+<a name="135" href="#135">135</a> 		} <strong>catch</strong> (Exception e) {
+<a name="136" href="#136">136</a> 			<strong>throw</strong> <strong>new</strong> RuntimeException(e);
+<a name="137" href="#137">137</a> 		}
+<a name="138" href="#138">138</a> 	}
+<a name="139" href="#139">139</a> 
+<a name="140" href="#140">140</a> 	<strong>public</strong> EndpointReference register(String p, EndpointReference epr)
+<a name="141" href="#141">141</a> 			throws RemoteException {
+<a name="142" href="#142">142</a> 		<strong>try</strong> {
+<a name="143" href="#143">143</a> 			RegistrationStub stub = <strong>new</strong> <a href="../../../../org/apache/kandula/coordinator/RegistrationStub.html">RegistrationStub</a>(<strong>new</strong> EndpointReference(
+<a name="144" href="#144">144</a> 					getRegistrationService()));
+<a name="145" href="#145">145</a> 			<strong>return</strong> stub.registerOperation(p, epr);
+<a name="146" href="#146">146</a> 		} <strong>catch</strong> (RemoteException e) {
+<a name="147" href="#147">147</a> 			<strong>throw</strong> e;
+<a name="148" href="#148">148</a> 		} <strong>catch</strong> (Exception e) {
+<a name="149" href="#149">149</a> 			e.printStackTrace();
+<a name="150" href="#150">150</a> 			<strong>throw</strong> <strong>new</strong> RuntimeException(e);
+<a name="151" href="#151">151</a> 		}
+<a name="152" href="#152">152</a> 	}
+<a name="153" href="#153">153</a> 
+<a name="154" href="#154">154</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationService.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationService.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationService.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinationService.html Wed May 23 12:10:37 2007
@@ -0,0 +1,146 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CoordinationService xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/CoordinationService.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 25, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> java.rmi.RemoteException;
+<a name="8" href="#8">8</a>   
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis.message.MessageElement;
+<a name="10" href="#10">10</a>  <strong>import</strong> org.apache.axis.message.addressing.EndpointReference;
+<a name="11" href="#11">11</a>  <strong>import</strong> org.apache.axis.message.addressing.ReferencePropertiesType;
+<a name="12" href="#12">12</a>  <strong>import</strong> org.apache.axis.types.URI.MalformedURIException;
+<a name="13" href="#13">13</a>  <strong>import</strong> org.apache.kandula.KandulaConfig;
+<a name="14" href="#14">14</a>  <strong>import</strong> org.apache.kandula.coordinator.at.ATCoordinator;
+<a name="15" href="#15">15</a>  <strong>import</strong> org.apache.kandula.coordinator.at.ATCoordinatorImpl;
+<a name="16" href="#16">16</a>  <strong>import</strong> org.apache.kandula.coordinator.at.AbstractParticipant;
+<a name="17" href="#17">17</a>  <strong>import</strong> org.apache.kandula.wscoor.ActivationPortTypeRPC;
+<a name="18" href="#18">18</a>  <strong>import</strong> org.apache.kandula.wscoor.CreateCoordinationContextResponseType;
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.kandula.wscoor.CreateCoordinationContextType;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.kandula.wscoor.Expires;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <em>/**<em>*</em></em>
+<a name="23" href="#23">23</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="24" href="#24">24</a>  <em> *  </em>
+<a name="25" href="#25">25</a>  <em> */</em>
+<a name="26" href="#26">26</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationService.html">CoordinationService</a> implements ActivationPortTypeRPC {
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	<strong>private</strong> String context = KandulaConfig.getInstance().getContext();
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  	<strong>private</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationService.html">CoordinationService</a> instance = <strong>new</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationService.html">CoordinationService</a>();
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  	<strong>public</strong> <strong>static</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationService.html">CoordinationService</a> getInstance() {
+<a name="33" href="#33">33</a>  		<strong>return</strong> instance;
+<a name="34" href="#34">34</a>  	}
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  	<strong>private</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationService.html">CoordinationService</a>() {
+<a name="37" href="#37">37</a>  	}
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a> createCoordinationContext(
+<a name="40" href="#40">40</a>  			String coordinationType, <strong>long</strong> timeout)
+<a name="41" href="#41">41</a>  			throws UnsupportedCoordinationTypeException, MalformedURIException {
+<a name="42" href="#42">42</a>  		<strong>if</strong> (!ATCoordinator.COORDINATION_TYPE_ID.equals(coordinationType))
+<a name="43" href="#43">43</a>  			<strong>throw</strong> <strong>new</strong> <a href="../../../../org/apache/kandula/coordinator/UnsupportedCoordinationTypeException.html">UnsupportedCoordinationTypeException</a>();
+<a name="44" href="#44">44</a>  		Coordinator c = <strong>new</strong> <a href="../../../../org/apache/kandula/coordinator/at/ATCoordinatorImpl.html">ATCoordinatorImpl</a>();
+<a name="45" href="#45">45</a>  		CallbackRegistry.getInstance().registerCallback(c, timeout);
+<a name="46" href="#46">46</a>  		<strong>return</strong> c.getCoordinationContext();
+<a name="47" href="#47">47</a>  	}
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  	<strong>public</strong> EndpointReference getActivationCoordinatorService() {
+<a name="50" href="#50">50</a>  		<strong>return</strong> getEndpointReference(context + <span class="string">"activationCoordinator"</span>);
+<a name="51" href="#51">51</a>  	}
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  	<strong>public</strong> EndpointReference getCompletionCoordinatorService(<a href="../../../../org/apache/kandula/coordinator/at/ATCoordinator.html">ATCoordinator</a> c) {
+<a name="54" href="#54">54</a>  		<strong>return</strong> getEndpointReference(context + <span class="string">"completionCoordinator"</span>, c);
+<a name="55" href="#55">55</a>  	}
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>  	<strong>public</strong> EndpointReference getCoordinatorService(<a href="../../../../org/apache/kandula/coordinator/at/ATCoordinator.html">ATCoordinator</a> c,
+<a name="58" href="#58">58</a>  			String participantRef) {
+<a name="59" href="#59">59</a>  		EndpointReference epr = getEndpointReference(context + <span class="string">"coordinator"</span>, c);
+<a name="60" href="#60">60</a>  		epr.getProperties().add(
+<a name="61" href="#61">61</a>  			<strong>new</strong> MessageElement(ATCoordinator.PARTICIPANT_REF, participantRef));
+<a name="62" href="#62">62</a>  		<strong>return</strong> epr;
+<a name="63" href="#63">63</a>  	}
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  	<strong>public</strong> EndpointReference getRegistrationCoordinatorService(<a href="../../../../org/apache/kandula/coordinator/Coordinator.html">Coordinator</a> c) {
+<a name="66" href="#66">66</a>  		<strong>return</strong> getEndpointReference(context + <span class="string">"registrationCoordinator"</span>, c);
+<a name="67" href="#67">67</a>  	}
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  	<strong>public</strong> EndpointReference getCompletionInitiatorService(<a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> callback,
+<a name="70" href="#70">70</a>  			<strong>long</strong> timeout) {
+<a name="71" href="#71">71</a>  		CallbackRegistry.getInstance().registerCallback(callback, timeout);
+<a name="72" href="#72">72</a>  		<strong>return</strong> getEndpointReference(context + <span class="string">"completionInitiator"</span>, callback);
+<a name="73" href="#73">73</a>  	}
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>  	<strong>public</strong> EndpointReference getFaultDispatcherService(<a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> callback) {
+<a name="76" href="#76">76</a>  		<strong>return</strong> getEndpointReference(context + <span class="string">"faultDispatcher"</span>, callback);
+<a name="77" href="#77">77</a>  	}
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  	<strong>public</strong> EndpointReference getFaultDispatcherService(<a href="../../../../org/apache/kandula/coordinator/Coordinator.html">Coordinator</a> callback,
+<a name="80" href="#80">80</a>  			String participantRef) {
+<a name="81" href="#81">81</a>  		EndpointReference epr = getEndpointReference(context
+<a name="82" href="#82">82</a>  				+ <span class="string">"faultDispatcher"</span>, callback);
+<a name="83" href="#83">83</a>  		epr.getProperties().add(
+<a name="84" href="#84">84</a>  			<strong>new</strong> MessageElement(ATCoordinator.PARTICIPANT_REF, participantRef));
+<a name="85" href="#85">85</a>  		<strong>return</strong> epr;
+<a name="86" href="#86">86</a>  	}
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  	<strong>public</strong> EndpointReference getParticipantService(
+<a name="89" href="#89">89</a>  			AbstractParticipant participant, <strong>long</strong> timeout) {
+<a name="90" href="#90">90</a>  		CallbackRegistry.getInstance().registerCallback(participant, timeout);
+<a name="91" href="#91">91</a>  		<strong>return</strong> getEndpointReference(context + <span class="string">"participant"</span>, participant);
+<a name="92" href="#92">92</a>  	}
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>  	<strong>private</strong> EndpointReference getEndpointReference(String uri) {
+<a name="95" href="#95">95</a>  		<strong>try</strong> {
+<a name="96" href="#96">96</a>  			<strong>return</strong> <strong>new</strong> EndpointReference(uri);
+<a name="97" href="#97">97</a>  		} <strong>catch</strong> (MalformedURIException e) {
+<a name="98" href="#98">98</a>  			e.printStackTrace();
+<a name="99" href="#99">99</a>  			<strong>throw</strong> <strong>new</strong> IllegalArgumentException();
+<a name="100" href="#100">100</a> 		}
+<a name="101" href="#101">101</a> 	}
+<a name="102" href="#102">102</a> 
+<a name="103" href="#103">103</a> 	<strong>private</strong> EndpointReference getEndpointReference(String uri, <a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> callback) {
+<a name="104" href="#104">104</a> 		EndpointReference epr = getEndpointReference(uri);
+<a name="105" href="#105">105</a> 		ReferencePropertiesType r = <strong>new</strong> ReferencePropertiesType();
+<a name="106" href="#106">106</a> 		r.add(<strong>new</strong> MessageElement(CallbackRegistry.CALLBACK_REF,
+<a name="107" href="#107">107</a> 				callback.getID()));
+<a name="108" href="#108">108</a> 		epr.setProperties(r);
+<a name="109" href="#109">109</a> 		<strong>return</strong> epr;
+<a name="110" href="#110">110</a> 	}
+<a name="111" href="#111">111</a> 
+<a name="112" href="#112">112</a> 	<strong>public</strong> CreateCoordinationContextResponseType createCoordinationContextOperation(
+<a name="113" href="#113">113</a> 			CreateCoordinationContextType parameters) throws RemoteException {
+<a name="114" href="#114">114</a> 		String t = parameters.getCoordinationType().toString();
+<a name="115" href="#115">115</a> 		Expires ex = parameters.getExpires();
+<a name="116" href="#116">116</a> 		<strong>long</strong> timeout = 0;
+<a name="117" href="#117">117</a> 		<strong>if</strong> (ex != <strong>null</strong>)
+<a name="118" href="#118">118</a> 			timeout = ex.get_value().longValue() * 1000;
+<a name="119" href="#119">119</a> 		CoordinationContext ctx = <strong>null</strong>;
+<a name="120" href="#120">120</a> 		<strong>try</strong> {
+<a name="121" href="#121">121</a> 			ctx = createCoordinationContext(t, timeout);
+<a name="122" href="#122">122</a> 		} <strong>catch</strong> (MalformedURIException e) {
+<a name="123" href="#123">123</a> 			e.printStackTrace();
+<a name="124" href="#124">124</a> 			<strong>throw</strong> <strong>new</strong> RemoteException(e.toString());
+<a name="125" href="#125">125</a> 		} <strong>catch</strong> (UnsupportedCoordinationTypeException e) {
+<a name="126" href="#126">126</a> 			e.printStackTrace();
+<a name="127" href="#127">127</a> 			<strong>throw</strong> <strong>new</strong> RemoteException(e.toString());
+<a name="128" href="#128">128</a> 		}
+<a name="129" href="#129">129</a> 		CreateCoordinationContextResponseType r = <strong>new</strong> CreateCoordinationContextResponseType();
+<a name="130" href="#130">130</a> 		r.setCoordinationContext(ctx);
+<a name="131" href="#131">131</a> 		<strong>return</strong> r;
+<a name="132" href="#132">132</a> 	}
+<a name="133" href="#133">133</a> }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Coordinator.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Coordinator.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Coordinator.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/Coordinator.html Wed May 23 12:10:37 2007
@@ -0,0 +1,55 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>Coordinator xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/Coordinator.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 23, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> javax.xml.namespace.QName;
+<a name="8" href="#8">8</a>   
+<a name="9" href="#9">9</a>   <strong>import</strong> org.apache.axis.AxisFault;
+<a name="10" href="#10">10</a>  <strong>import</strong> org.apache.kandula.wscoor.RegistrationPortTypeRPC;
+<a name="11" href="#11">11</a>  
+<a name="12" href="#12">12</a>  <em>/**<em>*</em></em>
+<a name="13" href="#13">13</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="14" href="#14">14</a>  <em> *  </em>
+<a name="15" href="#15">15</a>  <em> */</em>
+<a name="16" href="#16">16</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../org/apache/kandula/coordinator/Coordinator.html">Coordinator</a> <strong>extends</strong> RegistrationPortTypeRPC, <a href="../../../../org/apache/kandula/coordinator/Callback.html">Callback</a> {
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  	AxisFault ALREADY_REGISTERED_SOAP_FAULT = <strong>new</strong> AxisFault(
+<a name="19" href="#19">19</a>  			<strong>new</strong> QName(<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>,
+<a name="20" href="#20">20</a>  					<span class="string">"AlreadyRegistered"</span>),
+<a name="21" href="#21">21</a>  			<span class="string">"The participant has already registered for the same protocol."</span>,
+<a name="22" href="#22">22</a>  			<strong>null</strong>, <strong>null</strong>);
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  	AxisFault INVALID_PROTOCOL_SOAP_FAULT = <strong>new</strong> AxisFault(<strong>new</strong> QName(
+<a name="25" href="#25">25</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>, <span class="string">"InvalidProtocol"</span>),
+<a name="26" href="#26">26</a>  			<span class="string">"The protocol is invalid or is not supported by the coordinator."</span>,
+<a name="27" href="#27">27</a>  			<strong>null</strong>, <strong>null</strong>);
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  	AxisFault INVALID_STATE_SOAP_FAULT = <strong>new</strong> AxisFault(<strong>new</strong> QName(
+<a name="30" href="#30">30</a>  			<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>, <span class="string">"InvalidState"</span>),
+<a name="31" href="#31">31</a>  			<span class="string">"The message was invalid for the current state of the activity."</span>,
+<a name="32" href="#32">32</a>  			<strong>null</strong>, <strong>null</strong>);
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  	AxisFault INVALID_PARAMETERS_SOAP_FAULT = <strong>new</strong> AxisFault(
+<a name="35" href="#35">35</a>  			<strong>new</strong> QName(<span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wscoor"</span>,
+<a name="36" href="#36">36</a>  					<span class="string">"InvalidParameters"</span>),
+<a name="37" href="#37">37</a>  			<span class="string">"The message contained invalid parameters and could not be processed."</span>,
+<a name="38" href="#38">38</a>  			<strong>null</strong>, <strong>null</strong>);
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	CoordinationContext getCoordinationContext();
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinatorImpl.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinatorImpl.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinatorImpl.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/CoordinatorImpl.html Wed May 23 12:10:37 2007
@@ -0,0 +1,101 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>CoordinatorImpl xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/CoordinatorImpl.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 23, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> java.net.MalformedURLException;
+<a name="8" href="#8">8</a>   <strong>import</strong> java.rmi.RemoteException;
+<a name="9" href="#9">9</a>   
+<a name="10" href="#10">10</a>  <strong>import</strong> javax.xml.rpc.ServiceException;
+<a name="11" href="#11">11</a>  
+<a name="12" href="#12">12</a>  <strong>import</strong> org.apache.axis.AxisFault;
+<a name="13" href="#13">13</a>  <strong>import</strong> org.apache.axis.components.uuid.UUIDGen;
+<a name="14" href="#14">14</a>  <strong>import</strong> org.apache.axis.components.uuid.UUIDGenFactory;
+<a name="15" href="#15">15</a>  <strong>import</strong> org.apache.axis.message.addressing.EndpointReference;
+<a name="16" href="#16">16</a>  <strong>import</strong> org.apache.axis.types.URI.MalformedURIException;
+<a name="17" href="#17">17</a>  <strong>import</strong> org.apache.kandula.utils.SoapFaultSender;
+<a name="18" href="#18">18</a>  <strong>import</strong> org.apache.kandula.wscoor.RegisterResponseType;
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.kandula.wscoor.RegisterType;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <em>/**<em>*</em></em>
+<a name="22" href="#22">22</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="23" href="#23">23</a>  <em> *  </em>
+<a name="24" href="#24">24</a>  <em> */</em>
+<a name="25" href="#25">25</a>  <strong>public</strong> <strong>abstract</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinatorImpl.html">CoordinatorImpl</a> implements <a href="../../../../org/apache/kandula/coordinator/Coordinator.html">Coordinator</a> {
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  	<strong>private</strong> String id;
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  	<strong>private</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a> ctx;
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>protected</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinatorImpl.html">CoordinatorImpl</a>(String coordinationType)
+<a name="32" href="#32">32</a>  			throws MalformedURIException {
+<a name="33" href="#33">33</a>  		UUIDGen gen = UUIDGenFactory.getUUIDGen();
+<a name="34" href="#34">34</a>  		id = <span class="string">"uuid:"</span> + gen.nextUUID();
+<a name="35" href="#35">35</a>  		CoordinationService cs = CoordinationService.getInstance();
+<a name="36" href="#36">36</a>  		EndpointReference epr = cs.getRegistrationCoordinatorService(<strong>this</strong>);
+<a name="37" href="#37">37</a>  		ctx = <strong>new</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a>(id, coordinationType, epr);
+<a name="38" href="#38">38</a>  	}
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>public</strong> String getID() {
+<a name="41" href="#41">41</a>  		<strong>return</strong> id;
+<a name="42" href="#42">42</a>  	}
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/coordinator/CoordinationContext.html">CoordinationContext</a> getCoordinationContext() {
+<a name="45" href="#45">45</a>  		<strong>return</strong> ctx;
+<a name="46" href="#46">46</a>  	}
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	<strong>public</strong> <strong>abstract</strong> EndpointReference register(String prot,
+<a name="49" href="#49">49</a>  			EndpointReference pps) throws InvalidCoordinationProtocolException;
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>  	<strong>public</strong> <strong>synchronized</strong> RegisterResponseType registerOperation(
+<a name="52" href="#52">52</a>  			RegisterType params) throws RemoteException {
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  		EndpointReference epr = <strong>null</strong>;
+<a name="55" href="#55">55</a>  		<strong>try</strong> {
+<a name="56" href="#56">56</a>  			epr = register(params.getProtocolIdentifier().toString(),
+<a name="57" href="#57">57</a>  				<strong>new</strong> EndpointReference(params.getParticipantProtocolService()));
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  		} <strong>catch</strong> (InvalidCoordinationProtocolException e) {
+<a name="60" href="#60">60</a>  			<strong>throw</strong> INVALID_PROTOCOL_SOAP_FAULT;
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  		} <strong>catch</strong> (IllegalStateException e) {
+<a name="63" href="#63">63</a>  			<strong>throw</strong> INVALID_STATE_SOAP_FAULT;
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  		} <strong>catch</strong> (IllegalArgumentException e) {
+<a name="66" href="#66">66</a>  			<strong>throw</strong> INVALID_PARAMETERS_SOAP_FAULT;
+<a name="67" href="#67">67</a>  		}
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  		RegisterResponseType r = <strong>new</strong> RegisterResponseType();
+<a name="70" href="#70">70</a>  		r.setCoordinatorProtocolService(epr);
+<a name="71" href="#71">71</a>  		<strong>return</strong> r;
+<a name="72" href="#72">72</a>  	}
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  	<strong>protected</strong> <strong>void</strong> trigger(EndpointReference faultTo, AxisFault fault)
+<a name="75" href="#75">75</a>  			throws AxisFault {
+<a name="76" href="#76">76</a>  		<strong>try</strong> {
+<a name="77" href="#77">77</a>  			SoapFaultSender.invoke(faultTo,
+<a name="78" href="#78">78</a>  				fault.getFaultCode().getNamespaceURI() + <span class="string">"/fault"</span>, fault);
+<a name="79" href="#79">79</a>  		} <strong>catch</strong> (MalformedURLException e) {
+<a name="80" href="#80">80</a>  			e.printStackTrace();
+<a name="81" href="#81">81</a>  			<strong>throw</strong> <strong>new</strong> IllegalArgumentException();
+<a name="82" href="#82">82</a>  		} <strong>catch</strong> (ServiceException e) {
+<a name="83" href="#83">83</a>  			e.printStackTrace();
+<a name="84" href="#84">84</a>  			<strong>throw</strong> <strong>new</strong> RuntimeException(e);
+<a name="85" href="#85">85</a>  		}
+<a name="86" href="#86">86</a>  	}
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/FaultDispatcher.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/FaultDispatcher.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/FaultDispatcher.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/FaultDispatcher.html Wed May 23 12:10:37 2007
@@ -0,0 +1,45 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>FaultDispatcher xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/FaultDispatcher.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Jan 6, 2006</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> javax.xml.soap.SOAPBody;
+<a name="8" href="#8">8</a>   <strong>import</strong> javax.xml.soap.SOAPEnvelope;
+<a name="9" href="#9">9</a>   <strong>import</strong> javax.xml.soap.SOAPFault;
+<a name="10" href="#10">10</a>  
+<a name="11" href="#11">11</a>  <strong>import</strong> org.apache.axis.MessageContext;
+<a name="12" href="#12">12</a>  
+<a name="13" href="#13">13</a>  <em>/**<em>*</em></em>
+<a name="14" href="#14">14</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="15" href="#15">15</a>  <em> *  </em>
+<a name="16" href="#16">16</a>  <em> */</em>
+<a name="17" href="#17">17</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/FaultDispatcher.html">FaultDispatcher</a> {
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  	<strong>public</strong> <strong>void</strong> process(SOAPEnvelope req, SOAPEnvelope resp)
+<a name="20" href="#20">20</a>  			throws javax.xml.soap.SOAPException {
+<a name="21" href="#21">21</a>  		SOAPBody body = req.getBody();
+<a name="22" href="#22">22</a>  		SOAPFault fault = body.getFault();
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  		Callback callback = (Callback) CallbackRegistry.getInstance().correlateMessage(
+<a name="25" href="#25">25</a>  			CallbackRegistry.CALLBACK_REF, false);
+<a name="26" href="#26">26</a>  		<strong>if</strong> (callback != <strong>null</strong>)
+<a name="27" href="#27">27</a>  			callback.onFault(fault.getFaultCodeAsName());
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  		MessageContext.getCurrentContext().setResponseMessage(<strong>null</strong>);
+<a name="30" href="#30">30</a>  	}
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/InvalidCoordinationProtocolException.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/InvalidCoordinationProtocolException.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/InvalidCoordinationProtocolException.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/InvalidCoordinationProtocolException.html Wed May 23 12:10:37 2007
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>InvalidCoordinationProtocolException xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/InvalidCoordinationProtocolException.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Jan 6, 2006</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <em>/**<em>*</em></em>
+<a name="8" href="#8">8</a>   <em> * @author Dasarath Weeratunge</em>
+<a name="9" href="#9">9</a>   <em> *</em>
+<a name="10" href="#10">10</a>  <em> */</em>
+<a name="11" href="#11">11</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/InvalidCoordinationProtocolException.html">InvalidCoordinationProtocolException</a> <strong>extends</strong> Exception {
+<a name="12" href="#12">12</a>  
+<a name="13" href="#13">13</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationImpl.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationImpl.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationImpl.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationImpl.html Wed May 23 12:10:37 2007
@@ -0,0 +1,46 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>RegistrationImpl xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/RegistrationImpl.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> * </em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License"); you may not</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * use this file except in compliance with the License. You may obtain a copy of</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * </em>
+<a name="8" href="#8">8</a>   <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> * </em>
+<a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT</em>
+<a name="12" href="#12">12</a>  <em class="comment"> * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * License for the specific language governing permissions and limitations under</em>
+<a name="14" href="#14">14</a>  <em class="comment"> * the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *  </em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> org.apache.kandula.coordinator;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.rmi.RemoteException;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.kandula.wscoor.RegisterResponseType;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.kandula.wscoor.RegisterType;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.wscoor.RegistrationPortTypeRPC;
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/RegistrationImpl.html">RegistrationImpl</a> implements RegistrationPortTypeRPC {
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  	<strong>public</strong> RegisterResponseType registerOperation(RegisterType params)
+<a name="28" href="#28">28</a>  			throws RemoteException {
+<a name="29" href="#29">29</a>  		Coordinator c = (Coordinator) CallbackRegistry.getInstance().correlateMessage(
+<a name="30" href="#30">30</a>  			CallbackRegistry.CALLBACK_REF, false);
+<a name="31" href="#31">31</a>  		<strong>return</strong> c.registerOperation(params);
+<a name="32" href="#32">32</a>  	}
+<a name="33" href="#33">33</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationStub.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationStub.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationStub.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/RegistrationStub.html Wed May 23 12:10:37 2007
@@ -0,0 +1,69 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>RegistrationStub xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/RegistrationStub.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright  2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> *  Licensed under the Apache License, Version 2.0 (the "License");</em>
+<a name="5" href="#5">5</a>   <em class="comment"> *  you may not use this file except in compliance with the License.</em>
+<a name="6" href="#6">6</a>   <em class="comment"> *  You may obtain a copy of the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> *</em>
+<a name="8" href="#8">8</a>   <em class="comment"> *      <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> *</em>
+<a name="10" href="#10">10</a>  <em class="comment"> *  Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> *  distributed under the License is distributed on an "AS IS" BASIS,</em>
+<a name="12" href="#12">12</a>  <em class="comment"> *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.</em>
+<a name="13" href="#13">13</a>  <em class="comment"> *  See the License for the specific language governing permissions and</em>
+<a name="14" href="#14">14</a>  <em class="comment"> *  limitations under the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *</em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> org.apache.kandula.coordinator;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.net.MalformedURLException;
+<a name="20" href="#20">20</a>  <strong>import</strong> java.net.URL;
+<a name="21" href="#21">21</a>  <strong>import</strong> java.rmi.RemoteException;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis.AxisFault;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis.message.addressing.EndpointReference;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis.types.URI;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis.types.URI.MalformedURIException;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.kandula.utils.AddressingHeaders;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.kandula.utils.Service;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.kandula.utils.TCPSnifferHelper;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.kandula.wscoor.RegisterType;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.kandula.wscoor.RegistrationPortTypeRPCBindingStub;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <em>/**<em>*</em></em>
+<a name="34" href="#34">34</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="35" href="#35">35</a>  <em> * </em>
+<a name="36" href="#36">36</a>  <em> * Created on Jun 14, 2004</em>
+<a name="37" href="#37">37</a>  <em> */</em>
+<a name="38" href="#38">38</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/RegistrationStub.html">RegistrationStub</a> <strong>extends</strong> RegistrationPortTypeRPCBindingStub {
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>public</strong> <a href="../../../../org/apache/kandula/coordinator/RegistrationStub.html">RegistrationStub</a>(EndpointReference epr) throws AxisFault,
+<a name="41" href="#41">41</a>  			MalformedURLException {
+<a name="42" href="#42">42</a>  		<strong>super</strong>(<strong>new</strong> URL(TCPSnifferHelper.redirect(epr.getAddress().toString())),
+<a name="43" href="#43">43</a>  				<strong>new</strong> <a href="../../../../org/apache/kandula/utils/Service.html">Service</a>());
+<a name="44" href="#44">44</a>  		AddressingHeaders headers = <strong>new</strong> <a href="../../../../org/apache/kandula/utils/AddressingHeaders.html">AddressingHeaders</a>(epr, <strong>null</strong>);
+<a name="45" href="#45">45</a>  		((Service) service).setAddressingHeaders(headers);
+<a name="46" href="#46">46</a>  	}
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	<strong>public</strong> EndpointReference registerOperation(String p, EndpointReference epr)
+<a name="49" href="#49">49</a>  			throws RemoteException, MalformedURIException {
+<a name="50" href="#50">50</a>  		RegisterType params = <strong>new</strong> RegisterType();
+<a name="51" href="#51">51</a>  		params.setProtocolIdentifier(<strong>new</strong> URI(p));
+<a name="52" href="#52">52</a>  		params.setParticipantProtocolService(epr);
+<a name="53" href="#53">53</a>  		<strong>return</strong> <strong>new</strong> EndpointReference(
+<a name="54" href="#54">54</a>  				registerOperation(params).getCoordinatorProtocolService());
+<a name="55" href="#55">55</a>  	}
+<a name="56" href="#56">56</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/TimedOutException.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/TimedOutException.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/TimedOutException.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/TimedOutException.html Wed May 23 12:10:37 2007
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>TimedOutException xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/TimedOutException.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 30, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <em>/**<em>*</em></em>
+<a name="8" href="#8">8</a>   <em> * @author Dasarath Weeratunge</em>
+<a name="9" href="#9">9</a>   <em> *</em>
+<a name="10" href="#10">10</a>  <em> */</em>
+<a name="11" href="#11">11</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/TimedOutException.html">TimedOutException</a> <strong>extends</strong> Exception {
+<a name="12" href="#12">12</a>  
+<a name="13" href="#13">13</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/UnsupportedCoordinationTypeException.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/UnsupportedCoordinationTypeException.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/UnsupportedCoordinationTypeException.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/UnsupportedCoordinationTypeException.html Wed May 23 12:10:37 2007
@@ -0,0 +1,26 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>UnsupportedCoordinationTypeException xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/coordinator/UnsupportedCoordinationTypeException.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 25, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <em>/**<em>*</em></em>
+<a name="8" href="#8">8</a>   <em> * @author Dasarath Weeratunge</em>
+<a name="9" href="#9">9</a>   <em> *</em>
+<a name="10" href="#10">10</a>  <em> */</em>
+<a name="11" href="#11">11</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/coordinator/UnsupportedCoordinationTypeException.html">UnsupportedCoordinationTypeException</a> <strong>extends</strong> Exception {
+<a name="12" href="#12">12</a>  
+<a name="13" href="#13">13</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/AT2PCStatus.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/AT2PCStatus.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/AT2PCStatus.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/AT2PCStatus.html Wed May 23 12:10:37 2007
@@ -0,0 +1,56 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>AT2PCStatus xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/coordinator/at/AT2PCStatus.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Created on Dec 23, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> */</em>
+<a name="5" href="#5">5</a>   <strong>package</strong> org.apache.kandula.coordinator.at;
+<a name="6" href="#6">6</a>   
+<a name="7" href="#7">7</a>   <strong>import</strong> java.lang.reflect.Field;
+<a name="8" href="#8">8</a>   
+<a name="9" href="#9">9</a>   <em>/**<em>*</em></em>
+<a name="10" href="#10">10</a>  <em> * @author Dasarath Weeratunge</em>
+<a name="11" href="#11">11</a>  <em> *  </em>
+<a name="12" href="#12">12</a>  <em> */</em>
+<a name="13" href="#13">13</a>  <strong>public</strong> <strong>class</strong> AT2PCStatus {
+<a name="14" href="#14">14</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> NONE = 0;
+<a name="15" href="#15">15</a>  
+<a name="16" href="#16">16</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> ACTIVE = 1;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> PREPARING_VOLATILE = 2;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> PREPARING_DURABLE = 3;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> PREPARING = 4;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> PREPARED = 5;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> COMMITTING = 6;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> ABORTING = 7;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  	<strong>private</strong> <strong>static</strong> Field[] flds = AT2PCStatus.<strong>class</strong>.getDeclaredFields();
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  	<strong>public</strong> <strong>static</strong> String getStatusName(<strong>int</strong> status) {
+<a name="33" href="#33">33</a>  		<strong>try</strong> {
+<a name="34" href="#34">34</a>  			<strong>for</strong> (<strong>int</strong> i = 0; i &lt; flds.length; i++) {				
+<a name="35" href="#35">35</a>  				<strong>if</strong> (flds[i].getInt(<strong>null</strong>) == status)
+<a name="36" href="#36">36</a>  					<strong>return</strong> flds[i].getName();
+<a name="37" href="#37">37</a>  			}
+<a name="38" href="#38">38</a>  		} <strong>catch</strong> (Exception e) {
+<a name="39" href="#39">39</a>  			e.printStackTrace();
+<a name="40" href="#40">40</a>  		}
+<a name="41" href="#41">41</a>  		<strong>throw</strong> <strong>new</strong> IllegalArgumentException();
+<a name="42" href="#42">42</a>  	}
+<a name="43" href="#43">43</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/ATCoordinator.html
URL: http://svn.apache.org/viewvc/webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/ATCoordinator.html?view=auto&rev=541034
==============================================================================
--- webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/ATCoordinator.html (added)
+++ webservices/kandula/site/1/xref/org/apache/kandula/coordinator/at/ATCoordinator.html Wed May 23 12:10:37 2007
@@ -0,0 +1,52 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>ATCoordinator xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/kandula/coordinator/at/ATCoordinator.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a>   <em class="comment">/*</em>
+<a name="2" href="#2">2</a>   <em class="comment"> * Copyright 2004 The Apache Software Foundation.</em>
+<a name="3" href="#3">3</a>   <em class="comment"> * </em>
+<a name="4" href="#4">4</a>   <em class="comment"> * Licensed under the Apache License, Version 2.0 (the "License"); you may not</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * use this file except in compliance with the License. You may obtain a copy of</em>
+<a name="6" href="#6">6</a>   <em class="comment"> * the License at</em>
+<a name="7" href="#7">7</a>   <em class="comment"> * </em>
+<a name="8" href="#8">8</a>   <em class="comment"> * <a href="http://www.apache.org/licenses/LICENSE-2.0" target="alexandria_uri">http://www.apache.org/licenses/LICENSE-2.0</a></em>
+<a name="9" href="#9">9</a>   <em class="comment"> * </em>
+<a name="10" href="#10">10</a>  <em class="comment"> * Unless required by applicable law or agreed to in writing, software</em>
+<a name="11" href="#11">11</a>  <em class="comment"> * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT</em>
+<a name="12" href="#12">12</a>  <em class="comment"> * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the</em>
+<a name="13" href="#13">13</a>  <em class="comment"> * License for the specific language governing permissions and limitations under</em>
+<a name="14" href="#14">14</a>  <em class="comment"> * the License.</em>
+<a name="15" href="#15">15</a>  <em class="comment"> *  </em>
+<a name="16" href="#16">16</a>  <em class="comment"> */</em>
+<a name="17" href="#17">17</a>  <strong>package</strong> org.apache.kandula.coordinator.at;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="20" href="#20">20</a>  
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.kandula.coordinator.Coordinator;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.kandula.wsat.CompletionCoordinatorPortType;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.kandula.wsat.CoordinatorPortType;
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <strong>public</strong> <strong>interface</strong> <a href="../../../../../org/apache/kandula/coordinator/at/ATCoordinator.html">ATCoordinator</a> <strong>extends</strong> Coordinator, CoordinatorPortType,
+<a name="26" href="#26">26</a>  		CompletionCoordinatorPortType {
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	<strong>final</strong> QName PARTICIPANT_REF = <strong>new</strong> QName(<span class="string">"http://ws.apache.org/kandula"</span>,
+<a name="29" href="#29">29</a>  			<span class="string">"ParticipantRef"</span>);
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>final</strong> String COORDINATION_TYPE_ID = <span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wsat"</span>;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  	<strong>final</strong> String PROTOCOL_ID_COMPLETION = <span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wsat/Completion"</span>;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>final</strong> String PROTOCOL_ID_VOLATILE_2PC = <span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wsat/Volatile2PC"</span>;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>final</strong> String PROTOCOL_ID_DURABLE_2PC = <span class="string">"http://schemas.xmlsoap.org/ws/2004/10/wsat/Durable2PC"</span>;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+



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