ws-kandula-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From thil...@apache.org
Subject svn commit: r406210 [15/15] - in /webservices/kandula/site/2: ./ images/ images/logos/ style/ xref-test/ xref-test/org/ xref-test/org/apache/ xref-test/org/apache/kandula/ xref-test/org/apache/kandula/context/ xref-test/org/apache/kandula/coordinator/ ...
Date Sun, 14 May 2006 03:09:15 GMT
Added: webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSkeleton.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSkeleton.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSkeleton.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSkeleton.html Sat May 13 20:09:04 2006
@@ -0,0 +1,118 @@
+<!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>RegistrationPortTypeRawXMLSkeleton xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSkeleton.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> <a href="../../../../org/apache/kandula/wscoor/package-summary.html">org.apache.kandula.wscoor</a>;
+<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.axiom.om.OMAbstractFactory;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axiom.om.OMElement;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axiom.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axiom.soap.SOAPFactory;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.context.OperationContext;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.wsdl.WSDLConstants;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.kandula.coordinator.Coordinator;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.kandula.faults.AbstractKandulaException;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.kandula.storage.StorageFactory;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.kandula.utility.EndpointReferenceFactory;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  <em>/**<em>*</em></em>
+<a name="36" href="#36">36</a>  <em> * @author &lt;a href="<a href="mailto:thilina@apache.org" target="alexandria_uri">mailto:thilina@apache.org</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="37" href="#37">37</a>  <em> */</em>
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSkeleton.html">RegistrationPortTypeRawXMLSkeleton</a> {
+<a name="40" href="#40">40</a>  	<strong>private</strong> OperationContext opContext;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	<strong>public</strong> <strong>void</strong> setOperationContext(OperationContext opContext) {
+<a name="43" href="#43">43</a>  		<strong>this</strong>.opContext = opContext;
+<a name="44" href="#44">44</a>  	}
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  	<strong>public</strong> OMElement registerOperation(OMElement request) throws AxisFault {
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  		String protocolIdentifier;
+<a name="49" href="#49">49</a>  		EndpointReference participantEPR;
+<a name="50" href="#50">50</a>  		String activityId;
+<a name="51" href="#51">51</a>  		StorageFactory.getInstance().setConfigurationContext(
+<a name="52" href="#52">52</a>  				opContext.getServiceContext().getConfigurationContext());
+<a name="53" href="#53">53</a>  		<em class="comment">/*</em>
+<a name="54" href="#54">54</a>  <em class="comment">		 * Extracting data from the received message</em>
+<a name="55" href="#55">55</a>  <em class="comment">		 */</em>
+<a name="56" href="#56">56</a>  		protocolIdentifier = request.getFirstChildWithName(
+<a name="57" href="#57">57</a>  				<strong>new</strong> QName(<span class="string">"ProtocolIdentifier"</span>)).getText();
+<a name="58" href="#58">58</a>  		OMElement participantEPRElement = request
+<a name="59" href="#59">59</a>  				.getFirstChildWithName(<strong>new</strong> QName(<span class="string">"ParticipantProtocolService"</span>));
+<a name="60" href="#60">60</a>  		<em class="comment">// Extracting the participant EPR</em>
+<a name="61" href="#61">61</a>  		participantEPR = <a href="../../../../org/apache/kandula/utility/EndpointReferenceFactory.html">EndpointReferenceFactory</a>
+<a name="62" href="#62">62</a>  				.endpointFromOM(participantEPRElement);
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>  		OMElement header = opContext.getMessageContext(
+<a name="65" href="#65">65</a>  				WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="66" href="#66">66</a>  		activityId = header.getFirstChildWithName(
+<a name="67" href="#67">67</a>  				Constants.TRANSACTION_ID_PARAMETER).getText();
+<a name="68" href="#68">68</a>  		<em class="comment">/*</em>
+<a name="69" href="#69">69</a>  <em class="comment">		 * Registering the participant for the activity for the given protocol</em>
+<a name="70" href="#70">70</a>  <em class="comment">		 */</em>
+<a name="71" href="#71">71</a>  		<strong>try</strong> {
+<a name="72" href="#72">72</a>  			Coordinator coordinator = <strong>new</strong> <a href="../../../../org/apache/kandula/coordinator/Coordinator.html">Coordinator</a>();
+<a name="73" href="#73">73</a>  			EndpointReference epr = coordinator.registerParticipant(activityId,
+<a name="74" href="#74">74</a>  					protocolIdentifier, participantEPR);
+<a name="75" href="#75">75</a>  			SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
+<a name="76" href="#76">76</a>  			OMNamespace wsCoor = factory.createOMNamespace(Constants.WS_COOR,
+<a name="77" href="#77">77</a>  					<span class="string">"wscoor"</span>);
+<a name="78" href="#78">78</a>  			OMElement responseEle = factory.createOMElement(<span class="string">"RegisterResponse"</span>,
+<a name="79" href="#79">79</a>  					wsCoor);
+<a name="80" href="#80">80</a>  			responseEle.addChild(toOM(epr));
+<a name="81" href="#81">81</a>  			<strong>return</strong> responseEle;
+<a name="82" href="#82">82</a>  		} <strong>catch</strong> (AbstractKandulaException e) {
+<a name="83" href="#83">83</a>  			AxisFault fault = <strong>new</strong> AxisFault(e);
+<a name="84" href="#84">84</a>  			fault.setFaultCode(e.getFaultCode());
+<a name="85" href="#85">85</a>  			<strong>throw</strong> fault;
+<a name="86" href="#86">86</a>  		}
+<a name="87" href="#87">87</a>  	}
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  	<em>/**<em>*</em></em>
+<a name="90" href="#90">90</a>  <em>	 * Serializes an EndpointRefrence to OM Nodes</em>
+<a name="91" href="#91">91</a>  <em>	 */</em>
+<a name="92" href="#92">92</a>  	<strong>private</strong> OMElement toOM(EndpointReference epr) {
+<a name="93" href="#93">93</a>  		SOAPFactory factory = OMAbstractFactory.getSOAP12Factory();
+<a name="94" href="#94">94</a>  		OMNamespace wsCoor = factory.createOMNamespace(
+<a name="95" href="#95">95</a>  				org.apache.kandula.Constants.WS_COOR, <span class="string">"wscoor"</span>);
+<a name="96" href="#96">96</a>  		OMElement protocolService = factory.createOMElement(
+<a name="97" href="#97">97</a>  				<span class="string">"CoordinatorProtocolService"</span>, wsCoor);
+<a name="98" href="#98">98</a>  		OMElement coordinatorProtocolService = factory.createOMElement(
+<a name="99" href="#99">99</a>  				<span class="string">"CoordinatorProtocolService"</span>, wsCoor);
+<a name="100" href="#100">100</a> 		EndpointReferenceFactory.endpointToOM(epr, coordinatorProtocolService,
+<a name="101" href="#101">101</a> 				factory);
+<a name="102" href="#102">102</a> 		protocolService.addChild(coordinatorProtocolService);
+<a name="103" href="#103">103</a> 		<strong>return</strong> protocolService;
+<a name="104" href="#104">104</a> 	}
+<a name="105" href="#105">105</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/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSyncMessageReceiver.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSyncMessageReceiver.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSyncMessageReceiver.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSyncMessageReceiver.html Sat May 13 20:09:04 2006
@@ -0,0 +1,94 @@
+<!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>RegistrationPortTypeRawXMLSyncMessageReceiver xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSyncMessageReceiver.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> <a href="../../../../org/apache/kandula/wscoor/package-summary.html">org.apache.kandula.wscoor</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axiom.om.OMElement;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axiom.soap.SOAPEnvelope;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.description.AxisOperation;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.engine.DependencyManager;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  <em>/**<em>*</em></em>
+<a name="27" href="#27">27</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="28" href="#28">28</a>  <em> */</em>
+<a name="29" href="#29">29</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/wscoor/RegistrationPortTypeRawXMLSyncMessageReceiver.html">RegistrationPortTypeRawXMLSyncMessageReceiver</a> <strong>extends</strong>
+<a name="30" href="#30">30</a>  		org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver {
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  	<strong>public</strong> <strong>void</strong> invokeBusinessLogic(
+<a name="33" href="#33">33</a>  			org.apache.axis2.context.MessageContext msgContext,
+<a name="34" href="#34">34</a>  			org.apache.axis2.context.MessageContext newMsgContext)
+<a name="35" href="#35">35</a>  			throws org.apache.axis2.AxisFault {
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  		<strong>try</strong> {
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  			<em class="comment">// get the implementation class for the Web Service</em>
+<a name="40" href="#40">40</a>  			Object obj = getTheImplementationObject(msgContext);
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  			<em class="comment">// Inject the Message Context if it is asked for</em>
+<a name="43" href="#43">43</a>  			DependencyManager.configureBusinessLogicProvider(obj, msgContext
+<a name="44" href="#44">44</a>  					.getOperationContext());
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  			RegistrationPortTypeRawXMLSkeleton skel = (RegistrationPortTypeRawXMLSkeleton) obj;
+<a name="47" href="#47">47</a>  			<em class="comment">// Out Envelop</em>
+<a name="48" href="#48">48</a>  			SOAPEnvelope envelope = <strong>null</strong>;
+<a name="49" href="#49">49</a>  			<em class="comment">// Find the operation that has been set by the Dispatch phase.</em>
+<a name="50" href="#50">50</a>  			AxisOperation op = msgContext.getOperationContext()
+<a name="51" href="#51">51</a>  					.getAxisOperation();
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  			String methodName;
+<a name="54" href="#54">54</a>  			<strong>if</strong> (op.getName() != <strong>null</strong>
+<a name="55" href="#55">55</a>  					&amp; (methodName = op.getName().getLocalPart()) != <strong>null</strong>) {
+<a name="56" href="#56">56</a>  				<strong>if</strong> ((<span class="string">"registerOperation"</span>).equals(methodName)) {
+<a name="57" href="#57">57</a>  					OMElement response = <strong>null</strong>;
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  					<em class="comment">// doc style</em>
+<a name="60" href="#60">60</a>  					response = skel
+<a name="61" href="#61">61</a>  							.registerOperation((OMElement) msgContext
+<a name="62" href="#62">62</a>  									.getEnvelope().getBody().getFirstElement()
+<a name="63" href="#63">63</a>  									.detach());
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  					<em class="comment">// Create a default envelop</em>
+<a name="66" href="#66">66</a>  					envelope = getSOAPFactory(msgContext).getDefaultEnvelope();
+<a name="67" href="#67">67</a>  					<em class="comment">// Create a Omelement of the result if a result exist</em>
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  					envelope.getBody().setFirstChild(response);
+<a name="70" href="#70">70</a>  				}
+<a name="71" href="#71">71</a>  				newMsgContext.setEnvelope(envelope);
+<a name="72" href="#72">72</a>  				newMsgContext.setWSAAction(Constants.WS_COOR_REGISTER_RESPONSE);
+<a name="73" href="#73">73</a>  				newMsgContext.setRelationships(<strong>null</strong>);
+<a name="74" href="#74">74</a>  			}
+<a name="75" href="#75">75</a>  		} <strong>catch</strong> (Exception e) {
+<a name="76" href="#76">76</a>  			<strong>throw</strong> AxisFault.makeFault(e);
+<a name="77" href="#77">77</a>  		}
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  	}
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</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/2/xref/org/apache/kandula/wscoor/RegistrationRequesterPortTypeRawXMLSkeleton.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationRequesterPortTypeRawXMLSkeleton.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationRequesterPortTypeRawXMLSkeleton.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wscoor/RegistrationRequesterPortTypeRawXMLSkeleton.html Sat May 13 20:09:04 2006
@@ -0,0 +1,80 @@
+<!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>RegistrationRequesterPortTypeRawXMLSkeleton xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/kandula/wscoor/RegistrationRequesterPortTypeRawXMLSkeleton.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> <a href="../../../../org/apache/kandula/wscoor/package-summary.html">org.apache.kandula.wscoor</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> org.apache.axiom.om.OMElement;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axiom.om.OMException;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.context.MessageContext;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.context.OperationContext;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.wsdl.WSDLConstants;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.kandula.Constants;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.kandula.context.AbstractContext;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.kandula.context.impl.ATActivityContext;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.kandula.storage.StorageFactory;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.kandula.utility.EndpointReferenceFactory;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  <em>/**<em>*</em></em>
+<a name="33" href="#33">33</a>  <em> * @author &lt;a href="<a href="mailto:thilina@opensource.lk" target="alexandria_uri">mailto:thilina@opensource.lk</a>"> Thilina Gunarathne &lt;/a></em>
+<a name="34" href="#34">34</a>  <em> */</em>
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/kandula/wscoor/RegistrationRequesterPortTypeRawXMLSkeleton.html">RegistrationRequesterPortTypeRawXMLSkeleton</a> {
+<a name="37" href="#37">37</a>  	<strong>private</strong> OperationContext opContext;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>public</strong> <strong>void</strong> setOperationContext(OperationContext opContext) {
+<a name="40" href="#40">40</a>  		<strong>this</strong>.opContext = opContext;
+<a name="41" href="#41">41</a>  	}
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<strong>public</strong> OMElement registerResponseOperation(OMElement responseElement) throws AxisFault{
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>  		OMElement response = responseElement.getFirstElement();
+<a name="46" href="#46">46</a>  		<strong>if</strong> (<span class="string">"CoordinatorProtocolService"</span>.equals(response.getLocalName())) {
+<a name="47" href="#47">47</a>  			OMElement header = opContext.getMessageContext(
+<a name="48" href="#48">48</a>  					WSDLConstants.MESSAGE_LABEL_IN_VALUE).getEnvelope().getHeader();
+<a name="49" href="#49">49</a>  			String requesterID = header.getFirstChildWithName(
+<a name="50" href="#50">50</a>  					Constants.REQUESTER_ID_PARAMETER).getText();
+<a name="51" href="#51">51</a>  			EndpointReference coordinatorService = <a href="../../../../org/apache/kandula/utility/EndpointReferenceFactory.html">EndpointReferenceFactory</a>
+<a name="52" href="#52">52</a>  					.endpointFromOM(response.getFirstElement());
+<a name="53" href="#53">53</a>  			AbstractContext context;
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>  			context = (AbstractContext) StorageFactory.getInstance()
+<a name="56" href="#56">56</a>  					.getInitiatorStore().get(requesterID);
+<a name="57" href="#57">57</a>  			<strong>if</strong> (context == <strong>null</strong>) {
+<a name="58" href="#58">58</a>  				context = (AbstractContext) StorageFactory.getInstance()
+<a name="59" href="#59">59</a>  						.getStore().get(requesterID);
+<a name="60" href="#60">60</a>  			}
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  			context.setProperty(ATActivityContext.COORDINATION_EPR,
+<a name="63" href="#63">63</a>  					coordinatorService);
+<a name="64" href="#64">64</a>  		}
+<a name="65" href="#65">65</a>  		<strong>return</strong> <strong>null</strong>;
+<a name="66" href="#66">66</a>  	}
+<a name="67" href="#67">67</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/2/xref/org/apache/kandula/wscoor/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wscoor/package-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wscoor/package-frame.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wscoor/package-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,55 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Kandula2 0.1-SNAPSHOT Reference Package org.apache.kandula.wscoor</title>
+      <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="package-summary.html" target="classFrame">org.apache.kandula.wscoor</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="ActivationCoordinatorPortTypeRawXMLStub.html" target="classFrame">ActivationCoordinatorPortTypeRawXMLStub</a>
+          </li>
+        
+          <li>
+            <a href="ActivationPortTypeRawXMLSkeleton.html" target="classFrame">ActivationPortTypeRawXMLSkeleton</a>
+          </li>
+        
+          <li>
+            <a href="ActivationPortTypeRawXMLSyncMessageReceiver.html" target="classFrame">ActivationPortTypeRawXMLSyncMessageReceiver</a>
+          </li>
+        
+          <li>
+            <a href="ActivationRequesterPortTypeRawXMLSkeleton.html" target="classFrame">ActivationRequesterPortTypeRawXMLSkeleton</a>
+          </li>
+        
+          <li>
+            <a href="RegistrationCoordinatorPortTypeRawXMLStub.html" target="classFrame">RegistrationCoordinatorPortTypeRawXMLStub</a>
+          </li>
+        
+          <li>
+            <a href="RegistrationPortTypeRawXMLSkeleton.html" target="classFrame">RegistrationPortTypeRawXMLSkeleton</a>
+          </li>
+        
+          <li>
+            <a href="RegistrationPortTypeRawXMLSyncMessageReceiver.html" target="classFrame">RegistrationPortTypeRawXMLSyncMessageReceiver</a>
+          </li>
+        
+          <li>
+            <a href="RegistrationRequesterPortTypeRawXMLSkeleton.html" target="classFrame">RegistrationRequesterPortTypeRawXMLSkeleton</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/kandula/site/2/xref/org/apache/kandula/wscoor/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/org/apache/kandula/wscoor/package-summary.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/org/apache/kandula/wscoor/package-summary.html (added)
+++ webservices/kandula/site/2/xref/org/apache/kandula/wscoor/package-summary.html Sat May 13 20:09:04 2006
@@ -0,0 +1,144 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>Apache Kandula2 0.1-SNAPSHOT Reference Package </title>
+          <link rel="stylesheet" href="../../../../stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+      
+      <h2>Package org.apache.kandula.wscoor</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="ActivationCoordinatorPortTypeRawXMLStub.html" target="classFrame">ActivationCoordinatorPortTypeRawXMLStub</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="ActivationPortTypeRawXMLSkeleton.html" target="classFrame">ActivationPortTypeRawXMLSkeleton</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="ActivationPortTypeRawXMLSyncMessageReceiver.html" target="classFrame">ActivationPortTypeRawXMLSyncMessageReceiver</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="ActivationRequesterPortTypeRawXMLSkeleton.html" target="classFrame">ActivationRequesterPortTypeRawXMLSkeleton</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="RegistrationCoordinatorPortTypeRawXMLStub.html" target="classFrame">RegistrationCoordinatorPortTypeRawXMLStub</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="RegistrationPortTypeRawXMLSkeleton.html" target="classFrame">RegistrationPortTypeRawXMLSkeleton</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="RegistrationPortTypeRawXMLSyncMessageReceiver.html" target="classFrame">RegistrationPortTypeRawXMLSyncMessageReceiver</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="RegistrationRequesterPortTypeRawXMLSkeleton.html" target="classFrame">RegistrationRequesterPortTypeRawXMLSkeleton</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li>
+            <a href="../../../../overview-summary.html">Overview</a>
+          </li>
+          <li class="selected">Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="../../../../index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="package-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+
+    
+    
+
+          <hr></hr>
+
+          Copyright &copy;  Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/kandula/site/2/xref/overview-frame.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/overview-frame.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/overview-frame.html (added)
+++ webservices/kandula/site/2/xref/overview-frame.html Sat May 13 20:09:04 2006
@@ -0,0 +1,83 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Kandula2 0.1-SNAPSHOT Reference</title>
+      <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>
+        <a href="allclasses-frame.html" target="packageFrame">All Classes</a>
+      </h3>
+
+      <h3>Packages</h3>
+
+      <ul>
+        
+          <li>
+            <a href="org/apache/kandula/package-frame.html" target="packageFrame">org.apache.kandula</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/context/package-frame.html" target="packageFrame">org.apache.kandula.context</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/context/impl/package-frame.html" target="packageFrame">org.apache.kandula.context.impl</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/coordinator/package-frame.html" target="packageFrame">org.apache.kandula.coordinator</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/coordinator/at/package-frame.html" target="packageFrame">org.apache.kandula.coordinator.at</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/coordinator/ba/package-frame.html" target="packageFrame">org.apache.kandula.coordinator.ba</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/faults/package-frame.html" target="packageFrame">org.apache.kandula.faults</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/initiator/package-frame.html" target="packageFrame">org.apache.kandula.initiator</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/participant/package-frame.html" target="packageFrame">org.apache.kandula.participant</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/storage/package-frame.html" target="packageFrame">org.apache.kandula.storage</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/utility/package-frame.html" target="packageFrame">org.apache.kandula.utility</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/wsat/package-frame.html" target="packageFrame">org.apache.kandula.wsat</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/wsat/completion/package-frame.html" target="packageFrame">org.apache.kandula.wsat.completion</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/wsat/twopc/package-frame.html" target="packageFrame">org.apache.kandula.wsat.twopc</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/kandula/wscoor/package-frame.html" target="packageFrame">org.apache.kandula.wscoor</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/kandula/site/2/xref/overview-summary.html
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/overview-summary.html?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/overview-summary.html (added)
+++ webservices/kandula/site/2/xref/overview-summary.html Sat May 13 20:09:04 2006
@@ -0,0 +1,178 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+  
+      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+      <html lang="en">
+        <head>
+          <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+          <title>Apache Kandula2 0.1-SNAPSHOT Reference</title>
+          <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+        </head>
+        <body>
+
+          
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li class="selected">Overview</li>
+          <li>Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="overview-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+    
+      
+
+      <h2>Apache Kandula2 0.1-SNAPSHOT Reference</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Packages</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/package-summary.html">org.apache.kandula</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/context/package-summary.html">org.apache.kandula.context</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/context/impl/package-summary.html">org.apache.kandula.context.impl</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/coordinator/package-summary.html">org.apache.kandula.coordinator</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/coordinator/at/package-summary.html">org.apache.kandula.coordinator.at</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/coordinator/ba/package-summary.html">org.apache.kandula.coordinator.ba</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/faults/package-summary.html">org.apache.kandula.faults</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/initiator/package-summary.html">org.apache.kandula.initiator</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/participant/package-summary.html">org.apache.kandula.participant</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/storage/package-summary.html">org.apache.kandula.storage</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/utility/package-summary.html">org.apache.kandula.utility</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/wsat/package-summary.html">org.apache.kandula.wsat</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/wsat/completion/package-summary.html">org.apache.kandula.wsat.completion</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/wsat/twopc/package-summary.html">org.apache.kandula.wsat.twopc</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="org/apache/kandula/wscoor/package-summary.html">org.apache.kandula.wscoor</a>
+              </td>
+            </tr>
+          
+        </tbody>
+      </table>
+
+    
+      
+      
+
+      <div class="overview">
+        <ul>
+          <li class="selected">Overview</li>
+          <li>Package</li>
+        </ul>
+      </div>
+      <div class="framenoframe">
+        <ul>
+          <li>
+            <a href="index.html" target="_top">FRAMES</a>
+          </li>
+          <li>
+            <a href="overview-summary.html" target="_top">NO FRAMES</a>
+          </li>
+        </ul>
+      </div>
+
+      
+    
+    
+          <hr></hr>
+          Copyright &copy;  Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/kandula/site/2/xref/stylesheet.css
URL: http://svn.apache.org/viewcvs/webservices/kandula/site/2/xref/stylesheet.css?rev=406210&view=auto
==============================================================================
--- webservices/kandula/site/2/xref/stylesheet.css (added)
+++ webservices/kandula/site/2/xref/stylesheet.css Sat May 13 20:09:04 2006
@@ -0,0 +1,96 @@
+/* Javadoc style sheet */
+/* Define colors, fonts and other style attributes here to override the defaults  */
+body { 
+	background-color: #fff;
+	font-family: Arial, Helvetica, sans-serif;
+}
+
+a:link {
+ color: #00f;
+}
+a:visited {
+ color: #00a;
+}
+
+a:active, a:hover {
+ color: #f30 !important;
+}
+
+ul, li	{
+	list-style-type:none ;
+	margin:0;
+	padding:0;
+}
+
+table td{
+	padding: 3px;
+	border: 1px solid #000;
+}
+table{
+	width:100%;
+	border: 1px solid #000;
+	border-collapse: collapse;
+}
+
+div.overview {
+	background-color:#ddd;
+	padding: 4px 4px 4px 0;
+}
+div.overview li, div.framenoframe li {
+	display: inline;
+}
+div.framenoframe {
+	text-align: center;
+	font-size: x-small;
+}
+div.framenoframe li {
+	margin: 0 3px 0 3px;
+}
+div.overview li {
+	margin:3px 3px 0 3px;
+	padding: 4px;
+}
+li.selected {
+	background-color:#888;
+	color: #fff;
+	font-weight: bold;
+}
+
+table.summary {
+	margin-bottom: 20px;
+}
+table.summary td, table.summary th {
+	font-weight: bold;
+	text-align: left;
+	padding: 3px;
+}
+table.summary th{
+	background-color:#036;
+	color: #fff;
+}
+table.summary td{
+	background-color:#eee;
+	border: 1px solid black;
+}
+
+em {
+	color: #A00;
+}
+em.comment {
+	color: #390;
+}
+.string {
+	color: #009;
+}
+div#footer {
+	text-align:center;
+}
+#overview {
+	padding:2px;
+}
+            
+            
+hr {
+	height: 1px;
+	color: #000;
+}
\ No newline at end of file



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


Mime
View raw message