ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r349924 [10/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/Sandesha2Constants.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/Sandesha2Constants.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/Sandesha2Constants.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/Sandesha2Constants.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,340 @@
+<!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>Sandesha2Constants xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/Sandesha2Constants.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>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../org/apache/sandesha2/package-summary.html">org.apache.sandesha2</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <em>/**<em>*</em></em>
+<a name="21" href="#21">21</a>  <em> * Contains all the Sandesha2Constants of Sandesha2.</em>
+<a name="22" href="#22">22</a>  <em> * Please see sub-interfaces to see grouped data.</em>
+<a name="23" href="#23">23</a>  <em> * </em>
+<a name="24" href="#24">24</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="25" href="#25">25</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="26" href="#26">26</a>  <em> * @author Jaliya Ekanayaka &lt;jaliya@opensource.lk></em>
+<a name="27" href="#27">27</a>  <em> */</em>
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <strong>public</strong> <strong>interface</strong> Sandesha2Constants {
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>public</strong> <strong>interface</strong> WSRM {
+<a name="32" href="#32">32</a>  		String NS_PREFIX_RM = <span class="string">"wsrm"</span>;
+<a name="33" href="#33">33</a>  
+<a name="34" href="#34">34</a>  		String NS_URI_RM = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm"</span>;
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  		String MSG_NUMBER = <span class="string">"MessageNumber"</span>;
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  		String LAST_MSG = <span class="string">"LastMessage"</span>;
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  		String SEQUENCE = <span class="string">"Sequence"</span>;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  		String SEQUENCE_OFFER = <span class="string">"Offer"</span>;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  		String TERMINATE_SEQUENCE = <span class="string">"TerminateSequence"</span>;
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  		String FAULT_CODE = <span class="string">"FaultCode"</span>;
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  		String SEQUENCE_FAULT = <span class="string">"SequenceFault"</span>;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  		String ACKS_TO = <span class="string">"AcksTo"</span>;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  		String EXPIRES = <span class="string">"Expires"</span>;
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  		String CREATE_SEQUENCE = <span class="string">"CreateSequence"</span>;
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>  		String CREATE_SEQUENCE_RESPONSE = <span class="string">"CreateSequenceResponse"</span>;
+<a name="57" href="#57">57</a>  
+<a name="58" href="#58">58</a>  		String ACK_REQUESTED = <span class="string">"AckRequested"</span>;
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  		String ACK_RANGE = <span class="string">"AcknowledgementRange"</span>;
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  		String UPPER = <span class="string">"Upper"</span>;
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>  		String LOWER = <span class="string">"Lower"</span>;
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>  		String NACK = <span class="string">"Nack"</span>;
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>  		String SEQUENCE_ACK = <span class="string">"SequenceAcknowledgement"</span>;
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  		String IDENTIFIER = <span class="string">"Identifier"</span>;
+<a name="71" href="#71">71</a>  
+<a name="72" href="#72">72</a>  		String ACCEPT = <span class="string">"Accept"</span>;
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  		<strong>public</strong> <strong>interface</strong> Actions {
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  			String ACTION_CREATE_SEQUENCE = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence"</span>;
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  			String ACTION_CREATE_SEQUENCE_RESPONSE = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse"</span>;
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  			String ACTION_SEQUENCE_ACKNOWLEDGEMENT = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement"</span>;
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  			String ACTION_TERMINATE_SEQUENCE = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence"</span>;
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  			String SOAP_ACTION_CREATE_SEQUENCE = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequence"</span>;
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>  			String SOAP_ACTION_CREATE_SEQUENCE_RESPONSE = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/CreateSequenceResponse"</span>;
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  			String SOAP_ACTION_SEQUENCE_ACKNOWLEDGEMENT = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/SequenceAcknowledgement"</span>;
+<a name="89" href="#89">89</a>  
+<a name="90" href="#90">90</a>  			String SOAP_ACTION_TERMINATE_SEQUENCE = <span class="string">"http://schemas.xmlsoap.org/ws/2005/02/rm/TerminateSequence"</span>;
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  		}
+<a name="93" href="#93">93</a>  	}
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>  	<strong>public</strong> <strong>interface</strong> WSA {
+<a name="96" href="#96">96</a>  		String NS_URI_ANONYMOUS = <span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing/role/anonymous"</span>;
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  		String NS_URI_ADDRESSING = <span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing"</span>;
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a> 		String NS_PREFIX_ADDRESSING = <span class="string">"wsa"</span>;
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> 		String ADDRESS = <span class="string">"Address"</span>;
+<a name="103" href="#103">103</a> 
+<a name="104" href="#104">104</a> 		String SOAP_FAULT_ACTION = <span class="string">"http://schemas.xmlsoap.org/ws/2004/08/addressing/fault"</span>;
+<a name="105" href="#105">105</a> 	}
+<a name="106" href="#106">106</a> 
+<a name="107" href="#107">107</a> 	<strong>public</strong> <strong>interface</strong> WSP {
+<a name="108" href="#108">108</a> 		String RM_POLICY_BEAN = <span class="string">"RMPolicyBean"</span>;
+<a name="109" href="#109">109</a> 	}
+<a name="110" href="#110">110</a> 
+<a name="111" href="#111">111</a> 	<strong>public</strong> <strong>interface</strong> MessageTypes {
+<a name="112" href="#112">112</a> 		<strong>int</strong> UNKNOWN = 0;
+<a name="113" href="#113">113</a> 
+<a name="114" href="#114">114</a> 		<strong>int</strong> CREATE_SEQ = 1;
+<a name="115" href="#115">115</a> 
+<a name="116" href="#116">116</a> 		<strong>int</strong> CREATE_SEQ_RESPONSE = 2;
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</a> 		<strong>int</strong> APPLICATION = 3;
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a> 		<strong>int</strong> ACK = 4;
+<a name="121" href="#121">121</a> 
+<a name="122" href="#122">122</a> 		<strong>int</strong> TERMINATE_SEQ = 5;
+<a name="123" href="#123">123</a> 
+<a name="124" href="#124">124</a> 		<strong>int</strong> MAX_MESSAGE_TYPE = 5;
+<a name="125" href="#125">125</a> 	}
+<a name="126" href="#126">126</a> 
+<a name="127" href="#127">127</a> 	<strong>public</strong> <strong>interface</strong> MessageParts {
+<a name="128" href="#128">128</a> 		<strong>int</strong> UNKNOWN = 0;
+<a name="129" href="#129">129</a> 
+<a name="130" href="#130">130</a> 		<strong>int</strong> SEQUENCE = 6;
+<a name="131" href="#131">131</a> 
+<a name="132" href="#132">132</a> 		<strong>int</strong> SEQ_ACKNOWLEDGEMENT = 7;
+<a name="133" href="#133">133</a> 
+<a name="134" href="#134">134</a> 		<strong>int</strong> ADDR_HEADERS = 8;
+<a name="135" href="#135">135</a> 
+<a name="136" href="#136">136</a> 		<strong>int</strong> CREATE_SEQ = 9;
+<a name="137" href="#137">137</a> 
+<a name="138" href="#138">138</a> 		<strong>int</strong> CREATE_SEQ_RESPONSE = 10;
+<a name="139" href="#139">139</a> 
+<a name="140" href="#140">140</a> 		<strong>int</strong> TERMINATE_SEQ = 11;
+<a name="141" href="#141">141</a> 
+<a name="142" href="#142">142</a> 		<strong>int</strong> ACK_REQUEST = 12;
+<a name="143" href="#143">143</a> 
+<a name="144" href="#144">144</a> 		<strong>int</strong> MAX_MSG_PART_ID = 13;
+<a name="145" href="#145">145</a> 	}
+<a name="146" href="#146">146</a> 
+<a name="147" href="#147">147</a> 	<strong>public</strong> <strong>interface</strong> SequenceProperties {
+<a name="148" href="#148">148</a> 
+<a name="149" href="#149">149</a> 		String ALL_SEQUENCES = <span class="string">"AllSequences"</span>; <em class="comment">//this is not a sequence</em>
+<a name="150" href="#150">150</a> 											   <em class="comment">// property. This is used as the</em>
+<a name="151" href="#151">151</a> 											   <em class="comment">// sequenceId to share data b/w</em>
+<a name="152" href="#152">152</a> 											   <em class="comment">// sequences</em>
+<a name="153" href="#153">153</a> 
+<a name="154" href="#154">154</a> 		String RECEIVED_MESSAGES = <span class="string">"SeqMsgListProperty"</span>;
+<a name="155" href="#155">155</a> 
+<a name="156" href="#156">156</a> 		String TO_EPR = <span class="string">"ToEPR"</span>;
+<a name="157" href="#157">157</a> 
+<a name="158" href="#158">158</a> 		String ACKS_TO_EPR = <span class="string">"acksToEPR"</span>;
+<a name="159" href="#159">159</a> 
+<a name="160" href="#160">160</a> 		String OUT_SEQUENCE_ID = <span class="string">"OutSequenceId"</span>;
+<a name="161" href="#161">161</a> 
+<a name="162" href="#162">162</a> 		String INTERNAL_SEQUENCE_ID = <span class="string">"TempSequenceId"</span>;
+<a name="163" href="#163">163</a> 
+<a name="164" href="#164">164</a> 		String REPLY_TO_EPR = <span class="string">"ReplyToEPR"</span>;
+<a name="165" href="#165">165</a> 
+<a name="166" href="#166">166</a> 		String APP_MSG_PROCESSOR_LIST = <span class="string">"AppMsgProcessorList"</span>;
+<a name="167" href="#167">167</a> 
+<a name="168" href="#168">168</a> 		String OUT_CREATE_SEQUENCE_SENT = <span class="string">"OutCreateSeqSent"</span>;
+<a name="169" href="#169">169</a> 
+<a name="170" href="#170">170</a> 		String NEXT_MESSAGE_NUMBER = <span class="string">"NextMsgNo"</span>;
+<a name="171" href="#171">171</a> 
+<a name="172" href="#172">172</a> 		String LAST_OUT_MESSAGE = <span class="string">"LastOutMessage"</span>;
+<a name="173" href="#173">173</a> 
+<a name="174" href="#174">174</a> 		String INCOMING_SEQUENCE_LIST = <span class="string">"IncomingSequenceList"</span>;
+<a name="175" href="#175">175</a> 
+<a name="176" href="#176">176</a> 		String CHECK_RESPONSE = <span class="string">"CheckResponse"</span>;
+<a name="177" href="#177">177</a> 
+<a name="178" href="#178">178</a> 		String OFFERED_SEQUENCE = <span class="string">"OfferedSequence"</span>;
+<a name="179" href="#179">179</a> 
+<a name="180" href="#180">180</a> 		String TERMINATE_ADDED = <span class="string">"TerminateAdded"</span>;
+<a name="181" href="#181">181</a> 	}
+<a name="182" href="#182">182</a> 
+<a name="183" href="#183">183</a> 	<strong>public</strong> <strong>interface</strong> SOAPVersion {
+<a name="184" href="#184">184</a> 		<strong>int</strong> v1_1 = 1;
+<a name="185" href="#185">185</a> 
+<a name="186" href="#186">186</a> 		<strong>int</strong> v1_2 = 2;
+<a name="187" href="#187">187</a> 	}
+<a name="188" href="#188">188</a> 
+<a name="189" href="#189">189</a> 	<strong>public</strong> <strong>interface</strong> QOS {
+<a name="190" href="#190">190</a> 
+<a name="191" href="#191">191</a> 		<strong>public</strong> <strong>interface</strong> DeliveryAssurance {
+<a name="192" href="#192">192</a> 
+<a name="193" href="#193">193</a> 			String IN_ORDER = <span class="string">"InOrder"</span>;
+<a name="194" href="#194">194</a> 
+<a name="195" href="#195">195</a> 			String NOT_IN_ORDER = <span class="string">"NotInOrder"</span>;
+<a name="196" href="#196">196</a> 
+<a name="197" href="#197">197</a> 			String DEFAULT_DELIVERY_ASSURANCE = IN_ORDER;
+<a name="198" href="#198">198</a> 		}
+<a name="199" href="#199">199</a> 
+<a name="200" href="#200">200</a> 		<strong>public</strong> <strong>interface</strong> InvocationType {
+<a name="201" href="#201">201</a> 
+<a name="202" href="#202">202</a> 			<em class="comment">//invocation types</em>
+<a name="203" href="#203">203</a> 			String EXACTLY_ONCE = <span class="string">"ExactlyOnce"</span>;
+<a name="204" href="#204">204</a> 
+<a name="205" href="#205">205</a> 			String MORE_THAN_ONCE = <span class="string">"MoreThanOnce"</span>;
+<a name="206" href="#206">206</a> 
+<a name="207" href="#207">207</a> 			String DEFAULT_INVOCATION_TYPE = EXACTLY_ONCE;
+<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>public</strong> <strong>interface</strong> BeanMAPs {
+<a name="213" href="#213">213</a> 		String CREATE_SEQUECE = <span class="string">"CreateSequenceBeanMap"</span>;
+<a name="214" href="#214">214</a> 
+<a name="215" href="#215">215</a> 		String RETRANSMITTER = <span class="string">"RetransmitterBeanMap"</span>;
+<a name="216" href="#216">216</a> 
+<a name="217" href="#217">217</a> 		String SEQUENCE_PROPERTY = <span class="string">"SequencePropertyBeanMap"</span>;
+<a name="218" href="#218">218</a> 
+<a name="219" href="#219">219</a> 		String STORAGE_MAP = <span class="string">"StorageMapBeanMap"</span>;
+<a name="220" href="#220">220</a> 
+<a name="221" href="#221">221</a> 		String NEXT_MESSAGE = <span class="string">"NextMsgBeanMap"</span>;
+<a name="222" href="#222">222</a> 	}
+<a name="223" href="#223">223</a> 
+<a name="224" href="#224">224</a> 	<strong>public</strong> <strong>interface</strong> SOAPFaults {
+<a name="225" href="#225">225</a> 
+<a name="226" href="#226">226</a> 		<strong>public</strong> <strong>interface</strong> Subcodes {
+<a name="227" href="#227">227</a> 
+<a name="228" href="#228">228</a> 			String SEQUENCE_TERMINATED = <span class="string">"wsrm:SequenceTerminated"</span>;
+<a name="229" href="#229">229</a> 
+<a name="230" href="#230">230</a> 			String UNKNOWN_SEQUENCE = <span class="string">"wsrm:UnknownSequence"</span>;
+<a name="231" href="#231">231</a> 
+<a name="232" href="#232">232</a> 			String INVALID_ACKNOWLEDGEMENT = <span class="string">"wsrm:InvalidAcknowledgement"</span>;
+<a name="233" href="#233">233</a> 
+<a name="234" href="#234">234</a> 			String MESSAGE_NUMBER_ROLEOVER = <span class="string">"wsrm:MessageNumberRollover"</span>;
+<a name="235" href="#235">235</a> 
+<a name="236" href="#236">236</a> 			String LAST_MESSAGE_NO_EXCEEDED = <span class="string">"wsrm:LastMessageNumberExceeded"</span>;
+<a name="237" href="#237">237</a> 
+<a name="238" href="#238">238</a> 			String CREATE_SEQUENCE_REFUSED = <span class="string">"wsrm:CreateSequenceRefused"</span>;
+<a name="239" href="#239">239</a> 
+<a name="240" href="#240">240</a> 		}
+<a name="241" href="#241">241</a> 
+<a name="242" href="#242">242</a> 		<strong>public</strong> <strong>interface</strong> FaultType {
+<a name="243" href="#243">243</a> 
+<a name="244" href="#244">244</a> 			<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> UNKNOWN_SEQUENCE = 1;
+<a name="245" href="#245">245</a> 
+<a name="246" href="#246">246</a> 			<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> MESSAGE_NUMBER_ROLLOVER = 2;
+<a name="247" href="#247">247</a> 
+<a name="248" href="#248">248</a> 			<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> INVALID_ACKNOWLEDGEMENT = 3;
+<a name="249" href="#249">249</a> 
+<a name="250" href="#250">250</a> 			<strong>public</strong> <strong>static</strong> <strong>final</strong> <strong>int</strong> CREATE_SEQUENCE_REFUSED = 4;
+<a name="251" href="#251">251</a> 
+<a name="252" href="#252">252</a> 		}
+<a name="253" href="#253">253</a> 	}
+<a name="254" href="#254">254</a> 
+<a name="255" href="#255">255</a> 	<strong>public</strong> <strong>interface</strong> Properties {
+<a name="256" href="#256">256</a> 		
+<a name="257" href="#257">257</a> 		String RetransmissionInterval = <span class="string">"RetransmissionInterval"</span>;
+<a name="258" href="#258">258</a> 		
+<a name="259" href="#259">259</a> 		String AcknowledgementInterval = <span class="string">"AcknowledgementInterval"</span>;
+<a name="260" href="#260">260</a> 		
+<a name="261" href="#261">261</a> 		String ExponentialBackoff = <span class="string">"ExponentialBackoff"</span>;
+<a name="262" href="#262">262</a> 		
+<a name="263" href="#263">263</a> 		String InactivityTimeout = <span class="string">"InactivityTimeout"</span>;
+<a name="264" href="#264">264</a> 		
+<a name="265" href="#265">265</a> 		String InactivityTimeoutMeasure = <span class="string">"InactivityTimeoutMeasure"</span>;
+<a name="266" href="#266">266</a> 		
+<a name="267" href="#267">267</a> 		String StorageManager = <span class="string">"StorageManager"</span>;
+<a name="268" href="#268">268</a> 		
+<a name="269" href="#269">269</a> 		String InOrderInvocation = <span class="string">"InvokeInOrder"</span>;
+<a name="270" href="#270">270</a> 		
+<a name="271" href="#271">271</a> 		<strong>public</strong> <strong>interface</strong> DefaultValues {
+<a name="272" href="#272">272</a> 			
+<a name="273" href="#273">273</a> 			<strong>int</strong> RetransmissionInterval = 20000;
+<a name="274" href="#274">274</a> 			
+<a name="275" href="#275">275</a> 			<strong>int</strong> AcknowledgementInterval = 4000;
+<a name="276" href="#276">276</a> 			
+<a name="277" href="#277">277</a> 			<strong>boolean</strong> ExponentialBackoff = <strong>true</strong>;
+<a name="278" href="#278">278</a> 			
+<a name="279" href="#279">279</a> 			<strong>int</strong> InactivityTimeout = -1;
+<a name="280" href="#280">280</a> 			
+<a name="281" href="#281">281</a> 			String InactivityTimeoutMeasure = <span class="string">"seconds"</span>;   <em class="comment">//this can be - seconds,minutes,hours,days</em>
+<a name="282" href="#282">282</a> 			
+<a name="283" href="#283">283</a> 			String StorageManager = <span class="string">"org.apache.sandesha2.storage.inmemory.InMemoryStorageManager"</span>;
+<a name="284" href="#284">284</a> 		
+<a name="285" href="#285">285</a> 			<strong>boolean</strong> InvokeInOrder = <strong>true</strong>;
+<a name="286" href="#286">286</a> 		}
+<a name="287" href="#287">287</a> 	}
+<a name="288" href="#288">288</a> 	
+<a name="289" href="#289">289</a> 	<strong>public</strong> <strong>interface</strong> ClientAPI {
+<a name="290" href="#290">290</a> 		String SEQUENCE_KEY = <span class="string">"Sandesha2ClientAPIPropertySequenceKey"</span>;
+<a name="291" href="#291">291</a> 		String SANDESHA_DEBUG_MODE = <span class="string">"Sandesha2ClientAPIPropertyDebugMode"</span>;
+<a name="292" href="#292">292</a> 		String OFFERED_SEQUENCE_ID = <span class="string">"Sandesha2ClientAPIPropertyOfferedSequenceId"</span>;
+<a name="293" href="#293">293</a> 		String LAST_MESSAGE = <span class="string">"Sandesha2ClientAPIPropertyWSRMLastMessage"</span>;
+<a name="294" href="#294">294</a> 		String AcksTo = <span class="string">"Sandesha2ClientAPIPropertyAcksTo"</span>;
+<a name="295" href="#295">295</a> 	}
+<a name="296" href="#296">296</a> 	
+<a name="297" href="#297">297</a> 	String IN_HANDLER_NAME = <span class="string">"SandeshaInHandler"</span>;
+<a name="298" href="#298">298</a> 
+<a name="299" href="#299">299</a> 	String OUT_HANDLER_NAME = <span class="string">"SandeshaOutHandler"</span>;
+<a name="300" href="#300">300</a> 
+<a name="301" href="#301">301</a> 	String GLOBAL_IN_HANDLER_NAME = <span class="string">"GlobalInHandler"</span>;
+<a name="302" href="#302">302</a> 
+<a name="303" href="#303">303</a> 	String APPLICATION_PROCESSING_DONE = <span class="string">"AppProcessingDone"</span>;
+<a name="304" href="#304">304</a> 
+<a name="305" href="#305">305</a> 	String ACK_WRITTEN = <span class="string">"AckWritten"</span>;
+<a name="306" href="#306">306</a> 
+<a name="307" href="#307">307</a> 	<strong>int</strong> INVOKER_SLEEP_TIME = 1000;
+<a name="308" href="#308">308</a> 
+<a name="309" href="#309">309</a> 	<strong>int</strong> SENDER_SLEEP_TIME = 1000;
+<a name="310" href="#310">310</a> 
+<a name="311" href="#311">311</a> 	<strong>int</strong> CLIENT_SLEEP_TIME = 10000;
+<a name="312" href="#312">312</a> 
+<a name="313" href="#313">313</a> 	<strong>int</strong> TERMINATE_DELAY = 1000;
+<a name="314" href="#314">314</a> 
+<a name="315" href="#315">315</a> 	String TEMP_SEQUENCE_ID = <span class="string">"uuid:tempID"</span>;
+<a name="316" href="#316">316</a> 
+<a name="317" href="#317">317</a> 	String ACK_PROCSSED = <span class="string">"AckProcessed"</span>;
+<a name="318" href="#318">318</a> 
+<a name="319" href="#319">319</a> 	String RM_ENABLE_KEY = <span class="string">"RMEnabled"</span>;
+<a name="320" href="#320">320</a> 
+<a name="321" href="#321">321</a> 	String STORAGE_MANAGER_IMPL = <span class="string">"org.apache.sandesha2.storage.inmemory.InMemoryStorageManager"</span>;
+<a name="322" href="#322">322</a> 
+<a name="323" href="#323">323</a> 	<strong>int</strong> MAXIMUM_RETRANSMISSION_ATTEMPTS = 5;
+<a name="324" href="#324">324</a> 	
+<a name="325" href="#325">325</a> 	String PROPERTY_FILE = <span class="string">"sandesha2.properties"</span>;
+<a name="326" href="#326">326</a> 
+<a name="327" href="#327">327</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/SandeshaException.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SandeshaException.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SandeshaException.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SandeshaException.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,47 @@
+<!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>SandeshaException xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/SandeshaException.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>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../org/apache/sandesha2/package-summary.html">org.apache.sandesha2</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="21" href="#21">21</a>  
+<a name="22" href="#22">22</a>  <em>/**<em>*</em></em>
+<a name="23" href="#23">23</a>  <em> * Exception class of Sandesa2.</em>
+<a name="24" href="#24">24</a>  <em> * </em>
+<a name="25" href="#25">25</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="26" href="#26">26</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="27" href="#27">27</a>  <em> */</em>
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <strong>public</strong> <strong>class</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a> <strong>extends</strong> AxisFault  {
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>public</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a> (String message) {
+<a name="32" href="#32">32</a>  		<strong>super</strong> (message);
+<a name="33" href="#33">33</a>  	}
+<a name="34" href="#34">34</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/SandeshaModule.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SandeshaModule.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SandeshaModule.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SandeshaModule.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,57 @@
+<!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>SandeshaModule xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/SandeshaModule.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>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../org/apache/sandesha2/package-summary.html">org.apache.sandesha2</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.engine.AxisConfiguration;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.modules.Module;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <em>/**<em>*</em></em>
+<a name="25" href="#25">25</a>  <em> * The Module class of Sandesha2.</em>
+<a name="26" href="#26">26</a>  <em> * </em>
+<a name="27" href="#27">27</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="28" href="#28">28</a>  <em> */</em>
+<a name="29" href="#29">29</a>  
+<a name="30" href="#30">30</a>  <strong>public</strong> <strong>class</strong> <a href="../../../org/apache/sandesha2/SandeshaModule.html">SandeshaModule</a> implements Module {
+<a name="31" href="#31">31</a>  
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  	<em class="comment">// initialize the module</em>
+<a name="34" href="#34">34</a>  	<strong>public</strong> <strong>void</strong> init(AxisConfiguration axisSystem) throws AxisFault {
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	}
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<em class="comment">// shutdown the module</em>
+<a name="40" href="#40">40</a>  	<strong>public</strong> <strong>void</strong> shutdown(AxisConfiguration axisSystem) throws AxisFault {
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	}
+<a name="43" href="#43">43</a>  	
+<a name="44" href="#44">44</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/TerminateManager.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/TerminateManager.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/TerminateManager.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/TerminateManager.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,191 @@
+<!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>TerminateManager xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/TerminateManager.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>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../org/apache/sandesha2/package-summary.html">org.apache.sandesha2</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> java.util.ArrayList;
+<a name="21" href="#21">21</a>  <strong>import</strong> java.util.Collection;
+<a name="22" href="#22">22</a>  <strong>import</strong> java.util.Iterator;
+<a name="23" href="#23">23</a>  
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.context.ConfigurationContext;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.sandesha2.storage.StorageManager;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.CreateSeqBeanMgr;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.NextMsgBeanMgr;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.SenderBeanMgr;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.SequencePropertyBeanMgr;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.InvokerBeanMgr;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.CreateSeqBean;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.NextMsgBean;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.SenderBean;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.SequencePropertyBean;
+<a name="35" href="#35">35</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.InvokerBean;
+<a name="36" href="#36">36</a>  <strong>import</strong> org.apache.sandesha2.util.PropertyManager;
+<a name="37" href="#37">37</a>  <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  <em>/**<em>*</em></em>
+<a name="40" href="#40">40</a>  <em> * Contains logic to remove all the storad data of a sequence.</em>
+<a name="41" href="#41">41</a>  <em> * Methods of this are called by sending side and the receiving side when appropriate</em>
+<a name="42" href="#42">42</a>  <em> * </em>
+<a name="43" href="#43">43</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="44" href="#44">44</a>  <em> */</em>
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  <strong>public</strong> <strong>class</strong> <a href="../../../org/apache/sandesha2/TerminateManager.html">TerminateManager</a> {
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	<em>/**<em>*</em></em>
+<a name="49" href="#49">49</a>  <em>	 * Called by the receiving side to remove data related to a sequence.</em>
+<a name="50" href="#50">50</a>  <em>	 * e.g. After sending the TerminateSequence message. Calling this methods will complete all</em>
+<a name="51" href="#51">51</a>  <em>	 * the data if InOrder invocation is not sequired.</em>
+<a name="52" href="#52">52</a>  <em>	 * </em>
+<a name="53" href="#53">53</a>  <em>	 * @param configContext</em>
+<a name="54" href="#54">54</a>  <em>	 * @param sequenceID</em>
+<a name="55" href="#55">55</a>  <em>	 * @throws SandeshaException</em>
+<a name="56" href="#56">56</a>  <em>	 */</em>
+<a name="57" href="#57">57</a>  	<strong>public</strong> <strong>static</strong> <strong>void</strong> terminateReceivingSide (ConfigurationContext configContext, String sequenceID) throws SandeshaException {
+<a name="58" href="#58">58</a>  		StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configContext);
+<a name="59" href="#59">59</a>  		NextMsgBeanMgr nextMsgBeanMgr = storageManager.getNextMsgBeanMgr();
+<a name="60" href="#60">60</a>  		
+<a name="61" href="#61">61</a>  		<em class="comment">//removing nextMsgMgr entries</em>
+<a name="62" href="#62">62</a>  		NextMsgBean findNextMsgBean = <strong>new</strong> <a href="../../../org/apache/sandesha2/storage/beans/NextMsgBean.html">NextMsgBean</a> ();
+<a name="63" href="#63">63</a>  		findNextMsgBean.setSequenceId(sequenceID);
+<a name="64" href="#64">64</a>  		Collection collection = nextMsgBeanMgr.find(findNextMsgBean);
+<a name="65" href="#65">65</a>  		Iterator iterator = collection.iterator();
+<a name="66" href="#66">66</a>  		<strong>while</strong> (iterator.hasNext()) {
+<a name="67" href="#67">67</a>  			NextMsgBean nextMsgBean = (NextMsgBean) iterator.next();
+<a name="68" href="#68">68</a>  			nextMsgBeanMgr.delete(nextMsgBean.getSequenceId());
+<a name="69" href="#69">69</a>  		}
+<a name="70" href="#70">70</a>  		
+<a name="71" href="#71">71</a>  		<strong>boolean</strong> inOrderInvocation = PropertyManager.getInstance().isInOrderInvocation();
+<a name="72" href="#72">72</a>  		<strong>if</strong>(inOrderInvocation) { 
+<a name="73" href="#73">73</a>  			terminateAfterInvocation(configContext,sequenceID);
+<a name="74" href="#74">74</a>  		}
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  	}
+<a name="77" href="#77">77</a>  	
+<a name="78" href="#78">78</a>  	<em>/**<em>*</em></em>
+<a name="79" href="#79">79</a>  <em>	 * When InOrder invocation is anabled this had to be called to clean the data left by the </em>
+<a name="80" href="#80">80</a>  <em>	 * above method. This had to be called after the Invocation of the Last Message.</em>
+<a name="81" href="#81">81</a>  <em>	 * </em>
+<a name="82" href="#82">82</a>  <em>	 * @param configContext</em>
+<a name="83" href="#83">83</a>  <em>	 * @param sequenceID</em>
+<a name="84" href="#84">84</a>  <em>	 * @throws SandeshaException</em>
+<a name="85" href="#85">85</a>  <em>	 */</em>
+<a name="86" href="#86">86</a>  	<strong>public</strong> <strong>static</strong> <strong>void</strong> terminateAfterInvocation (ConfigurationContext configContext, String sequenceID) throws SandeshaException {
+<a name="87" href="#87">87</a>  		StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configContext);
+<a name="88" href="#88">88</a>  		SequencePropertyBeanMgr sequencePropertyBeanMgr = storageManager.getSequencePropretyBeanMgr();
+<a name="89" href="#89">89</a>  		InvokerBeanMgr storageMapBeanMgr = storageManager.getStorageMapBeanMgr();
+<a name="90" href="#90">90</a>  
+<a name="91" href="#91">91</a>  		<em class="comment">//removing storageMap entries</em>
+<a name="92" href="#92">92</a>  		InvokerBean findStorageMapBean = <strong>new</strong> <a href="../../../org/apache/sandesha2/storage/beans/InvokerBean.html">InvokerBean</a> ();
+<a name="93" href="#93">93</a>  		findStorageMapBean.setSequenceId(sequenceID);
+<a name="94" href="#94">94</a>  		Collection collection = storageMapBeanMgr.find(findStorageMapBean);
+<a name="95" href="#95">95</a>  		Iterator iterator = collection.iterator();
+<a name="96" href="#96">96</a>  		<strong>while</strong> (iterator.hasNext()) {
+<a name="97" href="#97">97</a>  			InvokerBean storageMapBean = (InvokerBean) iterator.next();
+<a name="98" href="#98">98</a>  			storageMapBeanMgr.delete(storageMapBean.getKey());
+<a name="99" href="#99">99</a>  		}
+<a name="100" href="#100">100</a> 		
+<a name="101" href="#101">101</a> 		SequencePropertyBean allSequenceBean = sequencePropertyBeanMgr.retrieve(Sandesha2Constants.SequenceProperties.ALL_SEQUENCES,Sandesha2Constants.SequenceProperties.INCOMING_SEQUENCE_LIST);
+<a name="102" href="#102">102</a> 		ArrayList allSequenceList = (ArrayList) allSequenceBean.getValue();
+<a name="103" href="#103">103</a> 		
+<a name="104" href="#104">104</a> 		allSequenceList.remove(sequenceID);
+<a name="105" href="#105">105</a> 	}
+<a name="106" href="#106">106</a> 	
+<a name="107" href="#107">107</a> 	<strong>private</strong> <strong>static</strong> <strong>boolean</strong> isRequiredForResponseSide (String name) {
+<a name="108" href="#108">108</a> 		<strong>if</strong> (name==<strong>null</strong> &amp;&amp; name.equals(Sandesha2Constants.SequenceProperties.LAST_OUT_MESSAGE))
+<a name="109" href="#109">109</a> 			<strong>return</strong> false;
+<a name="110" href="#110">110</a> 		
+<a name="111" href="#111">111</a> 		<strong>if</strong> (name.equals(Sandesha2Constants.SequenceProperties.LAST_OUT_MESSAGE))
+<a name="112" href="#112">112</a> 			<strong>return</strong> false;
+<a name="113" href="#113">113</a> 		
+<a name="114" href="#114">114</a> 		<strong>return</strong> false;
+<a name="115" href="#115">115</a> 	}
+<a name="116" href="#116">116</a> 	
+<a name="117" href="#117">117</a> 	
+<a name="118" href="#118">118</a> 	<em>/**<em>*</em></em>
+<a name="119" href="#119">119</a> <em>	 * This is called by the sending side to clean data related to a sequence.</em>
+<a name="120" href="#120">120</a> <em>	 * e.g. after sending the TerminateSequence message.</em>
+<a name="121" href="#121">121</a> <em>	 * </em>
+<a name="122" href="#122">122</a> <em>	 * @param configContext</em>
+<a name="123" href="#123">123</a> <em>	 * @param sequenceID</em>
+<a name="124" href="#124">124</a> <em>	 * @throws SandeshaException</em>
+<a name="125" href="#125">125</a> <em>	 */</em>
+<a name="126" href="#126">126</a> 	<strong>public</strong> <strong>static</strong> <strong>void</strong> terminateSendingSide (ConfigurationContext configContext, String sequenceID) throws SandeshaException {
+<a name="127" href="#127">127</a> 		StorageManager storageManager = SandeshaUtil.getSandeshaStorageManager(configContext);
+<a name="128" href="#128">128</a> 		SequencePropertyBeanMgr sequencePropertyBeanMgr = storageManager.getSequencePropretyBeanMgr();
+<a name="129" href="#129">129</a> 		SenderBeanMgr retransmitterBeanMgr = storageManager.getRetransmitterBeanMgr();
+<a name="130" href="#130">130</a> 		CreateSeqBeanMgr createSeqBeanMgr = storageManager.getCreateSeqBeanMgr();
+<a name="131" href="#131">131</a> 		
+<a name="132" href="#132">132</a> 		SequencePropertyBean internalSequenceBean = sequencePropertyBeanMgr.retrieve(sequenceID,Sandesha2Constants.SequenceProperties.INTERNAL_SEQUENCE_ID);
+<a name="133" href="#133">133</a> 		<strong>if</strong> (internalSequenceBean==<strong>null</strong>)
+<a name="134" href="#134">134</a> 			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a> (<span class="string">"TempSequence entry not found"</span>);
+<a name="135" href="#135">135</a> 		
+<a name="136" href="#136">136</a> 		String internalSequenceId = (String) internalSequenceBean.getValue();
+<a name="137" href="#137">137</a> 		
+<a name="138" href="#138">138</a> 		<em class="comment">//removing retransmitterMgr entries</em>
+<a name="139" href="#139">139</a> 		SenderBean findRetransmitterBean = <strong>new</strong> <a href="../../../org/apache/sandesha2/storage/beans/SenderBean.html">SenderBean</a> ();
+<a name="140" href="#140">140</a> 		findRetransmitterBean.setInternalSequenceId(internalSequenceId);
+<a name="141" href="#141">141</a> 		Collection collection = retransmitterBeanMgr.find(findRetransmitterBean);
+<a name="142" href="#142">142</a> 		Iterator iterator = collection.iterator();
+<a name="143" href="#143">143</a> 		<strong>while</strong> (iterator.hasNext()) {
+<a name="144" href="#144">144</a> 			SenderBean retransmitterBean = (SenderBean) iterator.next();
+<a name="145" href="#145">145</a> 			retransmitterBeanMgr.delete(retransmitterBean.getMessageId());
+<a name="146" href="#146">146</a> 		}
+<a name="147" href="#147">147</a> 		
+<a name="148" href="#148">148</a> 		<em class="comment">//removing the createSeqMgrEntry</em>
+<a name="149" href="#149">149</a> 		CreateSeqBean findCreateSequenceBean = <strong>new</strong> <a href="../../../org/apache/sandesha2/storage/beans/CreateSeqBean.html">CreateSeqBean</a> ();
+<a name="150" href="#150">150</a> 		findCreateSequenceBean.setInternalSequenceId(internalSequenceId);
+<a name="151" href="#151">151</a> 		collection = createSeqBeanMgr.find(findCreateSequenceBean);
+<a name="152" href="#152">152</a> 		iterator = collection.iterator();
+<a name="153" href="#153">153</a> 		<strong>while</strong> (iterator.hasNext()) {
+<a name="154" href="#154">154</a> 			CreateSeqBean createSeqBean = (CreateSeqBean) iterator.next();
+<a name="155" href="#155">155</a> 			createSeqBeanMgr.delete(createSeqBean.getCreateSeqMsgId());
+<a name="156" href="#156">156</a> 		}
+<a name="157" href="#157">157</a> 		
+<a name="158" href="#158">158</a> 		<em class="comment">//removing sequence properties</em>
+<a name="159" href="#159">159</a> 		SequencePropertyBean findSequencePropertyBean1 = <strong>new</strong> <a href="../../../org/apache/sandesha2/storage/beans/SequencePropertyBean.html">SequencePropertyBean</a> ();
+<a name="160" href="#160">160</a> 		findSequencePropertyBean1.setSequenceId(internalSequenceId);
+<a name="161" href="#161">161</a> 		collection = sequencePropertyBeanMgr.find(findSequencePropertyBean1);
+<a name="162" href="#162">162</a> 		iterator = collection.iterator();
+<a name="163" href="#163">163</a> 		<strong>while</strong> (iterator.hasNext()) {
+<a name="164" href="#164">164</a> 			SequencePropertyBean sequencePropertyBean = (SequencePropertyBean) iterator.next();
+<a name="165" href="#165">165</a> 			sequencePropertyBeanMgr.delete(sequencePropertyBean.getSequenceId(),sequencePropertyBean.getName());
+<a name="166" href="#166">166</a> 		}
+<a name="167" href="#167">167</a> 		
+<a name="168" href="#168">168</a> 		SequencePropertyBean findSequencePropertyBean2 = <strong>new</strong> <a href="../../../org/apache/sandesha2/storage/beans/SequencePropertyBean.html">SequencePropertyBean</a> ();
+<a name="169" href="#169">169</a> 		findSequencePropertyBean2.setSequenceId(internalSequenceId);
+<a name="170" href="#170">170</a> 		collection = sequencePropertyBeanMgr.find(findSequencePropertyBean2);
+<a name="171" href="#171">171</a> 		iterator = collection.iterator();
+<a name="172" href="#172">172</a> 		<strong>while</strong> (iterator.hasNext()) {
+<a name="173" href="#173">173</a> 			SequencePropertyBean sequencePropertyBean = (SequencePropertyBean) iterator.next();
+<a name="174" href="#174">174</a> 			sequencePropertyBeanMgr.delete(sequencePropertyBean.getSequenceId(),sequencePropertyBean.getName());
+<a name="175" href="#175">175</a> 		}
+<a name="176" href="#176">176</a> 		
+<a name="177" href="#177">177</a> 	}
+<a name="178" href="#178">178</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/handlers/SandeshaGlobalInHandler.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/handlers/SandeshaGlobalInHandler.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/handlers/SandeshaGlobalInHandler.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/handlers/SandeshaGlobalInHandler.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,264 @@
+<!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>SandeshaGlobalInHandler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/handlers/SandeshaGlobalInHandler.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>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/handlers/package-summary.html">org.apache.sandesha2.handlers</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> java.util.ArrayList;
+<a name="21" href="#21">21</a>  <strong>import</strong> java.util.Iterator;
+<a name="22" href="#22">22</a>  
+<a name="23" href="#23">23</a>  <strong>import</strong> javax.xml.namespace.QName;
+<a name="24" href="#24">24</a>  
+<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.context.ConfigurationContext;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.context.MessageContext;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.context.ServiceContext;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.axis2.engine.AxisEngine;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.axis2.handlers.AbstractHandler;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.axis2.soap.SOAPBody;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.commons.logging.Log;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.commons.logging.LogFactory;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="35" href="#35">35</a>  <strong>import</strong> org.apache.sandesha2.RMMsgContext;
+<a name="36" href="#36">36</a>  <strong>import</strong> org.apache.sandesha2.SandeshaException;
+<a name="37" href="#37">37</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants.ClientAPI;
+<a name="38" href="#38">38</a>  <strong>import</strong> org.apache.sandesha2.msgprocessors.ApplicationMsgProcessor;
+<a name="39" href="#39">39</a>  <strong>import</strong> org.apache.sandesha2.storage.StorageManager;
+<a name="40" href="#40">40</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.SequencePropertyBeanMgr;
+<a name="41" href="#41">41</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.SequencePropertyBean;
+<a name="42" href="#42">42</a>  <strong>import</strong> org.apache.sandesha2.util.FaultManager;
+<a name="43" href="#43">43</a>  <strong>import</strong> org.apache.sandesha2.util.MsgInitializer;
+<a name="44" href="#44">44</a>  <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="45" href="#45">45</a>  <strong>import</strong> org.apache.sandesha2.wsrm.Sequence;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  <em>/**<em>*</em></em>
+<a name="48" href="#48">48</a>  <em> * The Global handler of Sandesha2. This is used to perform things that should be done before</em>
+<a name="49" href="#49">49</a>  <em> * diapatching such as duplicate detection.</em>
+<a name="50" href="#50">50</a>  <em> * </em>
+<a name="51" href="#51">51</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="52" href="#52">52</a>  <em> */</em>
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/handlers/SandeshaGlobalInHandler.html">SandeshaGlobalInHandler</a> <strong>extends</strong> AbstractHandler {
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>  	<strong>protected</strong> Log log = LogFactory.getLog(SandeshaGlobalInHandler.<strong>class</strong>
+<a name="57" href="#57">57</a>  			.getName());
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  	<strong>public</strong> <strong>void</strong> invoke(MessageContext msgContext) throws AxisFault {
+<a name="60" href="#60">60</a>  
+<a name="61" href="#61">61</a>  		<em class="comment">//Quitting the message with minimum processing if not intended for RM.</em>
+<a name="62" href="#62">62</a>  		<strong>boolean</strong> isRMGlobalMessage = SandeshaUtil.isRMGlobalMessage(msgContext);
+<a name="63" href="#63">63</a>  		<strong>if</strong> (!isRMGlobalMessage) {
+<a name="64" href="#64">64</a>  			<strong>return</strong>;
+<a name="65" href="#65">65</a>  		}
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  		FaultManager faultManager = <strong>new</strong> <a href="../../../../org/apache/sandesha2/util/FaultManager.html">FaultManager</a>();
+<a name="68" href="#68">68</a>  		RMMsgContext faultMessageContext = faultManager
+<a name="69" href="#69">69</a>  				.checkForPossibleFaults(msgContext);
+<a name="70" href="#70">70</a>  		<strong>if</strong> (faultMessageContext != <strong>null</strong>) {
+<a name="71" href="#71">71</a>  			ConfigurationContext configurationContext = msgContext
+<a name="72" href="#72">72</a>  					.getSystemContext();
+<a name="73" href="#73">73</a>  			AxisEngine engine = <strong>new</strong> AxisEngine(configurationContext);
+<a name="74" href="#74">74</a>  			engine.send(faultMessageContext.getMessageContext());
+<a name="75" href="#75">75</a>  			<strong>return</strong>;
+<a name="76" href="#76">76</a>  		}
+<a name="77" href="#77">77</a>  
+<a name="78" href="#78">78</a>  		RMMsgContext rmMessageContext = <a href="../../../../org/apache/sandesha2/util/MsgInitializer.html">MsgInitializer</a>
+<a name="79" href="#79">79</a>  				.initializeMessage(msgContext);
+<a name="80" href="#80">80</a>  
+<a name="81" href="#81">81</a>  		ConfigurationContext context = rmMessageContext.getMessageContext()
+<a name="82" href="#82">82</a>  				.getSystemContext();
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		ServiceContext serviceContext = msgContext.getServiceContext();
+<a name="85" href="#85">85</a>  		Object debug = <strong>null</strong>;
+<a name="86" href="#86">86</a>  		<strong>if</strong> (serviceContext != <strong>null</strong>) {
+<a name="87" href="#87">87</a>  			debug = serviceContext.getProperty(ClientAPI.SANDESHA_DEBUG_MODE);
+<a name="88" href="#88">88</a>  			<strong>if</strong> (debug != <strong>null</strong> &amp;&amp; <span class="string">"on"</span>.equals(debug)) {
+<a name="89" href="#89">89</a>  				System.out.println(<span class="string">"DEBUG: SandeshaGlobalInHandler got a '"</span>
+<a name="90" href="#90">90</a>  						+ SandeshaUtil.getMessageTypeString(rmMessageContext
+<a name="91" href="#91">91</a>  								.getMessageType()) + <span class="string">"' message."</span>);
+<a name="92" href="#92">92</a>  			}
+<a name="93" href="#93">93</a>  		}
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>  		<em class="comment">//Dropping duplicates</em>
+<a name="96" href="#96">96</a>  		<strong>boolean</strong> dropped = dropIfDuplicate(rmMessageContext);
+<a name="97" href="#97">97</a>  		<strong>if</strong> (dropped) {
+<a name="98" href="#98">98</a>  			<strong>if</strong> (debug != <strong>null</strong> &amp;&amp; <span class="string">"on"</span>.equals(debug)) {
+<a name="99" href="#99">99</a>  				System.out.println(<span class="string">"DEBUG: SandeshaGlobalInHandler DROPPED a '"</span>
+<a name="100" href="#100">100</a> 						+ SandeshaUtil.getMessageTypeString(rmMessageContext
+<a name="101" href="#101">101</a> 								.getMessageType()) + <span class="string">"' message."</span>);
+<a name="102" href="#102">102</a> 			}
+<a name="103" href="#103">103</a> 
+<a name="104" href="#104">104</a> 			processDroppedMessage(rmMessageContext);
+<a name="105" href="#105">105</a> 			<strong>return</strong>;
+<a name="106" href="#106">106</a> 		}
+<a name="107" href="#107">107</a> 
+<a name="108" href="#108">108</a> 		<em class="comment">//Process if global processing possible. - Currently none</em>
+<a name="109" href="#109">109</a> 		<strong>if</strong> (SandeshaUtil.isGloballyProcessableMessageType(rmMessageContext
+<a name="110" href="#110">110</a> 				.getMessageType())) {
+<a name="111" href="#111">111</a> 			doGlobalProcessing(rmMessageContext);
+<a name="112" href="#112">112</a> 		}
+<a name="113" href="#113">113</a> 	}
+<a name="114" href="#114">114</a> 
+<a name="115" href="#115">115</a> 	<strong>private</strong> <strong>boolean</strong> dropIfDuplicate(<a href="../../../../org/apache/sandesha2/RMMsgContext.html">RMMsgContext</a> rmMsgContext)
+<a name="116" href="#116">116</a> 			throws <a href="../../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a> {
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</a> 		<strong>boolean</strong> drop = false;
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a> 		<strong>if</strong> (rmMsgContext.getMessageType() == Sandesha2Constants.MessageTypes.APPLICATION) {
+<a name="121" href="#121">121</a> 
+<a name="122" href="#122">122</a> 			Sequence sequence = (Sequence) rmMsgContext
+<a name="123" href="#123">123</a> 					.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
+<a name="124" href="#124">124</a> 			String sequenceId = <strong>null</strong>;
+<a name="125" href="#125">125</a> 
+<a name="126" href="#126">126</a> 			<strong>if</strong> (sequence != <strong>null</strong>) {
+<a name="127" href="#127">127</a> 				sequenceId = sequence.getIdentifier().getIdentifier();
+<a name="128" href="#128">128</a> 			}
+<a name="129" href="#129">129</a> 
+<a name="130" href="#130">130</a> 			<strong>long</strong> msgNo = sequence.getMessageNumber().getMessageNumber();
+<a name="131" href="#131">131</a> 
+<a name="132" href="#132">132</a> 			<strong>if</strong> (sequenceId != <strong>null</strong> &amp;&amp; msgNo > 0) {
+<a name="133" href="#133">133</a> 				StorageManager storageManager = <a href="../../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="134" href="#134">134</a> 						.getSandeshaStorageManager(rmMsgContext
+<a name="135" href="#135">135</a> 								.getMessageContext().getSystemContext());
+<a name="136" href="#136">136</a> 				SequencePropertyBeanMgr seqPropMgr = storageManager
+<a name="137" href="#137">137</a> 						.getSequencePropretyBeanMgr();
+<a name="138" href="#138">138</a> 				SequencePropertyBean receivedMsgsBean = seqPropMgr.retrieve(
+<a name="139" href="#139">139</a> 						sequenceId,
+<a name="140" href="#140">140</a> 						Sandesha2Constants.SequenceProperties.RECEIVED_MESSAGES);
+<a name="141" href="#141">141</a> 				<strong>if</strong> (receivedMsgsBean != <strong>null</strong>) {
+<a name="142" href="#142">142</a> 					String receivedMsgStr = (String) receivedMsgsBean
+<a name="143" href="#143">143</a> 							.getValue();
+<a name="144" href="#144">144</a> 					ArrayList msgNoArrList = <a href="../../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="145" href="#145">145</a> 							.getSplittedMsgNoArraylist(receivedMsgStr);
+<a name="146" href="#146">146</a> 
+<a name="147" href="#147">147</a> 					Iterator iterator = msgNoArrList.iterator();
+<a name="148" href="#148">148</a> 					<strong>while</strong> (iterator.hasNext()) {
+<a name="149" href="#149">149</a> 						String temp = (String) iterator.next();
+<a name="150" href="#150">150</a> 						String msgNoStr = <strong>new</strong> Long(msgNo).toString();
+<a name="151" href="#151">151</a> 						<strong>if</strong> (msgNoStr.equals(temp)) {
+<a name="152" href="#152">152</a> 							drop = <strong>true</strong>;
+<a name="153" href="#153">153</a> 						}
+<a name="154" href="#154">154</a> 					}
+<a name="155" href="#155">155</a> 					
+<a name="156" href="#156">156</a> 				}
+<a name="157" href="#157">157</a> 
+<a name="158" href="#158">158</a> 				<strong>if</strong> (drop == false) {
+<a name="159" href="#159">159</a> 					<em class="comment">//Checking for RM specific EMPTY_BODY LASTMESSAGE.</em>
+<a name="160" href="#160">160</a> 					SOAPBody body = rmMsgContext.getSOAPEnvelope().getBody();
+<a name="161" href="#161">161</a> 					<strong>boolean</strong> emptyBody = false;
+<a name="162" href="#162">162</a> 					<strong>if</strong> (body.getChildElements().hasNext() == false) {
+<a name="163" href="#163">163</a> 						emptyBody = <strong>true</strong>;
+<a name="164" href="#164">164</a> 					}
+<a name="165" href="#165">165</a> 
+<a name="166" href="#166">166</a> 					<strong>if</strong> (emptyBody) {
+<a name="167" href="#167">167</a> 						<strong>boolean</strong> lastMessage = false;
+<a name="168" href="#168">168</a> 						<strong>if</strong> (sequence.getLastMessage() != <strong>null</strong>) {
+<a name="169" href="#169">169</a> 							System.out
+<a name="170" href="#170">170</a> 									.println(<span class="string">"Empty Body Last Message Received"</span>);
+<a name="171" href="#171">171</a> 							drop = <strong>true</strong>;
+<a name="172" href="#172">172</a> 
+<a name="173" href="#173">173</a> 							<strong>if</strong> (receivedMsgsBean == <strong>null</strong>) {
+<a name="174" href="#174">174</a> 								receivedMsgsBean = <strong>new</strong> <a href="../../../../org/apache/sandesha2/storage/beans/SequencePropertyBean.html">SequencePropertyBean</a>(
+<a name="175" href="#175">175</a> 										sequenceId,
+<a name="176" href="#176">176</a> 										Sandesha2Constants.SequenceProperties.RECEIVED_MESSAGES,
+<a name="177" href="#177">177</a> 										<span class="string">""</span>);
+<a name="178" href="#178">178</a> 								seqPropMgr.insert(receivedMsgsBean);
+<a name="179" href="#179">179</a> 							}
+<a name="180" href="#180">180</a> 
+<a name="181" href="#181">181</a> 							String receivedMsgStr = (String) receivedMsgsBean
+<a name="182" href="#182">182</a> 									.getValue();
+<a name="183" href="#183">183</a> 							<strong>if</strong> (receivedMsgStr != <span class="string">""</span> &amp;&amp; receivedMsgStr != <strong>null</strong>)
+<a name="184" href="#184">184</a> 								receivedMsgStr = receivedMsgStr + <span class="string">","</span>
+<a name="185" href="#185">185</a> 										+ Long.toString(msgNo);
+<a name="186" href="#186">186</a> 							<strong>else</strong>
+<a name="187" href="#187">187</a> 								receivedMsgStr = Long.toString(msgNo);
+<a name="188" href="#188">188</a> 
+<a name="189" href="#189">189</a> 							receivedMsgsBean.setValue(receivedMsgStr);
+<a name="190" href="#190">190</a> 							seqPropMgr.update(receivedMsgsBean);
+<a name="191" href="#191">191</a> 
+<a name="192" href="#192">192</a> 							ApplicationMsgProcessor ackProcessor = <strong>new</strong> <a href="../../../../org/apache/sandesha2/msgprocessors/ApplicationMsgProcessor.html">ApplicationMsgProcessor</a>();
+<a name="193" href="#193">193</a> 							ackProcessor.sendAckIfNeeded(rmMsgContext,
+<a name="194" href="#194">194</a> 									receivedMsgStr);
+<a name="195" href="#195">195</a> 
+<a name="196" href="#196">196</a> 						}
+<a name="197" href="#197">197</a> 					}
+<a name="198" href="#198">198</a> 				}
+<a name="199" href="#199">199</a> 			}
+<a name="200" href="#200">200</a> 		}
+<a name="201" href="#201">201</a> 
+<a name="202" href="#202">202</a> 		<strong>if</strong> (drop) {
+<a name="203" href="#203">203</a> 			rmMsgContext.getMessageContext().setPausedTrue(getName());
+<a name="204" href="#204">204</a> 			<strong>return</strong> <strong>true</strong>;
+<a name="205" href="#205">205</a> 		}
+<a name="206" href="#206">206</a> 
+<a name="207" href="#207">207</a> 		<strong>return</strong> false;
+<a name="208" href="#208">208</a> 	}
+<a name="209" href="#209">209</a> 
+<a name="210" href="#210">210</a> 	<strong>private</strong> <strong>void</strong> processDroppedMessage(<a href="../../../../org/apache/sandesha2/RMMsgContext.html">RMMsgContext</a> rmMsgContext)
+<a name="211" href="#211">211</a> 			throws <a href="../../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a> {
+<a name="212" href="#212">212</a> 		<strong>if</strong> (rmMsgContext.getMessageType() == Sandesha2Constants.MessageTypes.APPLICATION) {
+<a name="213" href="#213">213</a> 			Sequence sequence = (Sequence) rmMsgContext
+<a name="214" href="#214">214</a> 					.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
+<a name="215" href="#215">215</a> 			String sequenceId = <strong>null</strong>;
+<a name="216" href="#216">216</a> 
+<a name="217" href="#217">217</a> 			<strong>if</strong> (sequence != <strong>null</strong>) {
+<a name="218" href="#218">218</a> 				sequenceId = sequence.getIdentifier().getIdentifier();
+<a name="219" href="#219">219</a> 			}
+<a name="220" href="#220">220</a> 
+<a name="221" href="#221">221</a> 			StorageManager storageManager = <a href="../../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="222" href="#222">222</a> 					.getSandeshaStorageManager(rmMsgContext.getMessageContext()
+<a name="223" href="#223">223</a> 							.getSystemContext());
+<a name="224" href="#224">224</a> 			SequencePropertyBeanMgr seqPropMgr = storageManager
+<a name="225" href="#225">225</a> 					.getSequencePropretyBeanMgr();
+<a name="226" href="#226">226</a> 			SequencePropertyBean receivedMsgsBean = seqPropMgr.retrieve(
+<a name="227" href="#227">227</a> 					sequenceId, Sandesha2Constants.SequenceProperties.RECEIVED_MESSAGES);
+<a name="228" href="#228">228</a> 			String receivedMsgStr = (String) receivedMsgsBean.getValue();
+<a name="229" href="#229">229</a> 
+<a name="230" href="#230">230</a> 			ApplicationMsgProcessor ackProcessor = <strong>new</strong> <a href="../../../../org/apache/sandesha2/msgprocessors/ApplicationMsgProcessor.html">ApplicationMsgProcessor</a>();
+<a name="231" href="#231">231</a> 			<em class="comment">//Even though the duplicate message is dropped, hv to send the ack</em>
+<a name="232" href="#232">232</a> 			<em class="comment">// if needed.</em>
+<a name="233" href="#233">233</a> 			ackProcessor.sendAckIfNeeded(rmMsgContext, receivedMsgStr);
+<a name="234" href="#234">234</a> 
+<a name="235" href="#235">235</a> 		}
+<a name="236" href="#236">236</a> 	}
+<a name="237" href="#237">237</a> 
+<a name="238" href="#238">238</a> 	<strong>private</strong> <strong>void</strong> doGlobalProcessing(<a href="../../../../org/apache/sandesha2/RMMsgContext.html">RMMsgContext</a> rmMsgCtx)
+<a name="239" href="#239">239</a> 			throws <a href="../../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a> {
+<a name="240" href="#240">240</a> 		<strong>switch</strong> (rmMsgCtx.getMessageType()) {
+<a name="241" href="#241">241</a> 		<strong>case</strong> Sandesha2Constants.MessageTypes.ACK:
+<a name="242" href="#242">242</a> 			rmMsgCtx.setRelatesTo(<strong>null</strong>); <em class="comment">//Removing the relatesTo part from</em>
+<a name="243" href="#243">243</a> 		<em class="comment">// ackMessageIf present.</em>
+<a name="244" href="#244">244</a> 		<em class="comment">//Some Frameworks tend to send this.</em>
+<a name="245" href="#245">245</a> 		}
+<a name="246" href="#246">246</a> 	}
+<a name="247" href="#247">247</a> 
+<a name="248" href="#248">248</a> 	<strong>public</strong> QName getName() {
+<a name="249" href="#249">249</a> 		<strong>return</strong> <strong>new</strong> QName(Sandesha2Constants.GLOBAL_IN_HANDLER_NAME);
+<a name="250" href="#250">250</a> 	}
+<a name="251" href="#251">251</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/handlers/SandeshaInHandler.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/handlers/SandeshaInHandler.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/handlers/SandeshaInHandler.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/handlers/SandeshaInHandler.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,126 @@
+<!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>SandeshaInHandler xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/handlers/SandeshaInHandler.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>  
+<a name="18" href="#18">18</a>  <strong>package</strong> <a href="../../../../org/apache/sandesha2/handlers/package-summary.html">org.apache.sandesha2.handlers</a>;
+<a name="19" href="#19">19</a>  
+<a name="20" href="#20">20</a>  <strong>import</strong> javax.xml.namespace.QName;
+<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.description.AxisService;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.description.Parameter;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.engine.AxisEngine;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.handlers.AbstractHandler;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.commons.logging.Log;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.commons.logging.LogFactory;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.sandesha2.SandeshaException;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.sandesha2.RMMsgContext;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants.ClientAPI;
+<a name="35" href="#35">35</a>  <strong>import</strong> org.apache.sandesha2.msgprocessors.MsgProcessor;
+<a name="36" href="#36">36</a>  <strong>import</strong> org.apache.sandesha2.msgprocessors.MsgProcessorFactory;
+<a name="37" href="#37">37</a>  <strong>import</strong> org.apache.sandesha2.util.FaultManager;
+<a name="38" href="#38">38</a>  <strong>import</strong> org.apache.sandesha2.util.MsgInitializer;
+<a name="39" href="#39">39</a>  <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<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 invoked in the inFlow of an RM endpoint. This is responsible for selecting an suitable</em>
+<a name="43" href="#43">43</a>  <em> * message processor and letting it process the message.</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/handlers/SandeshaInHandler.html">SandeshaInHandler</a> <strong>extends</strong> AbstractHandler {
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  	<strong>protected</strong> Log log = LogFactory.getLog(SandeshaInHandler.<strong>class</strong>.getName());
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>public</strong> QName getName() {
+<a name="53" href="#53">53</a>  		<strong>return</strong> <strong>new</strong> QName(Sandesha2Constants.IN_HANDLER_NAME);
+<a name="54" href="#54">54</a>  	}
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>  	<strong>public</strong> <strong>void</strong> invoke(MessageContext msgCtx) throws AxisFault {
+<a name="57" href="#57">57</a>  	
+<a name="58" href="#58">58</a>  		ConfigurationContext context = msgCtx.getSystemContext();
+<a name="59" href="#59">59</a>  		<strong>if</strong> (context == <strong>null</strong>)
+<a name="60" href="#60">60</a>  			<strong>throw</strong> <strong>new</strong> AxisFault(<span class="string">"ConfigurationContext is null"</span>);
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  		String DONE = (String) msgCtx
+<a name="63" href="#63">63</a>  				.getProperty(Sandesha2Constants.APPLICATION_PROCESSING_DONE);
+<a name="64" href="#64">64</a>  		<strong>if</strong> (<strong>null</strong> != DONE &amp;&amp; <span class="string">"true"</span>.equals(DONE))
+<a name="65" href="#65">65</a>  			<strong>return</strong>;
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  		FaultManager faultManager = <strong>new</strong> <a href="../../../../org/apache/sandesha2/util/FaultManager.html">FaultManager</a>();
+<a name="68" href="#68">68</a>  		RMMsgContext faultMessageContext = faultManager
+<a name="69" href="#69">69</a>  				.checkForPossibleFaults(msgCtx);
+<a name="70" href="#70">70</a>  		<strong>if</strong> (faultMessageContext != <strong>null</strong>) {
+<a name="71" href="#71">71</a>  			AxisEngine engine = <strong>new</strong> AxisEngine(context);
+<a name="72" href="#72">72</a>  			engine.send(faultMessageContext.getMessageContext());
+<a name="73" href="#73">73</a>  			<strong>return</strong>;
+<a name="74" href="#74">74</a>  		}
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  		AxisService axisService = msgCtx.getAxisService();
+<a name="77" href="#77">77</a>  		<strong>if</strong> (axisService == <strong>null</strong>)
+<a name="78" href="#78">78</a>  			<strong>throw</strong> <strong>new</strong> AxisFault(<span class="string">"AxisService is null"</span>);
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  		RMMsgContext rmMsgCtx = <strong>null</strong>;
+<a name="81" href="#81">81</a>  		<strong>try</strong> {
+<a name="82" href="#82">82</a>  			rmMsgCtx = MsgInitializer.initializeMessage(msgCtx);
+<a name="83" href="#83">83</a>  		} <strong>catch</strong> (SandeshaException ex) {
+<a name="84" href="#84">84</a>  			<strong>throw</strong> <strong>new</strong> AxisFault(<span class="string">"Cant initialize the message"</span>);
+<a name="85" href="#85">85</a>  		}
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  		ServiceContext serviceContext = msgCtx.getServiceContext();
+<a name="88" href="#88">88</a>  		Object debug = <strong>null</strong>;
+<a name="89" href="#89">89</a>  		<strong>if</strong> (serviceContext != <strong>null</strong>) {
+<a name="90" href="#90">90</a>  			debug = serviceContext.getProperty(ClientAPI.SANDESHA_DEBUG_MODE);
+<a name="91" href="#91">91</a>  			<strong>if</strong> (debug != <strong>null</strong> &amp;&amp; <span class="string">"on"</span>.equals(debug)) {
+<a name="92" href="#92">92</a>  				System.out.println(<span class="string">"DEBUG: SandeshaInHandler got a '"</span>
+<a name="93" href="#93">93</a>  						+ SandeshaUtil.getMessageTypeString(rmMsgCtx
+<a name="94" href="#94">94</a>  								.getMessageType()) + <span class="string">"' message."</span>);
+<a name="95" href="#95">95</a>  			}
+<a name="96" href="#96">96</a>  		}
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  		MsgProcessor msgProcessor = <a href="../../../../org/apache/sandesha2/msgprocessors/MsgProcessorFactory.html">MsgProcessorFactory</a>
+<a name="99" href="#99">99</a>  				.getMessageProcessor(rmMsgCtx.getMessageType());
+<a name="100" href="#100">100</a> 
+<a name="101" href="#101">101</a> 		<strong>if</strong> (msgProcessor == <strong>null</strong>)
+<a name="102" href="#102">102</a> 			<strong>throw</strong> <strong>new</strong> AxisFault(<span class="string">"Cant find a suitable message processor"</span>);
+<a name="103" href="#103">103</a> 
+<a name="104" href="#104">104</a> 		<strong>try</strong> {
+<a name="105" href="#105">105</a> 			msgProcessor.processMessage(rmMsgCtx);
+<a name="106" href="#106">106</a> 		} <strong>catch</strong> (SandeshaException se) {
+<a name="107" href="#107">107</a> 			se.printStackTrace();
+<a name="108" href="#108">108</a> 			<strong>throw</strong> <strong>new</strong> AxisFault(<span class="string">"Error in processing the message"</span>);
+<a name="109" href="#109">109</a> 		}
+<a name="110" href="#110">110</a> 
+<a name="111" href="#111">111</a> 	}
+<a name="112" href="#112">112</a> 
+<a name="113" href="#113">113</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