ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r349924 [21/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/wsrm/Nack.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Nack.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Nack.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Nack.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,111 @@
+<!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>Nack xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/Nack.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> org.apache.axis2.om.OMElement;
+<a name="20" href="#20">20</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="21" href="#21">21</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="24" href="#24">24</a>  
+<a name="25" href="#25">25</a>  <em>/**<em>*</em></em>
+<a name="26" href="#26">26</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="27" href="#27">27</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="28" href="#28">28</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="29" href="#29">29</a>  <em> */</em>
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/Nack.html">Nack</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="32" href="#32">32</a>  	<strong>private</strong> OMElement nackElement;
+<a name="33" href="#33">33</a>  	<strong>private</strong> <strong>long</strong> nackNumber;
+<a name="34" href="#34">34</a>  	
+<a name="35" href="#35">35</a>  	SOAPFactory factory;
+<a name="36" href="#36">36</a>  	
+<a name="37" href="#37">37</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="38" href="#38">38</a>  	
+<a name="39" href="#39">39</a>  		
+<a name="40" href="#40">40</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Nack.html">Nack</a>(SOAPFactory factory){
+<a name="41" href="#41">41</a>  		<strong>this</strong>.factory = factory;
+<a name="42" href="#42">42</a>  		rmNamespace = factory.createOMNamespace(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="43" href="#43">43</a>  		nackElement = factory.createOMElement(
+<a name="44" href="#44">44</a>  				Sandesha2Constants.WSRM.NACK,rmNamespace);
+<a name="45" href="#45">45</a>  	}
+<a name="46" href="#46">46</a>  	
+<a name="47" href="#47">47</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="48" href="#48">48</a>  		<strong>return</strong> nackElement;
+<a name="49" href="#49">49</a>  	}
+<a name="50" href="#50">50</a>  	
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>public</strong> Object fromOMElement(OMElement nackElement) throws OMException{
+<a name="53" href="#53">53</a>  		<em class="comment">/*<em class="comment">OMElement nackPart = sequenceAckElement.getFirstChildWithName(</em></em>
+<a name="54" href="#54">54</a>  <em class="comment">				new QName (Sandesha2Constants.WSRM.NS_URI_RM,Sandesha2Constants.WSRM.NACK));*/</em>
+<a name="55" href="#55">55</a>  		
+<a name="56" href="#56">56</a>  		<strong>if</strong> (nackElement==<strong>null</strong>)
+<a name="57" href="#57">57</a>  			<strong>throw</strong> <strong>new</strong> OMException (<span class="string">"Passed seq ack element does not contain a nack part"</span>);
+<a name="58" href="#58">58</a>  		
+<a name="59" href="#59">59</a>  		<strong>try</strong> {
+<a name="60" href="#60">60</a>  			nackNumber = Long.parseLong(nackElement.getText());
+<a name="61" href="#61">61</a>  		}<strong>catch</strong> (Exception ex ) {
+<a name="62" href="#62">62</a>  			<strong>throw</strong> <strong>new</strong> OMException (<span class="string">"Nack element does not contain a valid long value"</span>);
+<a name="63" href="#63">63</a>  		}
+<a name="64" href="#64">64</a>  		
+<a name="65" href="#65">65</a>  		nackElement = factory.createOMElement(
+<a name="66" href="#66">66</a>  				Sandesha2Constants.WSRM.NACK,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 sequenceAckElement) throws OMException {
+<a name="72" href="#72">72</a>  		<strong>if</strong> (sequenceAckElement==<strong>null</strong>)
+<a name="73" href="#73">73</a>  			<strong>throw</strong> <strong>new</strong> OMException (<span class="string">"Cant set the nack part since the seq ack element is null"</span>);
+<a name="74" href="#74">74</a>  		
+<a name="75" href="#75">75</a>  		<strong>if</strong> (nackNumber&lt;=0)
+<a name="76" href="#76">76</a>  			<strong>throw</strong> <strong>new</strong> OMException (<span class="string">"Cant set the nack part since the nack number does not have a valid value"</span>);
+<a name="77" href="#77">77</a>  		
+<a name="78" href="#78">78</a>  		<strong>if</strong> (nackElement==<strong>null</strong>) 
+<a name="79" href="#79">79</a>  		    <strong>throw</strong> <strong>new</strong> OMException (<span class="string">"Cant set the nack part since the element is null"</span>);
+<a name="80" href="#80">80</a>  		
+<a name="81" href="#81">81</a>  		nackElement.setText(Long.toString(nackNumber));
+<a name="82" href="#82">82</a>  		sequenceAckElement.addChild(nackElement);
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		nackElement = factory.createOMElement(
+<a name="85" href="#85">85</a>  				Sandesha2Constants.WSRM.NACK,rmNamespace);
+<a name="86" href="#86">86</a>  		
+<a name="87" href="#87">87</a>  		<strong>return</strong> sequenceAckElement;
+<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>long</strong> getNackNumber() {
+<a name="91" href="#91">91</a>  		<strong>return</strong> nackNumber;
+<a name="92" href="#92">92</a>  	}
+<a name="93" href="#93">93</a>  
+<a name="94" href="#94">94</a>  	<strong>public</strong> <strong>void</strong> setNackNumber(<strong>long</strong> nackNumber) {
+<a name="95" href="#95">95</a>  		<strong>this</strong>.nackNumber = nackNumber;
+<a name="96" href="#96">96</a>  	}
+<a name="97" href="#97">97</a>  	
+<a name="98" href="#98">98</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/RMElements.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/RMElements.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/RMElements.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/RMElements.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,201 @@
+<!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>RMElements xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/RMElements.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.soap.SOAP11Constants;
+<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.sandesha2.Sandesha2Constants;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.sandesha2.util.SOAPAbstractFactory;
+<a name="28" href="#28">28</a>  
+<a name="29" href="#29">29</a>  <em>/**<em>*</em></em>
+<a name="30" href="#30">30</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="31" href="#31">31</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="32" href="#32">32</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="33" href="#33">33</a>  <em> */</em>
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/RMElements.html">RMElements</a> {
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Sequence.html">Sequence</a> sequence = <strong>null</strong>;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceAcknowledgement.html">SequenceAcknowledgement</a> sequenceAcknowledgement = <strong>null</strong>;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequence.html">CreateSequence</a> createSequence = <strong>null</strong>;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceResponse.html">CreateSequenceResponse</a> createSequenceResponse = <strong>null</strong>;
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/TerminateSequence.html">TerminateSequence</a> terminateSequence = <strong>null</strong>;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/AckRequested.html">AckRequested</a> ackRequested = <strong>null</strong>;
+<a name="48" href="#48">48</a>  	
+<a name="49" href="#49">49</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="50" href="#50">50</a>  	
+<a name="51" href="#51">51</a>  	<strong>public</strong> <strong>void</strong> fromSOAPEnvelope(SOAPEnvelope envelope) {
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  		<strong>if</strong> (envelope == <strong>null</strong>)
+<a name="54" href="#54">54</a>  			<strong>throw</strong> <strong>new</strong> OMException(<span class="string">"The passed envelope is null"</span>);
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>  		SOAPFactory factory;
+<a name="57" href="#57">57</a>  		
+<a name="58" href="#58">58</a>  		<em class="comment">//Ya I know. Could hv done it directly :D (just to make it consistent)</em>
+<a name="59" href="#59">59</a>  		<strong>if</strong> (envelope.getNamespace().getName().equals(SOAP11Constants.SOAP_ENVELOPE_NAMESPACE_URI))
+<a name="60" href="#60">60</a>  			factory = SOAPAbstractFactory.getSOAPFactory(Sandesha2Constants.SOAPVersion.v1_1);
+<a name="61" href="#61">61</a>  		<strong>else</strong>
+<a name="62" href="#62">62</a>  			factory = SOAPAbstractFactory.getSOAPFactory(Sandesha2Constants.SOAPVersion.v1_2);
+<a name="63" href="#63">63</a>  			
+<a name="64" href="#64">64</a>  		OMElement sequenceElement = envelope.getHeader().getFirstChildWithName(
+<a name="65" href="#65">65</a>  				<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.SEQUENCE));
+<a name="66" href="#66">66</a>  		<strong>if</strong> (sequenceElement != <strong>null</strong>) {
+<a name="67" href="#67">67</a>  			sequence = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Sequence.html">Sequence</a>(factory);
+<a name="68" href="#68">68</a>  			sequence.fromOMElement(envelope.getHeader());
+<a name="69" href="#69">69</a>  		}
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		OMElement sequenceAckElement = envelope.getHeader()
+<a name="72" href="#72">72</a>  				.getFirstChildWithName(
+<a name="73" href="#73">73</a>  						<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="74" href="#74">74</a>  								Sandesha2Constants.WSRM.SEQUENCE_ACK));
+<a name="75" href="#75">75</a>  		<strong>if</strong> (sequenceAckElement != <strong>null</strong>) {
+<a name="76" href="#76">76</a>  			sequenceAcknowledgement = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceAcknowledgement.html">SequenceAcknowledgement</a>(factory);
+<a name="77" href="#77">77</a>  			sequenceAcknowledgement.fromOMElement(envelope.getHeader());
+<a name="78" href="#78">78</a>  		}
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  		OMElement createSeqElement = envelope.getBody().getFirstChildWithName(
+<a name="81" href="#81">81</a>  				<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="82" href="#82">82</a>  						Sandesha2Constants.WSRM.CREATE_SEQUENCE));
+<a name="83" href="#83">83</a>  		
+<a name="84" href="#84">84</a>  		<strong>if</strong> (createSeqElement != <strong>null</strong>) {
+<a name="85" href="#85">85</a>  			createSequence = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequence.html">CreateSequence</a>(factory);
+<a name="86" href="#86">86</a>  			createSequence.fromOMElement(envelope.getBody());
+<a name="87" href="#87">87</a>  		}
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  		OMElement createSeqResElement = envelope.getBody()
+<a name="90" href="#90">90</a>  				.getFirstChildWithName(
+<a name="91" href="#91">91</a>  						<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="92" href="#92">92</a>  								Sandesha2Constants.WSRM.CREATE_SEQUENCE_RESPONSE));
+<a name="93" href="#93">93</a>  		<strong>if</strong> (createSeqResElement != <strong>null</strong>) {
+<a name="94" href="#94">94</a>  			createSequenceResponse = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceResponse.html">CreateSequenceResponse</a>(factory);
+<a name="95" href="#95">95</a>  			createSequenceResponse.fromOMElement(envelope.getBody());
+<a name="96" href="#96">96</a>  		}
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  		OMElement terminateSeqElement = envelope.getBody()
+<a name="99" href="#99">99</a>  				.getFirstChildWithName(
+<a name="100" href="#100">100</a> 						<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="101" href="#101">101</a> 								Sandesha2Constants.WSRM.TERMINATE_SEQUENCE));
+<a name="102" href="#102">102</a> 		<strong>if</strong> (terminateSeqElement != <strong>null</strong>) {
+<a name="103" href="#103">103</a> 			terminateSequence = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/TerminateSequence.html">TerminateSequence</a>(factory);
+<a name="104" href="#104">104</a> 			terminateSequence.fromOMElement(envelope.getBody());
+<a name="105" href="#105">105</a> 		}
+<a name="106" href="#106">106</a> 
+<a name="107" href="#107">107</a> 		OMElement ackRequestedElement = envelope.getHeader()
+<a name="108" href="#108">108</a> 				.getFirstChildWithName(
+<a name="109" href="#109">109</a> 						<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="110" href="#110">110</a> 								Sandesha2Constants.WSRM.ACK_REQUESTED));
+<a name="111" href="#111">111</a> 		<strong>if</strong> (ackRequestedElement != <strong>null</strong>) {
+<a name="112" href="#112">112</a> 			ackRequested = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/AckRequested.html">AckRequested</a>(factory);
+<a name="113" href="#113">113</a> 			ackRequested.fromOMElement(envelope.getHeader());
+<a name="114" href="#114">114</a> 		}
+<a name="115" href="#115">115</a> 	}
+<a name="116" href="#116">116</a> 
+<a name="117" href="#117">117</a> 	<strong>public</strong> SOAPEnvelope toSOAPEnvelope(SOAPEnvelope envelope) {
+<a name="118" href="#118">118</a> 		<strong>if</strong> (sequence != <strong>null</strong>) {
+<a name="119" href="#119">119</a> 			sequence.toOMElement(envelope.getHeader());
+<a name="120" href="#120">120</a> 		}
+<a name="121" href="#121">121</a> 		<strong>if</strong> (sequenceAcknowledgement != <strong>null</strong>) {
+<a name="122" href="#122">122</a> 			sequenceAcknowledgement.toOMElement(envelope.getHeader());
+<a name="123" href="#123">123</a> 		}
+<a name="124" href="#124">124</a> 		<strong>if</strong> (createSequence != <strong>null</strong>) {
+<a name="125" href="#125">125</a> 			createSequence.toOMElement(envelope.getBody());
+<a name="126" href="#126">126</a> 		}
+<a name="127" href="#127">127</a> 		<strong>if</strong> (createSequenceResponse != <strong>null</strong>) {
+<a name="128" href="#128">128</a> 			createSequenceResponse.toOMElement(envelope.getBody());
+<a name="129" href="#129">129</a> 		}
+<a name="130" href="#130">130</a> 		<strong>if</strong> (terminateSequence != <strong>null</strong>) {
+<a name="131" href="#131">131</a> 			terminateSequence.toOMElement(envelope.getBody());
+<a name="132" href="#132">132</a> 		}
+<a name="133" href="#133">133</a> 		<strong>if</strong> (ackRequested != <strong>null</strong>) {
+<a name="134" href="#134">134</a> 			ackRequested.toOMElement(envelope.getBody());
+<a name="135" href="#135">135</a> 		}
+<a name="136" href="#136">136</a> 		<strong>return</strong> envelope;
+<a name="137" href="#137">137</a> 	}
+<a name="138" href="#138">138</a> 
+<a name="139" href="#139">139</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequence.html">CreateSequence</a> getCreateSequence() {
+<a name="140" href="#140">140</a> 		<strong>return</strong> createSequence;
+<a name="141" href="#141">141</a> 	}
+<a name="142" href="#142">142</a> 
+<a name="143" href="#143">143</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/CreateSequenceResponse.html">CreateSequenceResponse</a> getCreateSequenceResponse() {
+<a name="144" href="#144">144</a> 		<strong>return</strong> createSequenceResponse;
+<a name="145" href="#145">145</a> 	}
+<a name="146" href="#146">146</a> 
+<a name="147" href="#147">147</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Sequence.html">Sequence</a> getSequence() {
+<a name="148" href="#148">148</a> 		<strong>return</strong> sequence;
+<a name="149" href="#149">149</a> 	}
+<a name="150" href="#150">150</a> 
+<a name="151" href="#151">151</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceAcknowledgement.html">SequenceAcknowledgement</a> getSequenceAcknowledgement() {
+<a name="152" href="#152">152</a> 		<strong>return</strong> sequenceAcknowledgement;
+<a name="153" href="#153">153</a> 	}
+<a name="154" href="#154">154</a> 
+<a name="155" href="#155">155</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/TerminateSequence.html">TerminateSequence</a> getTerminateSequence() {
+<a name="156" href="#156">156</a> 		<strong>return</strong> terminateSequence;
+<a name="157" href="#157">157</a> 	}
+<a name="158" href="#158">158</a> 
+<a name="159" href="#159">159</a> 	<strong>public</strong> <strong>void</strong> setCreateSequence(<a href="../../../../org/apache/sandesha2/wsrm/CreateSequence.html">CreateSequence</a> createSequence) {
+<a name="160" href="#160">160</a> 		<strong>this</strong>.createSequence = createSequence;
+<a name="161" href="#161">161</a> 	}
+<a name="162" href="#162">162</a> 
+<a name="163" href="#163">163</a> 	<strong>public</strong> <strong>void</strong> setCreateSequenceResponse(
+<a name="164" href="#164">164</a> 			CreateSequenceResponse createSequenceResponse) {
+<a name="165" href="#165">165</a> 		<strong>this</strong>.createSequenceResponse = createSequenceResponse;
+<a name="166" href="#166">166</a> 	}
+<a name="167" href="#167">167</a> 
+<a name="168" href="#168">168</a> 	<strong>public</strong> <strong>void</strong> setSequence(<a href="../../../../org/apache/sandesha2/wsrm/Sequence.html">Sequence</a> sequence) {
+<a name="169" href="#169">169</a> 		<strong>this</strong>.sequence = sequence;
+<a name="170" href="#170">170</a> 	}
+<a name="171" href="#171">171</a> 
+<a name="172" href="#172">172</a> 	<strong>public</strong> <strong>void</strong> setSequenceAcknowledgement(
+<a name="173" href="#173">173</a> 			SequenceAcknowledgement sequenceAcknowledgement) {
+<a name="174" href="#174">174</a> 		<strong>this</strong>.sequenceAcknowledgement = sequenceAcknowledgement;
+<a name="175" href="#175">175</a> 	}
+<a name="176" href="#176">176</a> 
+<a name="177" href="#177">177</a> 	<strong>public</strong> <strong>void</strong> setTerminateSequence(<a href="../../../../org/apache/sandesha2/wsrm/TerminateSequence.html">TerminateSequence</a> terminateSequence) {
+<a name="178" href="#178">178</a> 		<strong>this</strong>.terminateSequence = terminateSequence;
+<a name="179" href="#179">179</a> 	}
+<a name="180" href="#180">180</a> 
+<a name="181" href="#181">181</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AckRequested.html">AckRequested</a> getAckRequested() {
+<a name="182" href="#182">182</a> 		<strong>return</strong> ackRequested;
+<a name="183" href="#183">183</a> 	}
+<a name="184" href="#184">184</a> 
+<a name="185" href="#185">185</a> 	<strong>public</strong> <strong>void</strong> setAckRequested(<a href="../../../../org/apache/sandesha2/wsrm/AckRequested.html">AckRequested</a> ackRequested) {
+<a name="186" href="#186">186</a> 		<strong>this</strong>.ackRequested = ackRequested;
+<a name="187" href="#187">187</a> 	}
+<a name="188" href="#188">188</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/Sequence.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Sequence.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Sequence.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/Sequence.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,183 @@
+<!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>Sequence xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/Sequence.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> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="32" href="#32">32</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="33" href="#33">33</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="34" href="#34">34</a>  <em> */</em>
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/Sequence.html">Sequence</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMPart.html">IOMRMPart</a> {
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  	<strong>private</strong> OMElement sequenceElement;
+<a name="39" href="#39">39</a>  
+<a name="40" href="#40">40</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a> messageNumber;
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/LastMessage.html">LastMessage</a> lastMessage = <strong>null</strong>;
+<a name="45" href="#45">45</a>  
+<a name="46" href="#46">46</a>  	<strong>private</strong> SOAPFactory factory;
+<a name="47" href="#47">47</a>  	
+<a name="48" href="#48">48</a>  	OMNamespace seqNoNamespace = <strong>null</strong>;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Sequence.html">Sequence</a>(SOAPFactory factory) {
+<a name="51" href="#51">51</a>  		<strong>this</strong>.factory = factory;
+<a name="52" href="#52">52</a>  		seqNoNamespace = factory.createOMNamespace(
+<a name="53" href="#53">53</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="54" href="#54">54</a>  		sequenceElement = factory.createOMElement(
+<a name="55" href="#55">55</a>  				Sandesha2Constants.WSRM.SEQUENCE, seqNoNamespace);
+<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> sequenceElement;
+<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 headerElement) throws OMException {
+<a name="63" href="#63">63</a>  
+<a name="64" href="#64">64</a>  		SOAPHeader header = (SOAPHeader) headerElement;
+<a name="65" href="#65">65</a>  		<strong>if</strong> (header == <strong>null</strong>)
+<a name="66" href="#66">66</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="67" href="#67">67</a>  					<span class="string">"Sequence element cannot be added to non-header element"</span>);
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  		OMElement sequencePart = sequenceElement = headerElement
+<a name="70" href="#70">70</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="71" href="#71">71</a>  						Sandesha2Constants.WSRM.SEQUENCE));
+<a name="72" href="#72">72</a>  		<strong>if</strong> (sequencePart == <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">"Cannot find Sequence element in the given element"</span>);
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  		sequenceElement = factory.createOMElement(
+<a name="77" href="#77">77</a>  				Sandesha2Constants.WSRM.SEQUENCE, seqNoNamespace);
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  		identifier = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a>(factory);
+<a name="80" href="#80">80</a>  		messageNumber = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a>(factory);
+<a name="81" href="#81">81</a>  		identifier.fromOMElement(sequencePart);
+<a name="82" href="#82">82</a>  		messageNumber.fromOMElement(sequencePart);
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  		OMElement lastMessageElement = sequencePart
+<a name="85" href="#85">85</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="86" href="#86">86</a>  						Sandesha2Constants.WSRM.LAST_MSG));
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  		<strong>if</strong> (lastMessageElement != <strong>null</strong>) {
+<a name="89" href="#89">89</a>  			lastMessage = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/LastMessage.html">LastMessage</a>(factory);
+<a name="90" href="#90">90</a>  			lastMessage.fromOMElement(sequencePart);
+<a name="91" href="#91">91</a>  		}
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="94" href="#94">94</a>  	}
+<a name="95" href="#95">95</a>  
+<a name="96" href="#96">96</a>  	<strong>public</strong> OMElement toOMElement(OMElement headerElement) throws OMException {
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  		<strong>if</strong> (headerElement == <strong>null</strong> || !(headerElement instanceof SOAPHeader))
+<a name="99" href="#99">99</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="100" href="#100">100</a> 					<span class="string">"Cant add Sequence Part to a non-header element"</span>);
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> 		SOAPHeader soapHeader = (SOAPHeader) headerElement;
+<a name="103" href="#103">103</a> 		<strong>if</strong> (soapHeader == <strong>null</strong>)
+<a name="104" href="#104">104</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="105" href="#105">105</a> 					<span class="string">"cant add the sequence part to a non-header element"</span>);
+<a name="106" href="#106">106</a> 		<strong>if</strong> (sequenceElement == <strong>null</strong>)
+<a name="107" href="#107">107</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="108" href="#108">108</a> 					<span class="string">"cant add Sequence Part since Sequence is null"</span>);
+<a name="109" href="#109">109</a> 		<strong>if</strong> (ident<strong>if</strong>ier == <strong>null</strong>)
+<a name="110" href="#110">110</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="111" href="#111">111</a> 					<span class="string">"Cant add Sequence part since identifier is null"</span>);
+<a name="112" href="#112">112</a> 		<strong>if</strong> (messageNumber == <strong>null</strong>)
+<a name="113" href="#113">113</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="114" href="#114">114</a> 					<span class="string">"Cant add Sequence part since MessageNumber is null"</span>);
+<a name="115" href="#115">115</a> 
+<a name="116" href="#116">116</a> 
+<a name="117" href="#117">117</a> 		SOAPHeaderBlock sequenceHeaderBlock = soapHeader.addHeaderBlock(
+<a name="118" href="#118">118</a> 				Sandesha2Constants.WSRM.SEQUENCE, seqNoNamespace);
+<a name="119" href="#119">119</a> 		sequenceHeaderBlock.setMustUnderstand(<strong>true</strong>);
+<a name="120" href="#120">120</a> 		identifier.toOMElement(sequenceHeaderBlock);
+<a name="121" href="#121">121</a> 		messageNumber.toOMElement(sequenceHeaderBlock);
+<a name="122" href="#122">122</a> 		<strong>if</strong> (lastMessage != <strong>null</strong>)
+<a name="123" href="#123">123</a> 			lastMessage.toOMElement(sequenceHeaderBlock);
+<a name="124" href="#124">124</a> 
+<a name="125" href="#125">125</a> 
+<a name="126" href="#126">126</a> 		<em class="comment">//resetting the element. So that subsequest toOMElement calls will</em>
+<a name="127" href="#127">127</a> 		<em class="comment">// attach a different object.</em>
+<a name="128" href="#128">128</a> 		<strong>this</strong>.sequenceElement = factory.createOMElement(
+<a name="129" href="#129">129</a> 				Sandesha2Constants.WSRM.SEQUENCE, seqNoNamespace);
+<a name="130" href="#130">130</a> 
+<a name="131" href="#131">131</a> 		<strong>return</strong> headerElement;
+<a name="132" href="#132">132</a> 	}
+<a name="133" href="#133">133</a> 
+<a name="134" href="#134">134</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> getIdentifier() {
+<a name="135" href="#135">135</a> 		<strong>return</strong> identifier;
+<a name="136" href="#136">136</a> 	}
+<a name="137" href="#137">137</a> 
+<a name="138" href="#138">138</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/LastMessage.html">LastMessage</a> getLastMessage() {
+<a name="139" href="#139">139</a> 		<strong>return</strong> lastMessage;
+<a name="140" href="#140">140</a> 	}
+<a name="141" href="#141">141</a> 
+<a name="142" href="#142">142</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a> getMessageNumber() {
+<a name="143" href="#143">143</a> 		<strong>return</strong> messageNumber;
+<a name="144" href="#144">144</a> 	}
+<a name="145" href="#145">145</a> 
+<a name="146" href="#146">146</a> 	<strong>public</strong> <strong>void</strong> setIdentifier(<a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier) {
+<a name="147" href="#147">147</a> 		<strong>this</strong>.identifier = identifier;
+<a name="148" href="#148">148</a> 	}
+<a name="149" href="#149">149</a> 
+<a name="150" href="#150">150</a> 	<strong>public</strong> <strong>void</strong> setLastMessage(<a href="../../../../org/apache/sandesha2/wsrm/LastMessage.html">LastMessage</a> lastMessage) {
+<a name="151" href="#151">151</a> 		<strong>this</strong>.lastMessage = lastMessage;
+<a name="152" href="#152">152</a> 	}
+<a name="153" href="#153">153</a> 
+<a name="154" href="#154">154</a> 	<strong>public</strong> <strong>void</strong> setMessageNumber(<a href="../../../../org/apache/sandesha2/wsrm/MessageNumber.html">MessageNumber</a> messageNumber) {
+<a name="155" href="#155">155</a> 		<strong>this</strong>.messageNumber = messageNumber;
+<a name="156" href="#156">156</a> 	}
+<a name="157" href="#157">157</a> 
+<a name="158" href="#158">158</a> 	<strong>public</strong> <strong>void</strong> toSOAPEnvelope(SOAPEnvelope envelope) {
+<a name="159" href="#159">159</a> 		SOAPHeader header = envelope.getHeader();
+<a name="160" href="#160">160</a> 		
+<a name="161" href="#161">161</a> 		<em class="comment">//detach if already exist.</em>
+<a name="162" href="#162">162</a> 		OMElement elem = header.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="163" href="#163">163</a> 				Sandesha2Constants.WSRM.SEQUENCE));
+<a name="164" href="#164">164</a> 		<strong>if</strong> (elem!=<strong>null</strong>)
+<a name="165" href="#165">165</a> 			elem.detach();
+<a name="166" href="#166">166</a> 		
+<a name="167" href="#167">167</a> 		toOMElement(header);
+<a name="168" href="#168">168</a> 	}
+<a name="169" href="#169">169</a> 
+<a name="170" href="#170">170</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/SequenceAcknowledgement.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceAcknowledgement.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceAcknowledgement.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceAcknowledgement.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,211 @@
+<!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>SequenceAcknowledgement xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/SequenceAcknowledgement.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> java.util.ArrayList;
+<a name="20" href="#20">20</a>  <strong>import</strong> java.util.Iterator;
+<a name="21" href="#21">21</a>  <strong>import</strong> java.util.List;
+<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.om.OMElement;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.om.OMException;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.axis2.soap.SOAPHeader;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.sandesha2.Sandesha2Constants;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  <em>/**<em>*</em></em>
+<a name="34" href="#34">34</a>  <em> * Adds the SequenceAcknowledgement header block.</em>
+<a name="35" href="#35">35</a>  <em> * </em>
+<a name="36" href="#36">36</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="37" href="#37">37</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="38" href="#38">38</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="39" href="#39">39</a>  <em> */</em>
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceAcknowledgement.html">SequenceAcknowledgement</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMPart.html">IOMRMPart</a> {
+<a name="42" href="#42">42</a>  	
+<a name="43" href="#43">43</a>  	<strong>private</strong> OMElement sequenceAcknowledgementElement;
+<a name="44" href="#44">44</a>  
+<a name="45" href="#45">45</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier;
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  	<strong>private</strong> ArrayList acknowledgementRangeList;
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  	<strong>private</strong> ArrayList nackList;
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>  	OMNamespace rmNamespace = <strong>null</strong>;
+<a name="52" href="#52">52</a>  
+<a name="53" href="#53">53</a>  	SOAPFactory factory;
+<a name="54" href="#54">54</a>  	
+<a name="55" href="#55">55</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceAcknowledgement.html">SequenceAcknowledgement</a>(SOAPFactory factory) {
+<a name="56" href="#56">56</a>  		<strong>this</strong>.factory = factory;
+<a name="57" href="#57">57</a>  		rmNamespace = factory.createOMNamespace(
+<a name="58" href="#58">58</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="59" href="#59">59</a>  		sequenceAcknowledgementElement = factory.createOMElement(
+<a name="60" href="#60">60</a>  				Sandesha2Constants.WSRM.SEQUENCE_ACK, rmNamespace);
+<a name="61" href="#61">61</a>  		acknowledgementRangeList = <strong>new</strong> ArrayList();
+<a name="62" href="#62">62</a>  		nackList = <strong>new</strong> ArrayList();
+<a name="63" href="#63">63</a>  	}
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="66" href="#66">66</a>  		<strong>return</strong> sequenceAcknowledgementElement;
+<a name="67" href="#67">67</a>  	}
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  	<strong>public</strong> Object fromOMElement(OMElement element) throws OMException {
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		<strong>if</strong> (element == <strong>null</strong> || !(element instanceof SOAPHeader))
+<a name="72" href="#72">72</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="73" href="#73">73</a>  					<span class="string">"Cant get sequence acknowlegement from a non-header element"</span>);
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>  		SOAPHeader header = (SOAPHeader) element;
+<a name="76" href="#76">76</a>  		OMElement sequenceAckPart = header.getFirstChildWithName(<strong>new</strong> QName(
+<a name="77" href="#77">77</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.SEQUENCE_ACK));
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  		<strong>if</strong> (sequenceAckPart == <strong>null</strong>)
+<a name="80" href="#80">80</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="81" href="#81">81</a>  					<span class="string">"The passed element does not contain a seqence ackknowledgement Part"</span>);
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  		identifier = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a>(factory);
+<a name="84" href="#84">84</a>  		identifier.fromOMElement(sequenceAckPart);
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>  		Iterator ackRangeParts = sequenceAckPart.getChildrenWithName(<strong>new</strong> QName(
+<a name="87" href="#87">87</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.ACK_RANGE));
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  		<strong>while</strong> (ackRangeParts.hasNext()) {
+<a name="90" href="#90">90</a>  			OMElement ackRangePart = (OMElement) ackRangeParts.next();
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  			AcknowledgementRange ackRange = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcknowledgementRange.html">AcknowledgementRange</a>(factory);
+<a name="93" href="#93">93</a>  			ackRange.fromOMElement(ackRangePart);
+<a name="94" href="#94">94</a>  			acknowledgementRangeList.add(ackRange);
+<a name="95" href="#95">95</a>  		}
+<a name="96" href="#96">96</a>  
+<a name="97" href="#97">97</a>  		Iterator nackParts = sequenceAckPart.getChildrenWithName(<strong>new</strong> QName(
+<a name="98" href="#98">98</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NACK));
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a> 		<strong>while</strong> (nackParts.hasNext()) {
+<a name="101" href="#101">101</a> 			OMElement nackPart = (OMElement) nackParts.next();
+<a name="102" href="#102">102</a> 			Nack nack = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Nack.html">Nack</a>(factory);
+<a name="103" href="#103">103</a> 			nack.fromOMElement(nackPart);
+<a name="104" href="#104">104</a> 			nackList.add(nack);
+<a name="105" href="#105">105</a> 		}
+<a name="106" href="#106">106</a> 
+<a name="107" href="#107">107</a> 		sequenceAcknowledgementElement = factory.createOMElement(
+<a name="108" href="#108">108</a> 				Sandesha2Constants.WSRM.SEQUENCE_ACK, rmNamespace);
+<a name="109" href="#109">109</a> 
+<a name="110" href="#110">110</a> 		<strong>return</strong> <strong>this</strong>;
+<a name="111" href="#111">111</a> 	}
+<a name="112" href="#112">112</a> 
+<a name="113" href="#113">113</a> 	<strong>public</strong> OMElement toOMElement(OMElement header) throws OMException {
+<a name="114" href="#114">114</a> 
+<a name="115" href="#115">115</a> 		<strong>if</strong> (header == <strong>null</strong> || !(header instanceof SOAPHeader))
+<a name="116" href="#116">116</a> 			<strong>throw</strong> <strong>new</strong> OMException();
+<a name="117" href="#117">117</a> 
+<a name="118" href="#118">118</a> 		SOAPHeader SOAPHeader = (SOAPHeader) header;
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a> 		<strong>if</strong> (sequenceAcknowledgementElement == <strong>null</strong>)
+<a name="121" href="#121">121</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="122" href="#122">122</a> 					<span class="string">"Cant set sequence acknowledgement since the element is null"</span>);
+<a name="123" href="#123">123</a> 
+<a name="124" href="#124">124</a> 		<strong>if</strong> (ident<strong>if</strong>ier == <strong>null</strong>)
+<a name="125" href="#125">125</a> 			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="126" href="#126">126</a> 					<span class="string">"Cant set the sequence since Identifier is null"</span>);
+<a name="127" href="#127">127</a> 
+<a name="128" href="#128">128</a> 		identifier.toOMElement(sequenceAcknowledgementElement);
+<a name="129" href="#129">129</a> 
+<a name="130" href="#130">130</a> 		Iterator ackRangeIt = acknowledgementRangeList.iterator();
+<a name="131" href="#131">131</a> 		<strong>while</strong> (ackRangeIt.hasNext()) {
+<a name="132" href="#132">132</a> 			AcknowledgementRange ackRange = (AcknowledgementRange) ackRangeIt
+<a name="133" href="#133">133</a> 					.next();
+<a name="134" href="#134">134</a> 			ackRange.toOMElement(sequenceAcknowledgementElement);
+<a name="135" href="#135">135</a> 		}
+<a name="136" href="#136">136</a> 
+<a name="137" href="#137">137</a> 		Iterator nackIt = nackList.iterator();
+<a name="138" href="#138">138</a> 		<strong>while</strong> (nackIt.hasNext()) {
+<a name="139" href="#139">139</a> 			Nack nack = (Nack) nackIt.next();
+<a name="140" href="#140">140</a> 			nack.toOMElement(sequenceAcknowledgementElement);
+<a name="141" href="#141">141</a> 		}
+<a name="142" href="#142">142</a> 
+<a name="143" href="#143">143</a> 		SOAPHeader.addChild(sequenceAcknowledgementElement);
+<a name="144" href="#144">144</a> 
+<a name="145" href="#145">145</a> 		sequenceAcknowledgementElement = factory.createOMElement(
+<a name="146" href="#146">146</a> 				Sandesha2Constants.WSRM.SEQUENCE_ACK, rmNamespace);
+<a name="147" href="#147">147</a> 
+<a name="148" href="#148">148</a> 		<strong>return</strong> header;
+<a name="149" href="#149">149</a> 	}
+<a name="150" href="#150">150</a> 
+<a name="151" href="#151">151</a> 	<strong>public</strong> <strong>void</strong> setIdentifier(<a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier) {
+<a name="152" href="#152">152</a> 		<strong>this</strong>.identifier = identifier;
+<a name="153" href="#153">153</a> 	}
+<a name="154" href="#154">154</a> 
+<a name="155" href="#155">155</a> 	<strong>public</strong> <strong>void</strong> setAckRanges(ArrayList acknowledgementRagngesList) {
+<a name="156" href="#156">156</a> 		acknowledgementRangeList = acknowledgementRagngesList;
+<a name="157" href="#157">157</a> 	}
+<a name="158" href="#158">158</a> 
+<a name="159" href="#159">159</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Nack.html">Nack</a> addNackRangges(<a href="../../../../org/apache/sandesha2/wsrm/Nack.html">Nack</a> nack) {
+<a name="160" href="#160">160</a> 		nackList.add(nack);
+<a name="161" href="#161">161</a> 		<strong>return</strong> nack;
+<a name="162" href="#162">162</a> 	}
+<a name="163" href="#163">163</a> 
+<a name="164" href="#164">164</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/AcknowledgementRange.html">AcknowledgementRange</a> addAcknowledgementRanges(
+<a name="165" href="#165">165</a> 			AcknowledgementRange ackRange) {
+<a name="166" href="#166">166</a> 		acknowledgementRangeList.add(ackRange);
+<a name="167" href="#167">167</a> 		<strong>return</strong> ackRange;
+<a name="168" href="#168">168</a> 	}
+<a name="169" href="#169">169</a> 
+<a name="170" href="#170">170</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> getIdentifier() {
+<a name="171" href="#171">171</a> 		<strong>return</strong> identifier;
+<a name="172" href="#172">172</a> 	}
+<a name="173" href="#173">173</a> 
+<a name="174" href="#174">174</a> 	<strong>public</strong> List getAcknowledgementRanges() {
+<a name="175" href="#175">175</a> 		<strong>return</strong> acknowledgementRangeList;
+<a name="176" href="#176">176</a> 	}
+<a name="177" href="#177">177</a> 
+<a name="178" href="#178">178</a> 	<strong>public</strong> List getNackList() {
+<a name="179" href="#179">179</a> 		<strong>return</strong> nackList;
+<a name="180" href="#180">180</a> 	}
+<a name="181" href="#181">181</a> 
+<a name="182" href="#182">182</a> 	<strong>public</strong> <strong>void</strong> addChildElement(OMElement element) {
+<a name="183" href="#183">183</a> 		acknowledgementRangeList.add(element);
+<a name="184" href="#184">184</a> 	}
+<a name="185" href="#185">185</a> 
+<a name="186" href="#186">186</a> 	<strong>public</strong> <strong>void</strong> toSOAPEnvelope(SOAPEnvelope envelope) {
+<a name="187" href="#187">187</a> 		SOAPHeader header = envelope.getHeader();
+<a name="188" href="#188">188</a> 
+<a name="189" href="#189">189</a> 		<em class="comment">//detach if already exist.</em>
+<a name="190" href="#190">190</a> 		OMElement elem = header.getFirstChildWithName(<strong>new</strong> QName(
+<a name="191" href="#191">191</a> 				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.SEQUENCE_ACK));
+<a name="192" href="#192">192</a> 		<strong>if</strong> (elem != <strong>null</strong>)
+<a name="193" href="#193">193</a> 			elem.detach();
+<a name="194" href="#194">194</a> 
+<a name="195" href="#195">195</a> 		toOMElement(header);
+<a name="196" href="#196">196</a> 	}
+<a name="197" href="#197">197</a> 
+<a name="198" href="#198">198</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/SequenceFault.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceFault.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceFault.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceFault.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,136 @@
+<!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>SequenceFault xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/SequenceFault.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.SOAPBody;
+<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> * Adds the SequenceFault header block.</em>
+<a name="30" href="#30">30</a>  <em> * </em>
+<a name="31" href="#31">31</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="32" href="#32">32</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="33" href="#33">33</a>  <em> * @author Saminda Abeyruwan  &lt;saminda@opensource.lk></em>
+<a name="34" href="#34">34</a>  <em> */</em>
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  <strong>public</strong> <strong>class</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceFault.html">SequenceFault</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="37" href="#37">37</a>  	<strong>private</strong> OMElement sequenceFaultElement;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/FaultCode.html">FaultCode</a> faultCode;
+<a name="40" href="#40">40</a>  	
+<a name="41" href="#41">41</a>  	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/SequenceFault.html">SequenceFault</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>  		sequenceFaultElement = factory.createOMElement(
+<a name="50" href="#50">50</a>  				Sandesha2Constants.WSRM.SEQUENCE_FAULT, 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> sequenceFaultElement;
+<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 body) throws OMException {
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  		<strong>if</strong> (body == <strong>null</strong> || !(body instanceof SOAPBody))
+<a name="60" href="#60">60</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="61" href="#61">61</a>  					<span class="string">"Cant get Sequence Fault part from a non-header element"</span>);
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  		OMElement sequenceFaultPart = body.getFirstChildWithName(<strong>new</strong> QName(
+<a name="64" href="#64">64</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.SEQUENCE_FAULT));
+<a name="65" href="#65">65</a>  
+<a name="66" href="#66">66</a>  		<strong>if</strong> (sequenceFaultPart == <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">"The passed element does not contain a Sequence Fault element"</span>);
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  		OMElement faultCodePart = sequenceFaultPart
+<a name="71" href="#71">71</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="72" href="#72">72</a>  						Sandesha2Constants.WSRM.FAULT_CODE));
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  		<strong>if</strong> (faultCodePart != <strong>null</strong>) {
+<a name="75" href="#75">75</a>  			faultCode = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/FaultCode.html">FaultCode</a>(factory);
+<a name="76" href="#76">76</a>  			faultCode.fromOMElement(sequenceFaultPart);
+<a name="77" href="#77">77</a>  		}
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  		sequenceFaultElement = factory.createOMElement(
+<a name="80" href="#80">80</a>  				Sandesha2Constants.WSRM.SEQUENCE_FAULT, rmNamespace);
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="83" href="#83">83</a>  
+<a name="84" href="#84">84</a>  	}
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>  	<strong>public</strong> OMElement toOMElement(OMElement body) throws OMException {
+<a name="87" href="#87">87</a>  
+<a name="88" href="#88">88</a>  		<strong>if</strong> (body == <strong>null</strong> || !(body instanceof SOAPBody))
+<a name="89" href="#89">89</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="90" href="#90">90</a>  					<span class="string">"Cant get Sequence Fault part from a non-header element"</span>);
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  		<strong>if</strong> (sequenceFaultElement == <strong>null</strong>)
+<a name="93" href="#93">93</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="94" href="#94">94</a>  					<span class="string">"Cant add the sequnce fault since the internal element is null"</span>);
+<a name="95" href="#95">95</a>  
+<a name="96" href="#96">96</a>  		<strong>if</strong> (faultCode != <strong>null</strong>)
+<a name="97" href="#97">97</a>  			faultCode.toOMElement(sequenceFaultElement);
+<a name="98" href="#98">98</a>  
+<a name="99" href="#99">99</a>  		body.addChild(sequenceFaultElement);
+<a name="100" href="#100">100</a> 
+<a name="101" href="#101">101</a> 		sequenceFaultElement = factory.createOMElement(
+<a name="102" href="#102">102</a> 				Sandesha2Constants.WSRM.SEQUENCE_FAULT, rmNamespace);
+<a name="103" href="#103">103</a> 
+<a name="104" href="#104">104</a> 		<strong>return</strong> body;
+<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>void</strong> setFaultCode(<a href="../../../../org/apache/sandesha2/wsrm/FaultCode.html">FaultCode</a> faultCode) {
+<a name="108" href="#108">108</a> 		<strong>this</strong>.faultCode = faultCode;
+<a name="109" href="#109">109</a> 	}
+<a name="110" href="#110">110</a> 
+<a name="111" href="#111">111</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/FaultCode.html">FaultCode</a> getFaultCode() {
+<a name="112" href="#112">112</a> 		<strong>return</strong> faultCode;
+<a name="113" href="#113">113</a> 	}
+<a name="114" href="#114">114</a> 
+<a name="115" href="#115">115</a> 	<strong>public</strong> <strong>void</strong> setSequenceFaultElement(OMElement sequenceFault) {
+<a name="116" href="#116">116</a> 		sequenceFaultElement = sequenceFault;
+<a name="117" href="#117">117</a> 	}
+<a name="118" href="#118">118</a> 
+<a name="119" href="#119">119</a> 	<strong>public</strong> OMElement getSequenceFaultElement() {
+<a name="120" href="#120">120</a> 		<strong>return</strong> sequenceFaultElement;
+<a name="121" href="#121">121</a> 	}
+<a name="122" href="#122">122</a> 
+<a name="123" href="#123">123</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/SequenceOffer.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceOffer.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceOffer.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/wsrm/SequenceOffer.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>SequenceOffer xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../apidocs/org/apache/sandesha2/wsrm/SequenceOffer.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/SequenceOffer.html">SequenceOffer</a> implements <a href="../../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> {
+<a name="34" href="#34">34</a>  	<strong>private</strong> OMElement sequenceOfferElement;
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier = <strong>null</strong>;
+<a name="37" href="#37">37</a>  
+<a name="38" href="#38">38</a>  	<strong>private</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a> expires = <strong>null</strong>;
+<a name="39" href="#39">39</a>  	
+<a name="40" href="#40">40</a>  	SOAPFactory factory;
+<a name="41" href="#41">41</a>  
+<a name="42" href="#42">42</a>  	OMNamespace rmNamespace = <strong>null</strong>; 
+<a name="43" href="#43">43</a>  
+<a name="44" href="#44">44</a>  	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/SequenceOffer.html">SequenceOffer</a>(SOAPFactory factory) {
+<a name="45" href="#45">45</a>  		<strong>this</strong>.factory = factory;
+<a name="46" href="#46">46</a>  		rmNamespace = factory.createOMNamespace(
+<a name="47" href="#47">47</a>  				Sandesha2Constants.WSRM.NS_URI_RM, Sandesha2Constants.WSRM.NS_PREFIX_RM);
+<a name="48" href="#48">48</a>  		sequenceOfferElement = factory.createOMElement(
+<a name="49" href="#49">49</a>  				Sandesha2Constants.WSRM.SEQUENCE_OFFER, rmNamespace);
+<a name="50" href="#50">50</a>  	}
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>public</strong> OMElement getOMElement() throws OMException {
+<a name="53" href="#53">53</a>  		<strong>return</strong> sequenceOfferElement;
+<a name="54" href="#54">54</a>  	}
+<a name="55" href="#55">55</a>  
+<a name="56" href="#56">56</a>  	<strong>public</strong> Object fromOMElement(OMElement createSequenceElement)
+<a name="57" href="#57">57</a>  			throws OMException {
+<a name="58" href="#58">58</a>  		OMElement sequenceOfferPart = createSequenceElement
+<a name="59" href="#59">59</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="60" href="#60">60</a>  						Sandesha2Constants.WSRM.SEQUENCE_OFFER));
+<a name="61" href="#61">61</a>  		<strong>if</strong> (sequenceOfferPart == <strong>null</strong>)
+<a name="62" href="#62">62</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="63" href="#63">63</a>  					<span class="string">"The passed element does not contain a SequenceOffer part"</span>);
+<a name="64" href="#64">64</a>  
+<a name="65" href="#65">65</a>  		sequenceOfferElement = factory.createOMElement(
+<a name="66" href="#66">66</a>  				Sandesha2Constants.WSRM.SEQUENCE_OFFER, rmNamespace);
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>  		identifier = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a>(factory);
+<a name="69" href="#69">69</a>  		identifier.fromOMElement(sequenceOfferPart);
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  		OMElement expiresPart = sequenceOfferPart
+<a name="72" href="#72">72</a>  				.getFirstChildWithName(<strong>new</strong> QName(Sandesha2Constants.WSRM.NS_URI_RM,
+<a name="73" href="#73">73</a>  						Sandesha2Constants.WSRM.EXPIRES));
+<a name="74" href="#74">74</a>  		<strong>if</strong> (expiresPart != <strong>null</strong>) {
+<a name="75" href="#75">75</a>  			expires = <strong>new</strong> <a href="../../../../org/apache/sandesha2/wsrm/Expires.html">Expires</a>(factory);
+<a name="76" href="#76">76</a>  			expires.fromOMElement(sequenceOfferElement);
+<a name="77" href="#77">77</a>  		}
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  		<strong>return</strong> <strong>this</strong>;
+<a name="80" href="#80">80</a>  	}
+<a name="81" href="#81">81</a>  
+<a name="82" href="#82">82</a>  	<strong>public</strong> OMElement toOMElement(OMElement createSequenceElement)
+<a name="83" href="#83">83</a>  			throws OMException {
+<a name="84" href="#84">84</a>  		<strong>if</strong> (sequenceOfferElement == <strong>null</strong>)
+<a name="85" href="#85">85</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="86" href="#86">86</a>  					<span class="string">"Cant set sequnceoffer. Offer element is null"</span>);
+<a name="87" href="#87">87</a>  		<strong>if</strong> (ident<strong>if</strong>ier == <strong>null</strong>)
+<a name="88" href="#88">88</a>  			<strong>throw</strong> <strong>new</strong> OMException(
+<a name="89" href="#89">89</a>  					<span class="string">"Cant set sequnceOffer since identifier is null"</span>);
+<a name="90" href="#90">90</a>  
+<a name="91" href="#91">91</a>  		identifier.toOMElement(sequenceOfferElement);
+<a name="92" href="#92">92</a>  
+<a name="93" href="#93">93</a>  		<strong>if</strong> (expires != <strong>null</strong>) {
+<a name="94" href="#94">94</a>  			expires.toOMElement(sequenceOfferElement);
+<a name="95" href="#95">95</a>  		}
+<a name="96" href="#96">96</a>  
+<a name="97" href="#97">97</a>  		createSequenceElement.addChild(sequenceOfferElement);
+<a name="98" href="#98">98</a>  
+<a name="99" href="#99">99</a>  		sequenceOfferElement = factory.createOMElement(
+<a name="100" href="#100">100</a> 				Sandesha2Constants.WSRM.SEQUENCE_OFFER, rmNamespace);
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> 		<strong>return</strong> createSequenceElement;
+<a name="103" href="#103">103</a> 	}
+<a name="104" href="#104">104</a> 
+<a name="105" href="#105">105</a> 	<strong>public</strong> <a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> getIdentifer() {
+<a name="106" href="#106">106</a> 		<strong>return</strong> identifier;
+<a name="107" href="#107">107</a> 	}
+<a name="108" href="#108">108</a> 
+<a name="109" href="#109">109</a> 	<strong>public</strong> <strong>void</strong> setIdentifier(<a href="../../../../org/apache/sandesha2/wsrm/Identifier.html">Identifier</a> identifier) {
+<a name="110" href="#110">110</a> 		<strong>this</strong>.identifier = identifier;
+<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