ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r349924 [19/22] - in /webservices/site/trunk/targets/sandesha: ./ sandesha2/ sandesha2/images/ sandesha2/images/logos/ sandesha2/style/ sandesha2/xref-test/ sandesha2/xref-test/org/ sandesha2/xref-test/org/apache/ sandesha2/xref-test/org/ap...
Date Wed, 30 Nov 2005 11:17:58 GMT
Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/Sender.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/Sender.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/Sender.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/Sender.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,279 @@
+<!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>Sender xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/workers/Sender.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 1999-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> <a href="../../../../org/apache/sandesha2/workers/package-summary.html">org.apache.sandesha2.workers</a>;
+<a name="18" href="#18">18</a>  
+<a name="19" href="#19">19</a>  <strong>import</strong> java.util.Collection;
+<a name="20" href="#20">20</a>  <strong>import</strong> java.util.Iterator;
+<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.context.ConfigurationContext;
+<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.ServiceContext;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.engine.AxisEngine;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.sandesha2.AcknowledgementManager;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.sandesha2.RMMsgContext;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.sandesha2.SandeshaException;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.sandesha2.TerminateManager;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants.ClientAPI;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.sandesha2.storage.StorageManager;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.SenderBeanMgr;
+<a name="35" href="#35">35</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.SenderBean;
+<a name="36" href="#36">36</a>  <strong>import</strong> org.apache.sandesha2.util.MessageRetransmissionAdjuster;
+<a name="37" href="#37">37</a>  <strong>import</strong> org.apache.sandesha2.util.MsgInitializer;
+<a name="38" href="#38">38</a>  <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="39" href="#39">39</a>  <strong>import</strong> org.apache.sandesha2.wsrm.TerminateSequence;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  <em>/**<em>*</em></em>
+<a name="42" href="#42">42</a>  <em> * This is responsible for sending and re-sending messages of Sandesha2. This represent a thread that keep running all</em>
+<a name="43" href="#43">43</a>  <em> * the time. This keep looking at the Sender table to find out any entries that should be sent.</em>
+<a name="44" href="#44">44</a>  <em> * </em>
+<a name="45" href="#45">45</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="46" href="#46">46</a>  <em> */</em>
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/workers/Sender.html">Sender</a> <strong>extends</strong> Thread {
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  	<strong>private</strong> <strong>boolean</strong> senderStarted = false;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>private</strong> ConfigurationContext context = <strong>null</strong>;
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  	<strong>public</strong> <strong>synchronized</strong> <strong>void</strong> stopSender() {
+<a name="55" href="#55">55</a>  		senderStarted = false;
+<a name="56" href="#56">56</a>  	}
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>  	<strong>public</strong> <strong>synchronized</strong> <strong>boolean</strong> isSenderStarted() {
+<a name="59" href="#59">59</a>  		<strong>return</strong> senderStarted;
+<a name="60" href="#60">60</a>  	}
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  	<strong>public</strong> <strong>void</strong> run() {
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>  		<strong>while</strong> (senderStarted) {
+<a name="65" href="#65">65</a>  			<strong>try</strong> {
+<a name="66" href="#66">66</a>  				<strong>if</strong> (context == <strong>null</strong>)
+<a name="67" href="#67">67</a>  					<strong>throw</strong> <strong>new</strong> <a href="../../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(
+<a name="68" href="#68">68</a>  							<span class="string">"Can't continue the Sender. Context is null"</span>);
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  				StorageManager storageManager = <a href="../../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="71" href="#71">71</a>  						.getSandeshaStorageManager(context);
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>  				SenderBeanMgr mgr = storageManager
+<a name="74" href="#74">74</a>  						.getRetransmitterBeanMgr();
+<a name="75" href="#75">75</a>  				Collection coll = mgr.findMsgsToSend();
+<a name="76" href="#76">76</a>  				Iterator iter = coll.iterator();
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  				<strong>while</strong> (iter.hasNext()) {
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  					SenderBean bean = (SenderBean) iter.next();
+<a name="81" href="#81">81</a>  					String key = (String) bean.getKey();
+<a name="82" href="#82">82</a>  					MessageContext msgCtx = <a href="../../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="83" href="#83">83</a>  							.getStoredMessageContext(key);
+<a name="84" href="#84">84</a>  
+<a name="85" href="#85">85</a>  					<strong>try</strong> {
+<a name="86" href="#86">86</a>  						RMMsgContext rmMsgCtx = <a href="../../../../org/apache/sandesha2/util/MsgInitializer.html">MsgInitializer</a>
+<a name="87" href="#87">87</a>  								.initializeMessage(msgCtx);
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  						updateMessage(msgCtx);
+<a name="90" href="#90">90</a>  
+<a name="91" href="#91">91</a>  						ServiceContext serviceContext = msgCtx
+<a name="92" href="#92">92</a>  								.getServiceContext();
+<a name="93" href="#93">93</a>  						Object debug = <strong>null</strong>;
+<a name="94" href="#94">94</a>  						<strong>if</strong> (serviceContext != <strong>null</strong>) {
+<a name="95" href="#95">95</a>  							debug = serviceContext
+<a name="96" href="#96">96</a>  									.getProperty(ClientAPI.SANDESHA_DEBUG_MODE);
+<a name="97" href="#97">97</a>  							<strong>if</strong> (debug != <strong>null</strong> &amp;&amp; <span class="string">"on"</span>.equals(debug)) {
+<a name="98" href="#98">98</a>  								System.out
+<a name="99" href="#99">99</a>  										.println(<span class="string">"DEBUG: Sender is sending a '"</span>
+<a name="100" href="#100">100</a> 												+ <a href="../../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="101" href="#101">101</a> 														.getMessageTypeString(rmMsgCtx
+<a name="102" href="#102">102</a> 																.getMessageType())
+<a name="103" href="#103">103</a> 												+ <span class="string">"' message."</span>);
+<a name="104" href="#104">104</a> 							}
+<a name="105" href="#105">105</a> 						}
+<a name="106" href="#106">106</a> 
+<a name="107" href="#107">107</a> 						<strong>if</strong> (rmMsgCtx.getMessageType() == Sandesha2Constants.MessageTypes.APPLICATION) {
+<a name="108" href="#108">108</a> 							<em class="comment">//piggybacking if an ack if available for the same</em>
+<a name="109" href="#109">109</a> 							<em class="comment">// sequence.</em>
+<a name="110" href="#110">110</a> 							AcknowledgementManager
+<a name="111" href="#111">111</a> 									.piggybackAckIfPresent(rmMsgCtx);
+<a name="112" href="#112">112</a> 						}
+<a name="113" href="#113">113</a> 
+<a name="114" href="#114">114</a> 						<strong>try</strong> {
+<a name="115" href="#115">115</a> 							<strong>new</strong> AxisEngine(context).send(msgCtx);
+<a name="116" href="#116">116</a> 						} <strong>catch</strong> (Exception e) {
+<a name="117" href="#117">117</a> 							<em class="comment">//Exception is sending. retry later</em>
+<a name="118" href="#118">118</a> 							System.out
+<a name="119" href="#119">119</a> 									.println(<span class="string">"Exception thrown in sending..."</span>);
+<a name="120" href="#120">120</a> 							e.printStackTrace();
+<a name="121" href="#121">121</a> 						}
+<a name="122" href="#122">122</a> 
+<a name="123" href="#123">123</a> 						MessageRetransmissionAdjuster retransmitterAdjuster = <strong>new</strong> <a href="../../../../org/apache/sandesha2/util/MessageRetransmissionAdjuster.html">MessageRetransmissionAdjuster</a>();
+<a name="124" href="#124">124</a> 						retransmitterAdjuster.adjustRetransmittion(bean);
+<a name="125" href="#125">125</a> 
+<a name="126" href="#126">126</a> 						mgr.update(bean);
+<a name="127" href="#127">127</a> 
+<a name="128" href="#128">128</a> 						<strong>if</strong> (!msgCtx.isServerSide())
+<a name="129" href="#129">129</a> 							checkForSyncResponses(msgCtx);
+<a name="130" href="#130">130</a> 						
+<a name="131" href="#131">131</a> 						
+<a name="132" href="#132">132</a> 						<strong>if</strong> (rmMsgCtx.getMessageType()==Sandesha2Constants.MessageTypes.TERMINATE_SEQ) {
+<a name="133" href="#133">133</a> 							<em class="comment">//terminate sending side.</em>
+<a name="134" href="#134">134</a> 							TerminateSequence terminateSequence = (TerminateSequence) rmMsgCtx.getMessagePart(Sandesha2Constants.MessageParts.TERMINATE_SEQ);
+<a name="135" href="#135">135</a> 							String sequenceID = terminateSequence.getIdentifier().getIdentifier();
+<a name="136" href="#136">136</a> 							ConfigurationContext configContext = msgCtx.getSystemContext();
+<a name="137" href="#137">137</a> 							
+<a name="138" href="#138">138</a> 							TerminateManager.terminateSendingSide(configContext,sequenceID);
+<a name="139" href="#139">139</a> 						}
+<a name="140" href="#140">140</a> 
+<a name="141" href="#141">141</a> 					} <strong>catch</strong> (AxisFault e1) {
+<a name="142" href="#142">142</a> 						e1.printStackTrace();
+<a name="143" href="#143">143</a> 					} <strong>catch</strong> (Exception e3) {
+<a name="144" href="#144">144</a> 						e3.printStackTrace();
+<a name="145" href="#145">145</a> 					}
+<a name="146" href="#146">146</a> 
+<a name="147" href="#147">147</a> 					<em class="comment">//changing the values of the sent bean.</em>
+<a name="148" href="#148">148</a> 					<em class="comment">//bean.setLastSentTime(System.currentTimeMillis());</em>
+<a name="149" href="#149">149</a> 					<em class="comment">//bean.setSentCount(bean.getSentCount() + 1);</em>
+<a name="150" href="#150">150</a> 
+<a name="151" href="#151">151</a> 					<em class="comment">//update if resend=true otherwise delete. (reSend=false</em>
+<a name="152" href="#152">152</a> 					<em class="comment">// means</em>
+<a name="153" href="#153">153</a> 					<em class="comment">// send only once).</em>
+<a name="154" href="#154">154</a> 					<strong>if</strong> (bean.isReSend())
+<a name="155" href="#155">155</a> 						mgr.update(bean);
+<a name="156" href="#156">156</a> 					<strong>else</strong>
+<a name="157" href="#157">157</a> 						mgr.delete(bean.getMessageId());
+<a name="158" href="#158">158</a> 
+<a name="159" href="#159">159</a> 				}
+<a name="160" href="#160">160</a> 			} <strong>catch</strong> (SandeshaException e) {
+<a name="161" href="#161">161</a> 				e.printStackTrace();
+<a name="162" href="#162">162</a> 				<strong>return</strong>;
+<a name="163" href="#163">163</a> 			}
+<a name="164" href="#164">164</a> 
+<a name="165" href="#165">165</a> 			<strong>try</strong> {
+<a name="166" href="#166">166</a> 				Thread.sleep(2000);
+<a name="167" href="#167">167</a> 			} <strong>catch</strong> (InterruptedException e1) {
+<a name="168" href="#168">168</a> 				<em class="comment">//e1.printStackTrace();</em>
+<a name="169" href="#169">169</a> 				System.out.println(<span class="string">"Sender was interupted..."</span>);
+<a name="170" href="#170">170</a> 				e1.printStackTrace();
+<a name="171" href="#171">171</a> 				System.out.println(<span class="string">"End printing Interrupt..."</span>);
+<a name="172" href="#172">172</a> 			}
+<a name="173" href="#173">173</a> 		}
+<a name="174" href="#174">174</a> 
+<a name="175" href="#175">175</a> 	}
+<a name="176" href="#176">176</a> 
+<a name="177" href="#177">177</a> 	<strong>private</strong> <strong>boolean</strong> isResponseExpected(<a href="../../../../org/apache/sandesha2/RMMsgContext.html">RMMsgContext</a> rmMsgCtx) {
+<a name="178" href="#178">178</a> 		<strong>boolean</strong> responseExpected = false;
+<a name="179" href="#179">179</a> 
+<a name="180" href="#180">180</a> 		<strong>if</strong> (rmMsgCtx.getMessageType() == Sandesha2Constants.MessageTypes.CREATE_SEQ) {
+<a name="181" href="#181">181</a> 			responseExpected = <strong>true</strong>;
+<a name="182" href="#182">182</a> 		}
+<a name="183" href="#183">183</a> 		<strong>if</strong> (rmMsgCtx.getMessageType() == Sandesha2Constants.MessageTypes.APPLICATION) {
+<a name="184" href="#184">184</a> 			<em class="comment">//a ack may arrive. (not a application response)</em>
+<a name="185" href="#185">185</a> 			<strong>if</strong> (rmMsgCtx.getMessageContext().getAxisOperation()
+<a name="186" href="#186">186</a> 					.getMessageExchangePattern().equals(
+<a name="187" href="#187">187</a> 							org.apache.wsdl.WSDLConstants.MEP_URI_IN_OUT)) {
+<a name="188" href="#188">188</a> 				responseExpected = <strong>true</strong>;
+<a name="189" href="#189">189</a> 			}
+<a name="190" href="#190">190</a> 		}
+<a name="191" href="#191">191</a> 
+<a name="192" href="#192">192</a> 		<strong>return</strong> <strong>true</strong>;
+<a name="193" href="#193">193</a> 	}
+<a name="194" href="#194">194</a> 
+<a name="195" href="#195">195</a> 	<strong>public</strong> <strong>void</strong> start(ConfigurationContext context) {
+<a name="196" href="#196">196</a> 		senderStarted = <strong>true</strong>;
+<a name="197" href="#197">197</a> 		<strong>this</strong>.context = context;
+<a name="198" href="#198">198</a> 		<strong>super</strong>.start();
+<a name="199" href="#199">199</a> 	}
+<a name="200" href="#200">200</a> 
+<a name="201" href="#201">201</a> 	<strong>private</strong> <strong>void</strong> updateMessage(MessageContext msgCtx1) throws SandeshaException {
+<a name="202" href="#202">202</a> 		<strong>try</strong> {
+<a name="203" href="#203">203</a> 			RMMsgContext rmMsgCtx1 = MsgInitializer.initializeMessage(msgCtx1);
+<a name="204" href="#204">204</a> 			rmMsgCtx1.addSOAPEnvelope();
+<a name="205" href="#205">205</a> 
+<a name="206" href="#206">206</a> 		} <strong>catch</strong> (AxisFault e) {
+<a name="207" href="#207">207</a> 			<strong>throw</strong> <strong>new</strong> <a href="../../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(<span class="string">"Exception in updating contexts"</span>);
+<a name="208" href="#208">208</a> 		}
+<a name="209" href="#209">209</a> 
+<a name="210" href="#210">210</a> 	}
+<a name="211" href="#211">211</a> 
+<a name="212" href="#212">212</a> 	<strong>private</strong> <strong>void</strong> checkForSyncResponses(MessageContext msgCtx) throws AxisFault {
+<a name="213" href="#213">213</a> 
+<a name="214" href="#214">214</a> 		<strong>boolean</strong> responsePresent = (msgCtx
+<a name="215" href="#215">215</a> 				.getProperty(MessageContext.TRANSPORT_IN) != <strong>null</strong>);
+<a name="216" href="#216">216</a> 
+<a name="217" href="#217">217</a> 		<strong>if</strong> (responsePresent) {
+<a name="218" href="#218">218</a> 			<em class="comment">//create the response</em>
+<a name="219" href="#219">219</a> 			MessageContext response = <strong>new</strong> MessageContext(msgCtx
+<a name="220" href="#220">220</a> 					.getSystemContext(), msgCtx.getSessionContext(), msgCtx
+<a name="221" href="#221">221</a> 					.getTransportIn(), msgCtx.getTransportOut());
+<a name="222" href="#222">222</a> 			response.setProperty(MessageContext.TRANSPORT_IN, msgCtx
+<a name="223" href="#223">223</a> 					.getProperty(MessageContext.TRANSPORT_IN));
+<a name="224" href="#224">224</a> 
+<a name="225" href="#225">225</a> 			response.setServerSide(false);
+<a name="226" href="#226">226</a> 
+<a name="227" href="#227">227</a> 			<em class="comment">//If request is REST we assume the response is REST, so set the</em>
+<a name="228" href="#228">228</a> 			<em class="comment">// variable</em>
+<a name="229" href="#229">229</a> 			response.setDoingREST(msgCtx.isDoingREST());
+<a name="230" href="#230">230</a> 			response
+<a name="231" href="#231">231</a> 					.setServiceGroupContextId(msgCtx.getServiceGroupContextId());
+<a name="232" href="#232">232</a> 			response.setServiceGroupContext(msgCtx.getServiceGroupContext());
+<a name="233" href="#233">233</a> 			response.setServiceContext(msgCtx.getServiceContext());
+<a name="234" href="#234">234</a> 			response.setAxisService(msgCtx.getAxisService());
+<a name="235" href="#235">235</a> 			response.setAxisServiceGroup(msgCtx.getAxisServiceGroup());
+<a name="236" href="#236">236</a> 
+<a name="237" href="#237">237</a> 			<em class="comment">//setting the in-flow.</em>
+<a name="238" href="#238">238</a> 			<em class="comment">//ArrayList inPhaseHandlers =</em>
+<a name="239" href="#239">239</a> 			<em class="comment">// response.getAxisOperation().getRemainingPhasesInFlow();</em>
+<a name="240" href="#240">240</a> 			<em class="comment">/*</em>
+<a name="241" href="#241">241</a> <em class="comment">			 * if (inPhaseHandlers==null || inPhaseHandlers.isEmpty()) {</em>
+<a name="242" href="#242">242</a> <em class="comment">			 * ArrayList phases =</em>
+<a name="243" href="#243">243</a> <em class="comment">			 * msgCtx.getSystemContext().getAxisConfiguration().getInPhasesUptoAndIncludingPostDispatch();</em>
+<a name="244" href="#244">244</a> <em class="comment">			 * response.getAxisOperation().setRemainingPhasesInFlow(phases); }</em>
+<a name="245" href="#245">245</a> <em class="comment">			 */</em>
+<a name="246" href="#246">246</a> 
+<a name="247" href="#247">247</a> 			<em class="comment">//Changed following from TransportUtils to SandeshaUtil since op.</em>
+<a name="248" href="#248">248</a> 			<em class="comment">// context is anavailable.</em>
+<a name="249" href="#249">249</a> 			SOAPEnvelope resenvelope = <strong>null</strong>;
+<a name="250" href="#250">250</a> 			<strong>try</strong> {
+<a name="251" href="#251">251</a> 				resenvelope = SandeshaUtil.createSOAPMessage(response, msgCtx
+<a name="252" href="#252">252</a> 						.getEnvelope().getNamespace().getName());
+<a name="253" href="#253">253</a> 			} <strong>catch</strong> (AxisFault e) {
+<a name="254" href="#254">254</a> 				<em class="comment">//TODO: change to log.debug</em>
+<a name="255" href="#255">255</a> 				e.printStackTrace();
+<a name="256" href="#256">256</a> 			}
+<a name="257" href="#257">257</a> 
+<a name="258" href="#258">258</a> 			<strong>if</strong> (resenvelope != <strong>null</strong>) {
+<a name="259" href="#259">259</a> 				AxisEngine engine = <strong>new</strong> AxisEngine(msgCtx.getSystemContext());
+<a name="260" href="#260">260</a> 				response.setEnvelope(resenvelope);
+<a name="261" href="#261">261</a> 				engine.receive(response);
+<a name="262" href="#262">262</a> 			}
+<a name="263" href="#263">263</a> 		}
+<a name="264" href="#264">264</a> 	}
+<a name="265" href="#265">265</a> 
+<a name="266" href="#266">266</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/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-frame.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-frame.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-frame.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,31 @@
+
+
+  <!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 Sandesha2 0.9 Reference Package org.apache.sandesha2.workers</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.sandesha2.workers</a>
+      </h3>
+
+      <h3>Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="InOrderInvoker.html" target="classFrame">InOrderInvoker</a>
+          </li>
+        
+          <li>
+            <a href="Sender.html" target="classFrame">Sender</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-summary.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-summary.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/workers/package-summary.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,108 @@
+
+
+  
+
+  
+    
+
+    
+
+    
+
+  
+      <!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 Sandesha2 0.9 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.sandesha2.workers</h2>
+
+      <table class="summary">
+        <thead>
+          <tr>
+            <th>Class Summary</th>
+          </tr>
+        </thead>
+
+        <tbody>
+          
+            <tr>
+              <td>
+                <a href="InOrderInvoker.html" target="classFrame">InOrderInvoker</a>
+              </td>
+            </tr>
+          
+            <tr>
+              <td>
+                <a href="Sender.html" target="classFrame">Sender</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; 2005 Apache Web Services. All Rights Reserved.
+        </body>
+      </html>
+    

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Accept.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Accept.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Accept.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Accept.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,110 @@
+<!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>Accept xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/Accept.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  1999-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/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</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.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <em>/**<em>*</em></em>
+<a name="28" href="#28">28</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="29" href="#29">29</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="30" href="#30">30</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="31" href="#31">31</a>  <em> */</em>
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/Accept.html">Accept</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="34" href="#34">34</a>  	<strong>private</strong> OMElement acceptElement;
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> acksTo;
+<a name="37" href="#37">37</a>  	
+<a name="38" href="#38">38</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	OMNamespace rmNamespace = <strong>null</strong>; 
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Accept.html">Accept</a>(SOAPFactory factory) {
+<a name="43" href="#43">43</a>  		<strong>this</strong>.factory = factory;
+<a name="44" href="#44">44</a>  		rmNamespace = factory.createOMNamespace(
+<a name="45" href="#45">45</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="46" href="#46">46</a>  		acceptElement = factory.createOMElement(
+<a name="47" href="#47">47</a>  				Sandesha2Constants.WSRM.ACCEPT, rmNamespace);
+<a name="48" href="#48">48</a>  	}
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="51" href="#51">51</a>  		<strong>return</strong> acceptElement;
+<a name="52" href="#52">52</a>  	}
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException {
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>  		OMElement acceptPart = element.getFirstChildWithName(<strong>new</strong> QName(
+<a name="57" href="#57">57</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.ACCEPT));
+<a name="58" href="#58">58</a>  		<strong>if</strong> (acceptPart == <strong>null</strong>)
+<a name="59" href="#59">59</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="60" href="#60">60</a>  					<span class="string">"Passed element does not contain an Accept part"</span>);
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  		acksTo = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a>(factory);
+<a name="63" href="#63">63</a>  		acksTo.fromOMElement(acceptPart);
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  		acceptElement = factory.createOMElement(
+<a name="66" href="#66">66</a>  				Sandesha2Constants.WSRM.ACCEPT, rmNamespace);
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="69" href="#69">69</a>  	}
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  	<strong>public</strong> OMElement toOMElement(OMElement element) throws OMException {
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>  		<strong>if</strong> (acceptElement == <strong>null</strong>)
+<a name="74" href="#74">74</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="75" href="#75">75</a>  					<span class="string">"Cant add Accept part since the internal element is null"</span>);
+<a name="76" href="#76">76</a>  
+<a name="77" href="#77">77</a>  		<strong>if</strong> (acksTo == <strong>null</strong>)
+<a name="78" href="#78">78</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="79" href="#79">79</a>  					<span class="string">"Cant add Accept part since AcksTo object is null"</span>);
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  		acksTo.toOMElement(acceptElement);
+<a name="82" href="#82">82</a>  		element.addChild(acceptElement);
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		acceptElement = factory.createOMElement(
+<a name="85" href="#85">85</a>  				Sandesha2Constants.WSRM.ACCEPT, rmNamespace);
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  		<strong>return</strong> element;
+<a name="88" href="#88">88</a>  	}
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  	<strong>public</strong> <strong>void</strong> setAcksTo(<a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> acksTo) {
+<a name="91" href="#91">91</a>  		<strong>this</strong>.acksTo = acksTo;
+<a name="92" href="#92">92</a>  	}
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> getAcksTo() {
+<a name="95" href="#95">95</a>  		<strong>return</strong> acksTo;
+<a name="96" href="#96">96</a>  	}
+<a name="97" href="#97">97</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/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AckRequested.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AckRequested.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AckRequested.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AckRequested.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,159 @@
+<!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>AckRequested xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/AckRequested.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  1999-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/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</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.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.soap.SOAPHeader;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.soap.SOAPHeaderBlock;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  <em>/**<em>*</em></em>
+<a name="31" href="#31">31</a>  <em> * Represent the AckRequested header block.</em>
+<a name="32" href="#32">32</a>  <em> * </em>
+<a name="33" href="#33">33</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="34" href="#34">34</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="35" href="#35">35</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="36" href="#36">36</a>  <em> */</em>
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/AckRequested.html">AckRequested</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMPart.html">IOMRMPart</a> {
+<a name="39" href="#39">39</a>  	<strong>private</strong> OMElement ackRequestedElement;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a> messageNumber;
+<a name="44" href="#44">44</a>  	
+<a name="45" href="#45">45</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AckRequested.html">AckRequested</a>(SOAPFactory factory) {
+<a name="50" href="#50">50</a>  		<strong>this</strong>.factory = factory;
+<a name="51" href="#51">51</a>  		rmNamespace = factory.createOMNamespace(
+<a name="52" href="#52">52</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="53" href="#53">53</a>  		ackRequestedElement = factory.createOMElement(
+<a name="54" href="#54">54</a>  				Sandesha2Constants.WSRM.ACK_REQUESTED, rmNamespace);
+<a name="55" href="#55">55</a>  	}
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="58" href="#58">58</a>  		<strong>return</strong> ackRequestedElement;
+<a name="59" href="#59">59</a>  	}
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>  	<strong>public</strong> Object fromOMElement(OMElement header) throws OMException {
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  		<strong>if</strong> (header == <strong>null</strong> || !(header instanceof SOAPHeader))
+<a name="64" href="#64">64</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="65" href="#65">65</a>  					<span class="string">"Cant add the Ack Requested part to a non-header element"</span>);
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  		OMElement ackReqPart = header.getFirstChildWithName(<strong>new</strong> QName(
+<a name="68" href="#68">68</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.ACK_REQUESTED));
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  		<strong>if</strong> (ackReqPart == <strong>null</strong>)
+<a name="71" href="#71">71</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="72" href="#72">72</a>  					<span class="string">"the passed element does not contain an ack requested part"</span>);
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  		identifier = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a>(factory);
+<a name="75" href="#75">75</a>  		identifier.fromOMElement(ackReqPart);
+<a name="76" href="#76">76</a>  
+<a name="77" href="#77">77</a>  		OMElement msgNoPart = ackReqPart.getFirstChildWithName(<strong>new</strong> QName(
+<a name="78" href="#78">78</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.MSG_NUMBER));
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  		<strong>if</strong> (msgNoPart != <strong>null</strong>) {
+<a name="81" href="#81">81</a>  			messageNumber = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a>(factory);
+<a name="82" href="#82">82</a>  			messageNumber.fromOMElement(ackReqPart);
+<a name="83" href="#83">83</a>  		}
+<a name="84" href="#84">84</a>  
+<a name="85" href="#85">85</a>  		ackRequestedElement = factory.createOMElement(
+<a name="86" href="#86">86</a>  				Sandesha2Constants.WSRM.ACK_REQUESTED, rmNamespace);
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="89" href="#89">89</a>  	}
+<a name="90" href="#90">90</a>  
+<a name="91" href="#91">91</a>  	<strong>public</strong> OMElement toOMElement(OMElement header) throws OMException {
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>  		<strong>if</strong> (header == <strong>null</strong> || !(header instanceof SOAPHeader))
+<a name="94" href="#94">94</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="95" href="#95">95</a>  					<span class="string">"Cant add the Ack Requested part to a non-header element"</span>);
+<a name="96" href="#96">96</a>  
+<a name="97" href="#97">97</a>  		<strong>if</strong> (ident<strong>if</strong>ier == <strong>null</strong>)
+<a name="98" href="#98">98</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="99" href="#99">99</a>  					<span class="string">"Cant add ack Req block since the identifier is null"</span>);
+<a name="100" href="#100">100</a> 
+<a name="101" href="#101">101</a> 		SOAPHeader SOAPHdr = (SOAPHeader) header;
+<a name="102" href="#102">102</a> 		SOAPHeaderBlock ackReqHdrBlock = SOAPHdr.addHeaderBlock(
+<a name="103" href="#103">103</a> 				Sandesha2Constants.WSRM.ACK_REQUESTED, rmNamespace);
+<a name="104" href="#104">104</a> 		ackReqHdrBlock.setMustUnderstand(<strong>true</strong>);
+<a name="105" href="#105">105</a> 
+<a name="106" href="#106">106</a> 		identifier.toOMElement(ackReqHdrBlock);
+<a name="107" href="#107">107</a> 
+<a name="108" href="#108">108</a> 		<strong>if</strong> (messageNumber != <strong>null</strong>) {
+<a name="109" href="#109">109</a> 			messageNumber.toOMElement(ackReqHdrBlock);
+<a name="110" href="#110">110</a> 		}
+<a name="111" href="#111">111</a> 
+<a name="112" href="#112">112</a> 		ackRequestedElement = factory.createOMElement(
+<a name="113" href="#113">113</a> 				Sandesha2Constants.WSRM.ACK_REQUESTED, rmNamespace);
+<a name="114" href="#114">114</a> 
+<a name="115" href="#115">115</a> 		<strong>return</strong> header;
+<a name="116" href="#116">116</a> 	}
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</a> 	<strong>public</strong> <strong>void</strong> setIdentifier(<a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier) {
+<a name="119" href="#119">119</a> 		<strong>this</strong>.identifier = identifier;
+<a name="120" href="#120">120</a> 	}
+<a name="121" href="#121">121</a> 
+<a name="122" href="#122">122</a> 	<strong>public</strong> <strong>void</strong> setMessageNumber(<a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a> messageNumber) {
+<a name="123" href="#123">123</a> 		<strong>this</strong>.messageNumber = messageNumber;
+<a name="124" href="#124">124</a> 	}
+<a name="125" href="#125">125</a> 
+<a name="126" href="#126">126</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> getIdentifier() {
+<a name="127" href="#127">127</a> 		<strong>return</strong> identifier;
+<a name="128" href="#128">128</a> 	}
+<a name="129" href="#129">129</a> 
+<a name="130" href="#130">130</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a> getMessageNumber() {
+<a name="131" href="#131">131</a> 		<strong>return</strong> messageNumber;
+<a name="132" href="#132">132</a> 	}
+<a name="133" href="#133">133</a> 
+<a name="134" href="#134">134</a> 	<strong>public</strong> <strong>void</strong> toSOAPEnvelope(SOAPEnvelope envelope) {
+<a name="135" href="#135">135</a> 		SOAPHeader header = envelope.getHeader();
+<a name="136" href="#136">136</a> 		
+<a name="137" href="#137">137</a> 		<em class="comment">//detach if already exist.</em>
+<a name="138" href="#138">138</a> 		OMElement elem = header.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="139" href="#139">139</a> 				Sandesha2Constants.WSRM.ACK_REQUESTED));
+<a name="140" href="#140">140</a> 		<strong>if</strong> (elem!=<strong>null</strong>)
+<a name="141" href="#141">141</a> 			elem.detach();
+<a name="142" href="#142">142</a> 		
+<a name="143" href="#143">143</a> 		toOMElement(header);
+<a name="144" href="#144">144</a> 	}
+<a name="145" href="#145">145</a> 
+<a name="146" href="#146">146</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/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcknowledgementRange.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcknowledgementRange.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcknowledgementRange.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcknowledgementRange.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,142 @@
+<!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>AcknowledgementRange xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/AcknowledgementRange.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  1999-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/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</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.axis2.om.OMAttribute;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  <em>/**<em>*</em></em>
+<a name="29" href="#29">29</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="30" href="#30">30</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="31" href="#31">31</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="32" href="#32">32</a>  <em> */</em>
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcknowledgementRange.html">AcknowledgementRange</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="35" href="#35">35</a>  	<strong>private</strong> OMElement acknowledgementRangeElement;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>private</strong> <strong>long</strong> upperValue;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>private</strong> <strong>long</strong> lowerValue;
+<a name="40" href="#40">40</a>  	
+<a name="41" href="#41">41</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcknowledgementRange.html">AcknowledgementRange</a>(SOAPFactory factory) {
+<a name="46" href="#46">46</a>  		<strong>this</strong>.factory = factory;
+<a name="47" href="#47">47</a>  		rmNamespace = factory.createOMNamespace(
+<a name="48" href="#48">48</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="49" href="#49">49</a>  		acknowledgementRangeElement = factory.createOMElement(
+<a name="50" href="#50">50</a>  				Sandesha2Constants.WSRM.ACK_RANGE, rmNamespace);
+<a name="51" href="#51">51</a>  	}
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="54" href="#54">54</a>  		<strong>return</strong> acknowledgementRangeElement;
+<a name="55" href="#55">55</a>  	}
+<a name="56" href="#56">56</a>  
+<a name="57" href="#57">57</a>  	<strong>public</strong> Object fromOMElement(OMElement ackRangePart) throws OMException {
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  		<strong>if</strong> (ackRangePart == <strong>null</strong>)
+<a name="60" href="#60">60</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"The passed element is null"</span>);
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  		OMAttribute lowerAttrib = ackRangePart.getAttribute(<strong>new</strong> QName(
+<a name="63" href="#63">63</a>  				Sandesha2Constants.WSRM.LOWER));
+<a name="64" href="#64">64</a>  		OMAttribute upperAttrib = ackRangePart.getAttribute(<strong>new</strong> QName(
+<a name="65" href="#65">65</a>  				Sandesha2Constants.WSRM.UPPER));
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  		<strong>if</strong> (lowerAttrib == <strong>null</strong> || upperAttrib == <strong>null</strong>)
+<a name="68" href="#68">68</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="69" href="#69">69</a>  					<span class="string">"Passed element does not contain upper or lower attributes"</span>);
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		<strong>try</strong> {
+<a name="72" href="#72">72</a>  			<strong>long</strong> lower = Long.parseLong(lowerAttrib.getAttributeValue());
+<a name="73" href="#73">73</a>  			<strong>long</strong> upper = Long.parseLong(upperAttrib.getAttributeValue());
+<a name="74" href="#74">74</a>  			upperValue = upper;
+<a name="75" href="#75">75</a>  			lowerValue = lower;
+<a name="76" href="#76">76</a>  		} <strong>catch</strong> (Exception ex) {
+<a name="77" href="#77">77</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="78" href="#78">78</a>  					<span class="string">"The ack range does not have proper long values for Upper and Lower attributes"</span>);
+<a name="79" href="#79">79</a>  		}
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  		acknowledgementRangeElement = factory.createOMElement(
+<a name="82" href="#82">82</a>  				Sandesha2Constants.WSRM.ACK_RANGE, rmNamespace);
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="85" href="#85">85</a>  	}
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  	<strong>public</strong> OMElement toOMElement(OMElement sequenceAckElement)
+<a name="88" href="#88">88</a>  			throws OMException {
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  		<strong>if</strong> (sequenceAckElement == <strong>null</strong>)
+<a name="91" href="#91">91</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="92" href="#92">92</a>  					<span class="string">"Cant set Ack Range part since element is null"</span>);
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>  		<strong>if</strong> (upperValue &lt;= 0 || lowerValue &lt;= 0 || lowerValue > upperValue)
+<a name="95" href="#95">95</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="96" href="#96">96</a>  					<span class="string">"Cant set Ack Range part since Upper or Lower is not set to the correct value"</span>);
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  		OMAttribute lowerAttrib = factory.createOMAttribute(
+<a name="99" href="#99">99</a>  				Sandesha2Constants.WSRM.LOWER, <strong>null</strong>, Long.toString(lowerValue));
+<a name="100" href="#100">100</a> 		OMAttribute upperAttrib = factory.createOMAttribute(
+<a name="101" href="#101">101</a> 				Sandesha2Constants.WSRM.UPPER, <strong>null</strong>, Long.toString(upperValue));
+<a name="102" href="#102">102</a> 
+<a name="103" href="#103">103</a> 		acknowledgementRangeElement.addAttribute(lowerAttrib);
+<a name="104" href="#104">104</a> 		acknowledgementRangeElement.addAttribute(upperAttrib);
+<a name="105" href="#105">105</a> 
+<a name="106" href="#106">106</a> 		sequenceAckElement.addChild(acknowledgementRangeElement);
+<a name="107" href="#107">107</a> 
+<a name="108" href="#108">108</a> 		acknowledgementRangeElement = factory.createOMElement(
+<a name="109" href="#109">109</a> 				Sandesha2Constants.WSRM.ACK_RANGE, rmNamespace);
+<a name="110" href="#110">110</a> 
+<a name="111" href="#111">111</a> 		<strong>return</strong> sequenceAckElement;
+<a name="112" href="#112">112</a> 	}
+<a name="113" href="#113">113</a> 
+<a name="114" href="#114">114</a> 	<strong>public</strong> <strong>long</strong> getLowerValue() {
+<a name="115" href="#115">115</a> 		<strong>return</strong> lowerValue;
+<a name="116" href="#116">116</a> 	}
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</a> 	<strong>public</strong> <strong>void</strong> setLowerValue(<strong>long</strong> lowerValue) {
+<a name="119" href="#119">119</a> 		<strong>this</strong>.lowerValue = lowerValue;
+<a name="120" href="#120">120</a> 	}
+<a name="121" href="#121">121</a> 
+<a name="122" href="#122">122</a> 	<strong>public</strong> <strong>long</strong> getUpperValue() {
+<a name="123" href="#123">123</a> 		<strong>return</strong> upperValue;
+<a name="124" href="#124">124</a> 	}
+<a name="125" href="#125">125</a> 
+<a name="126" href="#126">126</a> 	<strong>public</strong> <strong>void</strong> setUpperValue(<strong>long</strong> upperValue) {
+<a name="127" href="#127">127</a> 		<strong>this</strong>.upperValue = upperValue;
+<a name="128" href="#128">128</a> 	}
+<a name="129" href="#129">129</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/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcksTo.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcksTo.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcksTo.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/AcksTo.html Wed Nov 30 03:11:01 2005
@@ -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>AcksTo xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/AcksTo.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  1999-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/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</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.axis2.om.OMElement;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="26" href="#26">26</a>  
+<a name="27" href="#27">27</a>  <em>/**<em>*</em></em>
+<a name="28" href="#28">28</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="29" href="#29">29</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="30" href="#30">30</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="31" href="#31">31</a>  <em> */</em>
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Address.html">Address</a> address;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>private</strong> OMElement acksToElement;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<em class="comment">//private OMElement addressElement;</em>
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="42" href="#42">42</a>  	
+<a name="43" href="#43">43</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a>(SOAPFactory factory) {
+<a name="46" href="#46">46</a>  		<strong>this</strong>.factory = factory;
+<a name="47" href="#47">47</a>  		rmNamespace = factory.createOMNamespace(
+<a name="48" href="#48">48</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="49" href="#49">49</a>  		acksToElement = factory.createOMElement(
+<a name="50" href="#50">50</a>  				Sandesha2Constants.WSRM.ACKS_TO, rmNamespace);
+<a name="51" href="#51">51</a>  	}
+<a name="52" href="#52">52</a>  	
+<a name="53" href="#53">53</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcksTo.html">AcksTo</a> (Address address,SOAPFactory factory) {
+<a name="54" href="#54">54</a>  		<strong>this</strong> (factory);
+<a name="55" href="#55">55</a>  		<strong>this</strong>.address = address;
+<a name="56" href="#56">56</a>  	}
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="59" href="#59">59</a>  		<strong>return</strong> acksToElement;
+<a name="60" href="#60">60</a>  	}
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException {
+<a name="63" href="#63">63</a>  		OMElement acksToPart = element.getFirstChildWithName(<strong>new</strong> QName(
+<a name="64" href="#64">64</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.ACKS_TO));
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>  		<strong>if</strong> (acksToPart == <strong>null</strong>)
+<a name="67" href="#67">67</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="68" href="#68">68</a>  					<span class="string">"Passed element does not contain an acksTo part"</span>);
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  		address = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Address.html">Address</a>(factory);
+<a name="71" href="#71">71</a>  		address.fromOMElement(acksToPart);
+<a name="72" href="#72">72</a>  
+<a name="73" href="#73">73</a>  		acksToElement = factory.createOMElement(
+<a name="74" href="#74">74</a>  				Sandesha2Constants.WSRM.ACKS_TO, rmNamespace);
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="77" href="#77">77</a>  	}
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  	<strong>public</strong> OMElement toOMElement(OMElement element) throws OMException {
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  		<strong>if</strong> (acksToElement == <strong>null</strong>)
+<a name="82" href="#82">82</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"Cant set AcksTo. AcksTo element is null"</span>);
+<a name="83" href="#83">83</a>  		<strong>if</strong> (address == <strong>null</strong>)
+<a name="84" href="#84">84</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"Cant set AcksTo. Address is null"</span>);
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>  		OMElement acksToPart = element.getFirstChildWithName(<strong>new</strong> QName(
+<a name="87" href="#87">87</a>  				Sandesha2Constants.WSA.NS_URI_ADDRESSING, Sandesha2Constants.WSRM.ACKS_TO));
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  		address.toOMElement(acksToElement);
+<a name="90" href="#90">90</a>  		element.addChild(acksToElement);
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  		acksToElement =factory.createOMElement(
+<a name="93" href="#93">93</a>  				Sandesha2Constants.WSRM.ACKS_TO, rmNamespace);
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>  		<strong>return</strong> element;
+<a name="96" href="#96">96</a>  	}
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Address.html">Address</a> getAddress() {
+<a name="99" href="#99">99</a>  		<strong>return</strong> address;
+<a name="100" href="#100">100</a> 	}
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> 	<strong>public</strong> <strong>void</strong> setAddress(<a href="../../../../org/apache/sandesha2/wsrm/Address.html">Address</a> address) {
+<a name="103" href="#103">103</a> 		<strong>this</strong>.address = address;
+<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/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Address.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Address.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Address.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Address.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,109 @@
+<!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>Address xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/Address.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 Sep 1, 2005</em>
+<a name="3" href="#3">3</a>   <em class="comment"> *</em>
+<a name="4" href="#4">4</a>   <em class="comment"> * TODO To change the template for this generated file go to</em>
+<a name="5" href="#5">5</a>   <em class="comment"> * Window - Preferences - Java - Code Style - Code Templates</em>
+<a name="6" href="#6">6</a>   <em class="comment"> */</em>
+<a name="7" href="#7">7</a>   <strong>package</strong> <a href="../../../../org/apache/sandesha2/wsrm/package-summary.html">org.apache.sandesha2.wsrm</a>;
+<a name="8" href="#8">8</a>   
+<a name="9" href="#9">9</a>   <strong>import</strong> javax.xml.namespace.QName;
+<a name="10" href="#10">10</a>  
+<a name="11" href="#11">11</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="12" href="#12">12</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="13" href="#13">13</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="14" href="#14">14</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="15" href="#15">15</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="16" href="#16">16</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="17" href="#17">17</a>  
+<a name="18" href="#18">18</a>  <em>/**<em>*</em></em>
+<a name="19" href="#19">19</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="20" href="#20">20</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="21" href="#21">21</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="22" href="#22">22</a>  <em> */</em>
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/Address.html">Address</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  	EndpointReference epr = <strong>null</strong>;
+<a name="27" href="#27">27</a>  
+<a name="28" href="#28">28</a>  	OMElement addressElement;
+<a name="29" href="#29">29</a>  	
+<a name="30" href="#30">30</a>  	SOAPFactory factory;
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Address.html">Address</a>(SOAPFactory factory) {
+<a name="35" href="#35">35</a>  		<strong>this</strong>.factory = factory;
+<a name="36" href="#36">36</a>  		rmNamespace = factory.createOMNamespace(Sandesha2Constants.WSA.NS_URI_ADDRESSING,
+<a name="37" href="#37">37</a>  				Sandesha2Constants.WSA.NS_PREFIX_ADDRESSING);
+<a name="38" href="#38">38</a>  		addressElement = factory.createOMElement(
+<a name="39" href="#39">39</a>  				Sandesha2Constants.WSA.ADDRESS, rmNamespace);
+<a name="40" href="#40">40</a>  	}
+<a name="41" href="#41">41</a>  	
+<a name="42" href="#42">42</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Address.html">Address</a> (EndpointReference epr,SOAPFactory factory) {
+<a name="43" href="#43">43</a>  		<strong>this</strong>(factory);
+<a name="44" href="#44">44</a>  		<strong>this</strong>.epr = epr;
+<a name="45" href="#45">45</a>  	}
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException {
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  		OMElement addressPart = element.getFirstChildWithName(<strong>new</strong> QName(
+<a name="50" href="#50">50</a>  				Sandesha2Constants.WSA.NS_URI_ADDRESSING, Sandesha2Constants.WSA.ADDRESS));
+<a name="51" href="#51">51</a>  		<strong>if</strong> (addressPart == <strong>null</strong>)
+<a name="52" href="#52">52</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="53" href="#53">53</a>  					<span class="string">"Cant find an Address element in the given part"</span>);
+<a name="54" href="#54">54</a>  		String addressText = addressPart.getText();
+<a name="55" href="#55">55</a>  		<strong>if</strong> (addressText == <strong>null</strong> || addressText == <span class="string">""</span>)
+<a name="56" href="#56">56</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="57" href="#57">57</a>  					<span class="string">"Passed element does not have a valid address text"</span>);
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  		addressElement = addressPart;
+<a name="60" href="#60">60</a>  		epr = <strong>new</strong> EndpointReference(addressText);
+<a name="61" href="#61">61</a>  		addressElement = factory.createOMElement(
+<a name="62" href="#62">62</a>  				Sandesha2Constants.WSA.ADDRESS, rmNamespace);
+<a name="63" href="#63">63</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  	}
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="68" href="#68">68</a>  		<strong>return</strong> addressElement;
+<a name="69" href="#69">69</a>  	}
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  	<strong>public</strong> OMElement toOMElement(OMElement element) throws OMException {
+<a name="72" href="#72">72</a>  		<strong>if</strong> (addressElement == <strong>null</strong>)
+<a name="73" href="#73">73</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="74" href="#74">74</a>  					<span class="string">"Cant set Address. The address element is null"</span>);
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  		<strong>if</strong> (epr == <strong>null</strong> || epr.getAddress() == <strong>null</strong> || epr.getAddress() == <span class="string">""</span>)
+<a name="77" href="#77">77</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="78" href="#78">78</a>  					<span class="string">"cant set the address. The address value is not valid"</span>);
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  		addressElement.setText(epr.getAddress());
+<a name="81" href="#81">81</a>  		element.addChild(addressElement);
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  		addressElement = factory.createOMElement(
+<a name="84" href="#84">84</a>  				Sandesha2Constants.WSA.ADDRESS, rmNamespace);
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>  		<strong>return</strong> element;
+<a name="87" href="#87">87</a>  	}
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  	<strong>public</strong> EndpointReference getEpr() {
+<a name="90" href="#90">90</a>  		<strong>return</strong> epr;
+<a name="91" href="#91">91</a>  	}
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>  	<strong>public</strong> <strong>void</strong> setEpr(EndpointReference epr) {
+<a name="94" href="#94">94</a>  		<strong>this</strong>.epr = epr;
+<a name="95" href="#95">95</a>  	}
+<a name="96" href="#96">96</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+



Mime
View raw message