ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chamik...@apache.org
Subject svn commit: r349924 [9/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/apa...
Date Wed, 30 Nov 2005 11:17:58 GMT
Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/allclasses-frame.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/allclasses-frame.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/allclasses-frame.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/allclasses-frame.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,347 @@
+
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>All Classes</title>
+      <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+    </head>
+    <body>
+
+      <h3>All Classes</h3>
+
+      <ul>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/Accept.html" target="classFrame">Accept</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/AckRequested.html" target="classFrame">AckRequested</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/AcknowledgementManager.html" target="classFrame">AcknowledgementManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgprocessors/AcknowledgementProcessor.html" target="classFrame">AcknowledgementProcessor</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/AcknowledgementRange.html" target="classFrame">AcknowledgementRange</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/AcksTo.html" target="classFrame">AcksTo</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/Address.html" target="classFrame">Address</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgprocessors/ApplicationMsgProcessor.html" target="classFrame">ApplicationMsgProcessor</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beans/CreateSeqBean.html" target="classFrame">CreateSeqBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beanmanagers/CreateSeqBeanMgr.html" target="classFrame">CreateSeqBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgprocessors/CreateSeqMsgProcessor.html" target="classFrame">CreateSeqMsgProcessor</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgprocessors/CreateSeqResponseMsgProcessor.html" target="classFrame">CreateSeqResponseMsgProcessor</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/CreateSequence.html" target="classFrame">CreateSequence</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/CreateSequenceResponse.html" target="classFrame">CreateSequenceResponse</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/Expires.html" target="classFrame">Expires</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/FaultCode.html" target="classFrame">FaultCode</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/FaultData.html" target="classFrame">FaultData</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/FaultManager.html" target="classFrame">FaultManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/IOMRMElement.html" target="classFrame">IOMRMElement</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/IOMRMPart.html" target="classFrame">IOMRMPart</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/Identifier.html" target="classFrame">Identifier</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/inmemory/InMemoryCreateSeqBeanMgr.html" target="classFrame">InMemoryCreateSeqBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/inmemory/InMemoryInvokerBeanMgr.html" target="classFrame">InMemoryInvokerBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/inmemory/InMemoryNextMsgBeanMgr.html" target="classFrame">InMemoryNextMsgBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/inmemory/InMemorySenderBeanMgr.html" target="classFrame">InMemorySenderBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/inmemory/InMemorySequencePropertyBeanMgr.html" target="classFrame">InMemorySequencePropertyBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/inmemory/InMemoryStorageManager.html" target="classFrame">InMemoryStorageManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/inmemory/InMemoryTransaction.html" target="classFrame">InMemoryTransaction</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/workers/InOrderInvoker.html" target="classFrame">InOrderInvoker</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beans/InvokerBean.html" target="classFrame">InvokerBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beanmanagers/InvokerBeanMgr.html" target="classFrame">InvokerBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/LastMessage.html" target="classFrame">LastMessage</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/MessageNumber.html" target="classFrame">MessageNumber</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/MessageRetransmissionAdjuster.html" target="classFrame">MessageRetransmissionAdjuster</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/MsgInitializer.html" target="classFrame">MsgInitializer</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgprocessors/MsgProcessor.html" target="classFrame">MsgProcessor</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgprocessors/MsgProcessorFactory.html" target="classFrame">MsgProcessorFactory</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/MsgValidator.html" target="classFrame">MsgValidator</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/Nack.html" target="classFrame">Nack</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beans/NextMsgBean.html" target="classFrame">NextMsgBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beanmanagers/NextMsgBeanMgr.html" target="classFrame">NextMsgBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/persistent/PersistentCreateSeqBeanMgr.html" target="classFrame">PersistentCreateSeqBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/persistent/PersistentInvokerBeanMgr.html" target="classFrame">PersistentInvokerBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/persistent/PersistentNextMsgBeanMgr.html" target="classFrame">PersistentNextMsgBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/persistent/PersistentSenderBeanMgr.html" target="classFrame">PersistentSenderBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/persistent/PersistentSequencePropertyBeanMgr.html" target="classFrame">PersistentSequencePropertyBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/persistent/PersistentStorageManager.html" target="classFrame">PersistentStorageManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/PropertyManager.html" target="classFrame">PropertyManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beans/RMBean.html" target="classFrame">RMBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beanmanagers/RMBeanManager.html" target="classFrame">RMBeanManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/RMElements.html" target="classFrame">RMElements</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgreceivers/RMMessageReceiver.html" target="classFrame">RMMessageReceiver</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/RMMsgContext.html" target="classFrame">RMMsgContext</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/RMMsgCreator.html" target="classFrame">RMMsgCreator</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/policy/RMPolicyBean.html" target="classFrame">RMPolicyBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/RMPolicyManager.html" target="classFrame">RMPolicyManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/SOAPAbstractFactory.html" target="classFrame">SOAPAbstractFactory</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/SOAPFaultEnvelopeCreator.html" target="classFrame">SOAPFaultEnvelopeCreator</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/Sandesha2Constants.html" target="classFrame">Sandesha2Constants</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/SandeshaException.html" target="classFrame">SandeshaException</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/handlers/SandeshaGlobalInHandler.html" target="classFrame">SandeshaGlobalInHandler</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/handlers/SandeshaInHandler.html" target="classFrame">SandeshaInHandler</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/SandeshaModule.html" target="classFrame">SandeshaModule</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/handlers/SandeshaOutHandler.html" target="classFrame">SandeshaOutHandler</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/SandeshaPropertyBean.html" target="classFrame">SandeshaPropertyBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/SandeshaUtil.html" target="classFrame">SandeshaUtil</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/workers/Sender.html" target="classFrame">Sender</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beans/SenderBean.html" target="classFrame">SenderBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beanmanagers/SenderBeanMgr.html" target="classFrame">SenderBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/Sequence.html" target="classFrame">Sequence</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/SequenceAcknowledgement.html" target="classFrame">SequenceAcknowledgement</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/SequenceFault.html" target="classFrame">SequenceFault</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/util/SequenceManager.html" target="classFrame">SequenceManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/SequenceOffer.html" target="classFrame">SequenceOffer</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beans/SequencePropertyBean.html" target="classFrame">SequencePropertyBean</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/beanmanagers/SequencePropertyBeanMgr.html" target="classFrame">SequencePropertyBeanMgr</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/StorageManager.html" target="classFrame">StorageManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/TerminateManager.html" target="classFrame">TerminateManager</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/msgprocessors/TerminateSeqMsgProcessor.html" target="classFrame">TerminateSeqMsgProcessor</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/wsrm/TerminateSequence.html" target="classFrame">TerminateSequence</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/Transaction.html" target="classFrame">Transaction</a>
+          </li>
+        
+          <li>
+            <a href="org/apache/sandesha2/storage/persistent/TransactionImpl.html" target="classFrame">TransactionImpl</a>
+          </li>
+        
+      </ul>
+
+    </body>
+  </html>

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/index.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/index.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/index.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/index.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,22 @@
+
+  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "DTD/xhtml1-frameset.dtd">
+  <html lang="en">
+    <head>
+      <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+      <title>Apache Sandesha2 0.9 Reference</title>
+    </head>
+    <frameset cols="20%,80%">
+      <frameset rows="30%,70%">
+        <frame name="packageListFrame" src="overview-frame.html"></frame>
+        <frame name="packageFrame" src="allclasses-frame.html"></frame>
+      </frameset>
+      <frame name="classFrame" src="overview-summary.html"></frame>
+    </frameset>
+    <noframes>
+      <h1>Frame Alert</h1>
+      <p>
+        You don't have frames. Go
+        <a href="overview-summary.html">here</a>
+      </p>
+    </noframes>
+  </html>

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/AcknowledgementManager.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/AcknowledgementManager.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/AcknowledgementManager.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/AcknowledgementManager.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,120 @@
+<!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>AcknowledgementManager xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/AcknowledgementManager.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> java.util.Collection;
+<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> org.apache.axis2.context.ConfigurationContext;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.context.MessageContext;
+<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.SenderBeanMgr;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.sandesha2.storage.beanmanagers.SequencePropertyBeanMgr;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.SenderBean;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.sandesha2.storage.beans.SequencePropertyBean;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.sandesha2.util.MsgInitializer;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.sandesha2.wsrm.Sequence;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.sandesha2.wsrm.SequenceAcknowledgement;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  <em>/**<em>*</em></em>
+<a name="36" href="#36">36</a>  <em> * Contains logic for managing acknowledgements.</em>
+<a name="37" href="#37">37</a>  <em> * </em>
+<a name="38" href="#38">38</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></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/AcknowledgementManager.html">AcknowledgementManager</a> {
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<em>/**<em>*</em></em>
+<a name="44" href="#44">44</a>  <em>	 * Piggybacks any available acks of the same sequence to the given application message.</em>
+<a name="45" href="#45">45</a>  <em>	 * </em>
+<a name="46" href="#46">46</a>  <em>	 * @param applicationRMMsgContext</em>
+<a name="47" href="#47">47</a>  <em>	 * @throws SandeshaException</em>
+<a name="48" href="#48">48</a>  <em>	 */</em>
+<a name="49" href="#49">49</a>  	<strong>public</strong> <strong>static</strong> <strong>void</strong> piggybackAckIfPresent(
+<a name="50" href="#50">50</a>  			RMMsgContext applicationRMMsgContext) throws SandeshaException {
+<a name="51" href="#51">51</a>  		ConfigurationContext configurationContext = applicationRMMsgContext
+<a name="52" href="#52">52</a>  				.getMessageContext().getSystemContext();
+<a name="53" href="#53">53</a>  		StorageManager storageManager = <a href="../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="54" href="#54">54</a>  				.getSandeshaStorageManager(configurationContext);
+<a name="55" href="#55">55</a>  		SenderBeanMgr retransmitterBeanMgr = storageManager
+<a name="56" href="#56">56</a>  				.getRetransmitterBeanMgr();
+<a name="57" href="#57">57</a>  		SequencePropertyBeanMgr sequencePropertyBeanMgr = storageManager
+<a name="58" href="#58">58</a>  				.getSequencePropretyBeanMgr();
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  		SenderBean findBean = <strong>new</strong> <a href="../../../org/apache/sandesha2/storage/beans/SenderBean.html">SenderBean</a>();
+<a name="61" href="#61">61</a>  
+<a name="62" href="#62">62</a>  		Sequence sequence = (Sequence) applicationRMMsgContext
+<a name="63" href="#63">63</a>  				.getMessagePart(Sandesha2Constants.MessageParts.SEQUENCE);
+<a name="64" href="#64">64</a>  		<strong>if</strong> (sequence == <strong>null</strong>)
+<a name="65" href="#65">65</a>  			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(
+<a name="66" href="#66">66</a>  					<span class="string">"Application message does not contain a sequence part"</span>);
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>  		String sequenceId = sequence.getIdentifier().getIdentifier();
+<a name="69" href="#69">69</a>  
+<a name="70" href="#70">70</a>  		SequencePropertyBean internalSequenceBean = sequencePropertyBeanMgr
+<a name="71" href="#71">71</a>  				.retrieve(sequenceId,
+<a name="72" href="#72">72</a>  						Sandesha2Constants.SequenceProperties.INTERNAL_SEQUENCE_ID);
+<a name="73" href="#73">73</a>  		<strong>if</strong> (internalSequenceBean == <strong>null</strong>)
+<a name="74" href="#74">74</a>  			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(<span class="string">"Temp Sequence is not set"</span>);
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  		String internalSequenceId = (String) internalSequenceBean.getValue();
+<a name="77" href="#77">77</a>  		findBean.setInternalSequenceId(internalSequenceId);
+<a name="78" href="#78">78</a>  		findBean.setMessagetype(Sandesha2Constants.MessageTypes.ACK);
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  		Collection collection = retransmitterBeanMgr.find(findBean);
+<a name="81" href="#81">81</a>  		Iterator it = collection.iterator();
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  		<strong>if</strong> (it.hasNext()) {
+<a name="84" href="#84">84</a>  			SenderBean ackBean = (SenderBean) it.next();
+<a name="85" href="#85">85</a>  
+<a name="86" href="#86">86</a>  			<em class="comment">//deleting the ack entry.</em>
+<a name="87" href="#87">87</a>  			retransmitterBeanMgr.delete(ackBean.getMessageId());
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  			<em class="comment">//Adding the ack to the application message</em>
+<a name="90" href="#90">90</a>  			MessageContext ackMsgContext = <a href="../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="91" href="#91">91</a>  					.getStoredMessageContext(ackBean.getKey());
+<a name="92" href="#92">92</a>  			RMMsgContext ackRMMsgContext = <a href="../../../org/apache/sandesha2/util/MsgInitializer.html">MsgInitializer</a>
+<a name="93" href="#93">93</a>  					.initializeMessage(ackMsgContext);
+<a name="94" href="#94">94</a>  			<strong>if</strong> (ackRMMsgContext.getMessageType() != Sandesha2Constants.MessageTypes.ACK)
+<a name="95" href="#95">95</a>  				<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(<span class="string">"Invalid ack message entry"</span>);
+<a name="96" href="#96">96</a>  
+<a name="97" href="#97">97</a>  			SequenceAcknowledgement sequenceAcknowledgement = (SequenceAcknowledgement) ackRMMsgContext
+<a name="98" href="#98">98</a>  					.getMessagePart(Sandesha2Constants.MessageParts.SEQ_ACKNOWLEDGEMENT);
+<a name="99" href="#99">99</a>  			applicationRMMsgContext.setMessagePart(
+<a name="100" href="#100">100</a> 					Sandesha2Constants.MessageParts.SEQ_ACKNOWLEDGEMENT,
+<a name="101" href="#101">101</a> 					sequenceAcknowledgement);
+<a name="102" href="#102">102</a> 
+<a name="103" href="#103">103</a> 			applicationRMMsgContext.addSOAPEnvelope();
+<a name="104" href="#104">104</a> 		}
+<a name="105" href="#105">105</a> 
+<a name="106" href="#106">106</a> 	}
+<a name="107" href="#107">107</a> }
+</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/FaultData.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/FaultData.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/FaultData.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/FaultData.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,103 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1" /><title>FaultData xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/FaultData.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.om.OMElement;
+<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> * Used to hold data related to a RM Fault.</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/FaultData.html">FaultData</a> {
+<a name="30" href="#30">30</a>  
+<a name="31" href="#31">31</a>  	<strong>private</strong> <strong>int</strong> type;
+<a name="32" href="#32">32</a>  
+<a name="33" href="#33">33</a>  	<strong>private</strong> String code;
+<a name="34" href="#34">34</a>  
+<a name="35" href="#35">35</a>  	<strong>private</strong> String subcode;
+<a name="36" href="#36">36</a>  
+<a name="37" href="#37">37</a>  	<strong>private</strong> String reason;
+<a name="38" href="#38">38</a>  
+<a name="39" href="#39">39</a>  	<strong>private</strong> OMElement detail;
+<a name="40" href="#40">40</a>  
+<a name="41" href="#41">41</a>  	<strong>private</strong> String sequenceId;
+<a name="42" href="#42">42</a>  
+<a name="43" href="#43">43</a>  	<strong>public</strong> OMElement getDetail() {
+<a name="44" href="#44">44</a>  		<strong>return</strong> detail;
+<a name="45" href="#45">45</a>  	}
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  	<strong>public</strong> <strong>void</strong> setDetail(OMElement detail) {
+<a name="48" href="#48">48</a>  		<strong>this</strong>.detail = detail;
+<a name="49" href="#49">49</a>  	}
+<a name="50" href="#50">50</a>  
+<a name="51" href="#51">51</a>  	<strong>public</strong> String getReason() {
+<a name="52" href="#52">52</a>  		<strong>return</strong> reason;
+<a name="53" href="#53">53</a>  	}
+<a name="54" href="#54">54</a>  
+<a name="55" href="#55">55</a>  	<strong>public</strong> <strong>void</strong> setReason(String reason) {
+<a name="56" href="#56">56</a>  		<strong>this</strong>.reason = reason;
+<a name="57" href="#57">57</a>  	}
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  	<strong>public</strong> String getSubcode() {
+<a name="60" href="#60">60</a>  		<strong>return</strong> subcode;
+<a name="61" href="#61">61</a>  	}
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  	<strong>public</strong> <strong>void</strong> setSubcode(String subcode) {
+<a name="64" href="#64">64</a>  		<strong>this</strong>.subcode = subcode;
+<a name="65" href="#65">65</a>  	}
+<a name="66" href="#66">66</a>  
+<a name="67" href="#67">67</a>  	<strong>public</strong> <strong>int</strong> getType() {
+<a name="68" href="#68">68</a>  		<strong>return</strong> type;
+<a name="69" href="#69">69</a>  	}
+<a name="70" href="#70">70</a>  
+<a name="71" href="#71">71</a>  	<strong>public</strong> <strong>void</strong> setType(<strong>int</strong> type) {
+<a name="72" href="#72">72</a>  		<strong>this</strong>.type = type;
+<a name="73" href="#73">73</a>  	}
+<a name="74" href="#74">74</a>  
+<a name="75" href="#75">75</a>  	<strong>public</strong> String getCode() {
+<a name="76" href="#76">76</a>  		<strong>return</strong> code;
+<a name="77" href="#77">77</a>  	}
+<a name="78" href="#78">78</a>  
+<a name="79" href="#79">79</a>  	<strong>public</strong> <strong>void</strong> setCode(String code) {
+<a name="80" href="#80">80</a>  		<strong>this</strong>.code = code;
+<a name="81" href="#81">81</a>  	}
+<a name="82" href="#82">82</a>  
+<a name="83" href="#83">83</a>  	<strong>public</strong> String getSequenceId() {
+<a name="84" href="#84">84</a>  		<strong>return</strong> sequenceId;
+<a name="85" href="#85">85</a>  	}
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  	<strong>public</strong> <strong>void</strong> setSequenceId(String sequenceId) {
+<a name="88" href="#88">88</a>  		<strong>this</strong>.sequenceId = sequenceId;
+<a name="89" href="#89">89</a>  	}
+<a name="90" href="#90">90</a>  }
+</pre>
+<hr/><div id="footer">This page was automatically generated by <a href="http://maven.apache.org/">Maven</a></div></body>
+</html>
+

Added: webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/RMMsgContext.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/RMMsgContext.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/RMMsgContext.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/RMMsgContext.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,257 @@
+<!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>RMMsgContext xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/RMMsgContext.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> java.util.HashMap;
+<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.stream.XMLOutputFactory;
+<a name="24" href="#24">24</a>  <strong>import</strong> javax.xml.stream.XMLStreamWriter;
+<a name="25" href="#25">25</a>  
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.AxisFault;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.addressing.EndpointReference;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.addressing.RelatesTo;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.axis2.context.AbstractContext;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.axis2.context.MessageContext;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.sandesha2.util.SOAPAbstractFactory;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.sandesha2.wsrm.IOMRMElement;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.sandesha2.wsrm.IOMRMPart;
+<a name="35" href="#35">35</a>  
+<a name="36" href="#36">36</a>  <em>/**<em>*</em></em>
+<a name="37" href="#37">37</a>  <em> * This class is used to hold a MessageContext within Sandesha. This is used to</em>
+<a name="38" href="#38">38</a>  <em> * easily manupilate the properties of a MessageContext.</em>
+<a name="39" href="#39">39</a>  <em> * </em>
+<a name="40" href="#40">40</a>  <em> * </em>
+<a name="41" href="#41">41</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="42" href="#42">42</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="43" href="#43">43</a>  <em> * @author Jaliya Ekanayaka &lt;jaliya@opensource.lk></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/RMMsgContext.html">RMMsgContext</a> {
+<a name="47" href="#47">47</a>  
+<a name="48" href="#48">48</a>  	<strong>private</strong> MessageContext msgContext;
+<a name="49" href="#49">49</a>  
+<a name="50" href="#50">50</a>  	<strong>private</strong> HashMap rmMessageParts;
+<a name="51" href="#51">51</a>  
+<a name="52" href="#52">52</a>  	<strong>private</strong> <strong>int</strong> messageType;
+<a name="53" href="#53">53</a>  
+<a name="54" href="#54">54</a>  	<strong>public</strong> <a href="../../../org/apache/sandesha2/RMMsgContext.html">RMMsgContext</a>() {
+<a name="55" href="#55">55</a>  		rmMessageParts = <strong>new</strong> HashMap();
+<a name="56" href="#56">56</a>  		messageType = Sandesha2Constants.MessageTypes.UNKNOWN;
+<a name="57" href="#57">57</a>  	}
+<a name="58" href="#58">58</a>  
+<a name="59" href="#59">59</a>  	<strong>public</strong> <strong>void</strong> setMessageContext(MessageContext msgCtx) {
+<a name="60" href="#60">60</a>  		<strong>this</strong>.msgContext = msgCtx;
+<a name="61" href="#61">61</a>  	}
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  	<strong>public</strong> <a href="../../../org/apache/sandesha2/RMMsgContext.html">RMMsgContext</a>(MessageContext ctx) {
+<a name="64" href="#64">64</a>  		<strong>this</strong>();
+<a name="65" href="#65">65</a>  		<strong>this</strong>.msgContext = ctx;
+<a name="66" href="#66">66</a>  	}
+<a name="67" href="#67">67</a>  
+<a name="68" href="#68">68</a>  	<em>/**<em>*</em></em>
+<a name="69" href="#69">69</a>  <em>	 * To add a new SOAP envelope to the message. The generated envelope will belong </em>
+<a name="70" href="#70">70</a>  <em>	 * to the SOAP version of the MessageContext.</em>
+<a name="71" href="#71">71</a>  <em>	 * </em>
+<a name="72" href="#72">72</a>  <em>	 * @throws SandeshaException</em>
+<a name="73" href="#73">73</a>  <em>	 */</em>
+<a name="74" href="#74">74</a>  	<strong>public</strong> <strong>void</strong> addSOAPEnvelope() throws SandeshaException {
+<a name="75" href="#75">75</a>  		<strong>int</strong> SOAPVersion = Sandesha2Constants.SOAPVersion.v1_1;
+<a name="76" href="#76">76</a>  
+<a name="77" href="#77">77</a>  		<strong>if</strong> (!msgContext.isSOAP11())
+<a name="78" href="#78">78</a>  			SOAPVersion = Sandesha2Constants.SOAPVersion.v1_2;
+<a name="79" href="#79">79</a>  
+<a name="80" href="#80">80</a>  		<strong>if</strong> (msgContext.getEnvelope() == <strong>null</strong>) {
+<a name="81" href="#81">81</a>  			<strong>try</strong> {
+<a name="82" href="#82">82</a>  				msgContext.setEnvelope(SOAPAbstractFactory.getSOAPFactory(
+<a name="83" href="#83">83</a>  						SOAPVersion).getDefaultEnvelope());
+<a name="84" href="#84">84</a>  			} <strong>catch</strong> (AxisFault e) {
+<a name="85" href="#85">85</a>  				<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(e.getMessage());
+<a name="86" href="#86">86</a>  			}
+<a name="87" href="#87">87</a>  		}
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  		SOAPEnvelope envelope = msgContext.getEnvelope();
+<a name="90" href="#90">90</a>  		Iterator keys = rmMessageParts.keySet().iterator();
+<a name="91" href="#91">91</a>  		<strong>while</strong> (keys.hasNext()) {
+<a name="92" href="#92">92</a>  			Object key = keys.next();
+<a name="93" href="#93">93</a>  			IOMRMPart rmPart = (IOMRMPart) rmMessageParts.get(key);
+<a name="94" href="#94">94</a>  			rmPart.toSOAPEnvelope(envelope);
+<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>  	<strong>public</strong> <strong>int</strong> getMessageType() {
+<a name="99" href="#99">99</a>  		<strong>return</strong> messageType;
+<a name="100" href="#100">100</a> 	}
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> 	
+<a name="103" href="#103">103</a> 	<em>/**<em>*</em></em>
+<a name="104" href="#104">104</a> <em>	 * The message type can be used to easily identify what this message is.</em>
+<a name="105" href="#105">105</a> <em>	 * Possible message types are given in the Constnts.MessageTypes interface.</em>
+<a name="106" href="#106">106</a> <em>	 * </em>
+<a name="107" href="#107">107</a> <em>	 * @param msgType</em>
+<a name="108" href="#108">108</a> <em>	 */</em>
+<a name="109" href="#109">109</a> 	<strong>public</strong> <strong>void</strong> setMessageType(<strong>int</strong> msgType) {
+<a name="110" href="#110">110</a> 		<strong>if</strong> (msgType >= 0 &amp;&amp; msgType &lt;= Sandesha2Constants.MessageTypes.MAX_MESSAGE_TYPE)
+<a name="111" href="#111">111</a> 			<strong>this</strong>.messageType = msgType;
+<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> 	<em>/**<em>*</em></em>
+<a name="116" href="#116">116</a> <em>	 * Sets an IRMPart object to the MessageContext. Possible parts are give in the </em>
+<a name="117" href="#117">117</a> <em>	 * </em>
+<a name="118" href="#118">118</a> <em>	 * </em>
+<a name="119" href="#119">119</a> <em>	 * @param partId</em>
+<a name="120" href="#120">120</a> <em>	 * @param part</em>
+<a name="121" href="#121">121</a> <em>	 */</em>
+<a name="122" href="#122">122</a> 	<strong>public</strong> <strong>void</strong> setMessagePart(<strong>int</strong> partId, <a href="../../../org/apache/sandesha2/wsrm/IOMRMPart.html">IOMRMPart</a> part) {
+<a name="123" href="#123">123</a> 		<strong>if</strong> (partId >= 0 &amp;&amp; partId &lt;= Sandesha2Constants.MessageParts.MAX_MSG_PART_ID)
+<a name="124" href="#124">124</a> 			rmMessageParts.put(<strong>new</strong> Integer(partId), part);
+<a name="125" href="#125">125</a> 	}
+<a name="126" href="#126">126</a> 
+<a name="127" href="#127">127</a> 	<strong>public</strong> <a href="../../../org/apache/sandesha2/wsrm/IOMRMElement.html">IOMRMElement</a> getMessagePart(<strong>int</strong> partId) {
+<a name="128" href="#128">128</a> 		<strong>return</strong> (IOMRMElement) rmMessageParts.get(<strong>new</strong> Integer(partId));
+<a name="129" href="#129">129</a> 	}
+<a name="130" href="#130">130</a> 
+<a name="131" href="#131">131</a> 	<strong>public</strong> EndpointReference getFrom() {
+<a name="132" href="#132">132</a> 		<strong>return</strong> msgContext.getFrom();
+<a name="133" href="#133">133</a> 	}
+<a name="134" href="#134">134</a> 
+<a name="135" href="#135">135</a> 	<strong>public</strong> EndpointReference getTo() {
+<a name="136" href="#136">136</a> 		<strong>return</strong> msgContext.getTo();
+<a name="137" href="#137">137</a> 	}
+<a name="138" href="#138">138</a> 
+<a name="139" href="#139">139</a> 	<strong>public</strong> EndpointReference getReplyTo() {
+<a name="140" href="#140">140</a> 		<strong>return</strong> msgContext.getReplyTo();
+<a name="141" href="#141">141</a> 	}
+<a name="142" href="#142">142</a> 
+<a name="143" href="#143">143</a> 	<strong>public</strong> RelatesTo getRelatesTo() {
+<a name="144" href="#144">144</a> 		<strong>return</strong> msgContext.getRelatesTo();
+<a name="145" href="#145">145</a> 	}
+<a name="146" href="#146">146</a> 
+<a name="147" href="#147">147</a> 	<strong>public</strong> String getMessageId() {
+<a name="148" href="#148">148</a> 		<strong>return</strong> msgContext.getMessageID();
+<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> setFaultTo(EndpointReference epr) {
+<a name="152" href="#152">152</a> 		msgContext.setFaultTo(epr);
+<a name="153" href="#153">153</a> 	}
+<a name="154" href="#154">154</a> 
+<a name="155" href="#155">155</a> 	<strong>public</strong> EndpointReference getFaultTo() {
+<a name="156" href="#156">156</a> 		<strong>return</strong> msgContext.getFaultTo();
+<a name="157" href="#157">157</a> 	}
+<a name="158" href="#158">158</a> 
+<a name="159" href="#159">159</a> 	<strong>public</strong> SOAPEnvelope getSOAPEnvelope() {
+<a name="160" href="#160">160</a> 		<strong>return</strong> msgContext.getEnvelope();
+<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> setSOAPEnvelop(SOAPEnvelope envelope) throws SandeshaException {
+<a name="164" href="#164">164</a> 
+<a name="165" href="#165">165</a> 		<strong>try</strong> {
+<a name="166" href="#166">166</a> 			msgContext.setEnvelope(envelope);
+<a name="167" href="#167">167</a> 		} <strong>catch</strong> (AxisFault e) {
+<a name="168" href="#168">168</a> 			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(e.getMessage());
+<a name="169" href="#169">169</a> 		}
+<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> serializeSOAPEnvelop() {
+<a name="173" href="#173">173</a> 		<strong>try</strong> {
+<a name="174" href="#174">174</a> 			SOAPEnvelope envelop = msgContext.getEnvelope();
+<a name="175" href="#175">175</a> 			XMLStreamWriter writer = XMLOutputFactory.newInstance()
+<a name="176" href="#176">176</a> 					.createXMLStreamWriter(System.out);
+<a name="177" href="#177">177</a> 			envelop.serialize(writer);
+<a name="178" href="#178">178</a> 		} <strong>catch</strong> (Exception ex) {
+<a name="179" href="#179">179</a> 			ex.printStackTrace();
+<a name="180" href="#180">180</a> 		}
+<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>void</strong> setFrom(EndpointReference epr) {
+<a name="184" href="#184">184</a> 		msgContext.setFrom(epr);
+<a name="185" href="#185">185</a> 	}
+<a name="186" href="#186">186</a> 
+<a name="187" href="#187">187</a> 	<strong>public</strong> <strong>void</strong> setTo(EndpointReference epr) {
+<a name="188" href="#188">188</a> 		msgContext.setTo(epr);
+<a name="189" href="#189">189</a> 	}
+<a name="190" href="#190">190</a> 
+<a name="191" href="#191">191</a> 	<strong>public</strong> <strong>void</strong> setReplyTo(EndpointReference epr) {
+<a name="192" href="#192">192</a> 		msgContext.setReplyTo(epr);
+<a name="193" href="#193">193</a> 	}
+<a name="194" href="#194">194</a> 
+<a name="195" href="#195">195</a> 	<strong>public</strong> <strong>void</strong> setMessageId(String messageId) {
+<a name="196" href="#196">196</a> 		msgContext.setMessageID(messageId);
+<a name="197" href="#197">197</a> 	}
+<a name="198" href="#198">198</a> 
+<a name="199" href="#199">199</a> 	<strong>public</strong> <strong>void</strong> setAction(String action) {
+<a name="200" href="#200">200</a> 		msgContext.setWSAAction(action);
+<a name="201" href="#201">201</a> 	}
+<a name="202" href="#202">202</a> 
+<a name="203" href="#203">203</a> 	<strong>public</strong> <strong>void</strong> setRelatesTo(RelatesTo relatesTo) {
+<a name="204" href="#204">204</a> 		msgContext.setRelatesTo(relatesTo);
+<a name="205" href="#205">205</a> 	}
+<a name="206" href="#206">206</a> 
+<a name="207" href="#207">207</a> 	<strong>public</strong> <strong>void</strong> setWSAAction(String URI) {
+<a name="208" href="#208">208</a> 		msgContext.setWSAAction(URI);
+<a name="209" href="#209">209</a> 	}
+<a name="210" href="#210">210</a> 
+<a name="211" href="#211">211</a> 	<strong>public</strong> String getWSAAction() {
+<a name="212" href="#212">212</a> 		<strong>return</strong> msgContext.getWSAAction();
+<a name="213" href="#213">213</a> 	}
+<a name="214" href="#214">214</a> 
+<a name="215" href="#215">215</a> 	<strong>public</strong> MessageContext getMessageContext() {
+<a name="216" href="#216">216</a> 		<strong>return</strong> msgContext;
+<a name="217" href="#217">217</a> 	}
+<a name="218" href="#218">218</a> 
+<a name="219" href="#219">219</a> 	<strong>public</strong> Object getProperty(String key) {
+<a name="220" href="#220">220</a> 		<strong>if</strong> (msgContext == <strong>null</strong>)
+<a name="221" href="#221">221</a> 			<strong>return</strong> <strong>null</strong>;
+<a name="222" href="#222">222</a> 
+<a name="223" href="#223">223</a> 		<strong>return</strong> msgContext.getProperty(key);
+<a name="224" href="#224">224</a> 	}
+<a name="225" href="#225">225</a> 
+<a name="226" href="#226">226</a> 	<strong>public</strong> <strong>boolean</strong> setProperty(String key, Object val) {
+<a name="227" href="#227">227</a> 		<strong>if</strong> (msgContext == <strong>null</strong>)
+<a name="228" href="#228">228</a> 			<strong>return</strong> false;
+<a name="229" href="#229">229</a> 
+<a name="230" href="#230">230</a> 		msgContext.setProperty(key, val);
+<a name="231" href="#231">231</a> 		<strong>return</strong> <strong>true</strong>;
+<a name="232" href="#232">232</a> 	}
+<a name="233" href="#233">233</a> 
+<a name="234" href="#234">234</a> 	<strong>public</strong> AbstractContext getContext() {
+<a name="235" href="#235">235</a> 		<strong>if</strong> (msgContext == <strong>null</strong>)
+<a name="236" href="#236">236</a> 			<strong>return</strong> <strong>null</strong>;
+<a name="237" href="#237">237</a> 
+<a name="238" href="#238">238</a> 		<strong>return</strong> msgContext.getSystemContext();
+<a name="239" href="#239">239</a> 	}
+<a name="240" href="#240">240</a> 
+<a name="241" href="#241">241</a> 	<strong>public</strong> <strong>void</strong> setSOAPAction(String SOAPAction) {
+<a name="242" href="#242">242</a> 		msgContext.setSoapAction(SOAPAction);
+<a name="243" href="#243">243</a> 	}
+<a name="244" href="#244">244</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/SOAPFaultEnvelopeCreator.html
URL: http://svn.apache.org/viewcvs/webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SOAPFaultEnvelopeCreator.html?rev=349924&view=auto
==============================================================================
--- webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SOAPFaultEnvelopeCreator.html (added)
+++ webservices/site/trunk/targets/sandesha/sandesha2/xref/org/apache/sandesha2/SOAPFaultEnvelopeCreator.html Wed Nov 30 03:11:01 2005
@@ -0,0 +1,221 @@
+<!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>SOAPFaultEnvelopeCreator xref</title>
+<link type="text/css" rel="stylesheet" href="../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../apidocs/org/apache/sandesha2/SOAPFaultEnvelopeCreator.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.context.MessageContext;
+<a name="22" href="#22">22</a>  <strong>import</strong> org.apache.axis2.om.OMConstants;
+<a name="23" href="#23">23</a>  <strong>import</strong> org.apache.axis2.om.OMElement;
+<a name="24" href="#24">24</a>  <strong>import</strong> org.apache.axis2.om.OMNamespace;
+<a name="25" href="#25">25</a>  <strong>import</strong> org.apache.axis2.soap.SOAPEnvelope;
+<a name="26" href="#26">26</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFactory;
+<a name="27" href="#27">27</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFault;
+<a name="28" href="#28">28</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFaultCode;
+<a name="29" href="#29">29</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFaultDetail;
+<a name="30" href="#30">30</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFaultReason;
+<a name="31" href="#31">31</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFaultSubCode;
+<a name="32" href="#32">32</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFaultText;
+<a name="33" href="#33">33</a>  <strong>import</strong> org.apache.axis2.soap.SOAPFaultValue;
+<a name="34" href="#34">34</a>  <strong>import</strong> org.apache.sandesha2.util.SOAPAbstractFactory;
+<a name="35" href="#35">35</a>  <strong>import</strong> org.apache.sandesha2.util.SandeshaUtil;
+<a name="36" href="#36">36</a>  <strong>import</strong> org.apache.sandesha2.wsrm.FaultCode;
+<a name="37" href="#37">37</a>  <strong>import</strong> org.apache.sandesha2.wsrm.SequenceFault;
+<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> * Used to create an SOAP Envelope for a RM Related Fault.</em>
+<a name="41" href="#41">41</a>  <em> * Support both SOAP 1.1 and SOAP 1.2 encoding.</em>
+<a name="42" href="#42">42</a>  <em> * </em>
+<a name="43" href="#43">43</a>  <em> * @author Sanka Samaranayaka &lt;ssanka@gmail.com></em>
+<a name="44" href="#44">44</a>  <em> * @author Chamikara Jayalath &lt;chamikaramj@gmail.com></em>
+<a name="45" href="#45">45</a>  <em> */</em>
+<a name="46" href="#46">46</a>  
+<a name="47" href="#47">47</a>  <strong>public</strong> <strong>class</strong> <a href="../../../org/apache/sandesha2/SOAPFaultEnvelopeCreator.html">SOAPFaultEnvelopeCreator</a> {
+<a name="48" href="#48">48</a>  
+<a name="49" href="#49">49</a>  	<em>/**<em>*</em></em>
+<a name="50" href="#50">50</a>  <em>	 * Adding the SOAP Fault Envelope. </em>
+<a name="51" href="#51">51</a>  <em>	 * </em>
+<a name="52" href="#52">52</a>  <em>	 * @param faultMsgContext</em>
+<a name="53" href="#53">53</a>  <em>	 * @param SOAPVersion</em>
+<a name="54" href="#54">54</a>  <em>	 * @param faultData</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> addSOAPFaultEnvelope(MessageContext faultMsgContext,
+<a name="58" href="#58">58</a>  			<strong>int</strong> SOAPVersion, <a href="../../../org/apache/sandesha2/FaultData.html">FaultData</a> faultData) throws SandeshaException {
+<a name="59" href="#59">59</a>  
+<a name="60" href="#60">60</a>  		SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(SOAPVersion);
+<a name="61" href="#61">61</a>  		SOAPEnvelope env = factory.getDefaultFaultEnvelope();
+<a name="62" href="#62">62</a>  
+<a name="63" href="#63">63</a>  		<strong>try</strong> {
+<a name="64" href="#64">64</a>  			faultMsgContext.setEnvelope(env);
+<a name="65" href="#65">65</a>  		} <strong>catch</strong> (AxisFault e) {
+<a name="66" href="#66">66</a>  			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(e.getMessage());
+<a name="67" href="#67">67</a>  		}
+<a name="68" href="#68">68</a>  
+<a name="69" href="#69">69</a>  		<strong>if</strong> (SOAPVersion == Sandesha2Constants.SOAPVersion.v1_1)
+<a name="70" href="#70">70</a>  			doSOAP11Encoding(faultMsgContext, faultData);
+<a name="71" href="#71">71</a>  		<strong>else</strong>
+<a name="72" href="#72">72</a>  			doSOAP12Encoding(faultMsgContext, faultData);
+<a name="73" href="#73">73</a>  
+<a name="74" href="#74">74</a>  	}
+<a name="75" href="#75">75</a>  
+<a name="76" href="#76">76</a>  	<em>/**<em>*</em></em>
+<a name="77" href="#77">77</a>  <em>	 * To find out weather this is a sequence fault. These faults are handeled differently </em>
+<a name="78" href="#78">78</a>  <em>	 * accodting to the RM spec.</em>
+<a name="79" href="#79">79</a>  <em>	 * </em>
+<a name="80" href="#80">80</a>  <em>	 * @param faultData</em>
+<a name="81" href="#81">81</a>  <em>	 * @return</em>
+<a name="82" href="#82">82</a>  <em>	 */</em>
+<a name="83" href="#83">83</a>  	<strong>private</strong> <strong>static</strong> <strong>boolean</strong> isSequenceFault(<a href="../../../org/apache/sandesha2/FaultData.html">FaultData</a> faultData) {
+<a name="84" href="#84">84</a>  
+<a name="85" href="#85">85</a>  		<strong>boolean</strong> sequenceFault = false;
+<a name="86" href="#86">86</a>  
+<a name="87" href="#87">87</a>  		<strong>int</strong> faultType = faultData.getType();
+<a name="88" href="#88">88</a>  
+<a name="89" href="#89">89</a>  		<strong>if</strong> (faultType &lt;= 0)
+<a name="90" href="#90">90</a>  			<strong>return</strong> false;
+<a name="91" href="#91">91</a>  
+<a name="92" href="#92">92</a>  		<strong>if</strong> (faultType == Sandesha2Constants.SOAPFaults.FaultType.CREATE_SEQUENCE_REFUSED)
+<a name="93" href="#93">93</a>  			sequenceFault = <strong>true</strong>;
+<a name="94" href="#94">94</a>  
+<a name="95" href="#95">95</a>  		<strong>if</strong> (faultType == Sandesha2Constants.SOAPFaults.FaultType.UNKNOWN_SEQUENCE)
+<a name="96" href="#96">96</a>  			sequenceFault = <strong>true</strong>;
+<a name="97" href="#97">97</a>  
+<a name="98" href="#98">98</a>  		<strong>return</strong> sequenceFault;
+<a name="99" href="#99">99</a>  
+<a name="100" href="#100">100</a> 	}
+<a name="101" href="#101">101</a> 
+<a name="102" href="#102">102</a> 	<em>/**<em>*</em></em>
+<a name="103" href="#103">103</a> <em>	 * Adding the SequenceFault header. Only for Sequence faults.</em>
+<a name="104" href="#104">104</a> <em>	 * </em>
+<a name="105" href="#105">105</a> <em>	 * @param faultMessageContext</em>
+<a name="106" href="#106">106</a> <em>	 * @param faultData</em>
+<a name="107" href="#107">107</a> <em>	 * @param factory</em>
+<a name="108" href="#108">108</a> <em>	 */</em>
+<a name="109" href="#109">109</a> 	<strong>private</strong> <strong>static</strong> <strong>void</strong> addSequenceFaultHeader(
+<a name="110" href="#110">110</a> 			MessageContext faultMessageContext, <a href="../../../org/apache/sandesha2/FaultData.html">FaultData</a> faultData,
+<a name="111" href="#111">111</a> 			SOAPFactory factory) {
+<a name="112" href="#112">112</a> 
+<a name="113" href="#113">113</a> 		SequenceFault sequenceFault = <strong>new</strong> <a href="../../../org/apache/sandesha2/wsrm/SequenceFault.html">SequenceFault</a>(factory);
+<a name="114" href="#114">114</a> 
+<a name="115" href="#115">115</a> 		FaultCode faultCode = <strong>new</strong> <a href="../../../org/apache/sandesha2/wsrm/FaultCode.html">FaultCode</a>(factory);
+<a name="116" href="#116">116</a> 		faultCode.setFaultCode(faultData.getSubcode());
+<a name="117" href="#117">117</a> 		sequenceFault.setFaultCode(faultCode);
+<a name="118" href="#118">118</a> 	}
+<a name="119" href="#119">119</a> 
+<a name="120" href="#120">120</a> 	<em>/**<em>*</em></em>
+<a name="121" href="#121">121</a> <em>	 * Building the envelope with SOAP 1.1</em>
+<a name="122" href="#122">122</a> <em>	 * </em>
+<a name="123" href="#123">123</a> <em>	 * @param faultMsgContext</em>
+<a name="124" href="#124">124</a> <em>	 * @param data</em>
+<a name="125" href="#125">125</a> <em>	 * @throws SandeshaException</em>
+<a name="126" href="#126">126</a> <em>	 */</em>
+<a name="127" href="#127">127</a> 	<strong>private</strong> <strong>static</strong> <strong>void</strong> doSOAP11Encoding(MessageContext faultMsgContext,
+<a name="128" href="#128">128</a> 			FaultData data) throws SandeshaException {
+<a name="129" href="#129">129</a> 
+<a name="130" href="#130">130</a> 		SOAPEnvelope faultMsgEnvelope = faultMsgContext.getEnvelope();
+<a name="131" href="#131">131</a> 		<strong>if</strong> (faultMsgEnvelope == <strong>null</strong>)
+<a name="132" href="#132">132</a> 			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(<span class="string">"SOAP Envelope is null"</span>);
+<a name="133" href="#133">133</a> 
+<a name="134" href="#134">134</a> 		SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(<a href="../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="135" href="#135">135</a> 				.getSOAPVersion(faultMsgEnvelope));
+<a name="136" href="#136">136</a> 
+<a name="137" href="#137">137</a> 		SOAPFault fault = faultMsgEnvelope.getBody().getFault();
+<a name="138" href="#138">138</a> 		SOAPFaultCode faultCode = fault.getCode();
+<a name="139" href="#139">139</a> 
+<a name="140" href="#140">140</a> 		<strong>if</strong> (isSequenceFault(data)) {
+<a name="141" href="#141">141</a> 			faultCode.setText(data.getCode());
+<a name="142" href="#142">142</a> 		} <strong>else</strong> {
+<a name="143" href="#143">143</a> 			faultCode.setText(data.getSubcode());
+<a name="144" href="#144">144</a> 		}
+<a name="145" href="#145">145</a> 
+<a name="146" href="#146">146</a> 		SOAPFaultReason faultReason = fault.getReason();
+<a name="147" href="#147">147</a> 
+<a name="148" href="#148">148</a> 		OMNamespace namespace = factory.createOMNamespace(
+<a name="149" href="#149">149</a> 				OMConstants.XMLNS_URI, OMConstants.XMLNS_PREFIX);
+<a name="150" href="#150">150</a> 		faultReason.getSOAPText().addAttribute(<span class="string">"lang"</span>, <span class="string">"en"</span>, namespace);
+<a name="151" href="#151">151</a> 
+<a name="152" href="#152">152</a> 		faultReason.setText(data.getReason());
+<a name="153" href="#153">153</a> 		faultCode.getValue().setText(data.getSubcode());
+<a name="154" href="#154">154</a> 		faultReason.getSOAPText().setText(data.getReason());
+<a name="155" href="#155">155</a> 
+<a name="156" href="#156">156</a> 		<em class="comment">//SequenceFault header is added only for SOAP 1.1</em>
+<a name="157" href="#157">157</a> 		<strong>if</strong> (isSequenceFault(data))
+<a name="158" href="#158">158</a> 			addSequenceFaultHeader(faultMsgContext, data, factory);
+<a name="159" href="#159">159</a> 
+<a name="160" href="#160">160</a> 	}
+<a name="161" href="#161">161</a> 
+<a name="162" href="#162">162</a> 	
+<a name="163" href="#163">163</a> 	<em>/**<em>*</em></em>
+<a name="164" href="#164">164</a> <em>	 * Building the envelope with SOAP 1.2</em>
+<a name="165" href="#165">165</a> <em>	 * </em>
+<a name="166" href="#166">166</a> <em>	 * @param faultMsgContext</em>
+<a name="167" href="#167">167</a> <em>	 * @param data</em>
+<a name="168" href="#168">168</a> <em>	 * @throws SandeshaException</em>
+<a name="169" href="#169">169</a> <em>	 */</em>
+<a name="170" href="#170">170</a> 	<strong>private</strong> <strong>static</strong> <strong>void</strong> doSOAP12Encoding(MessageContext faultMsgContext,
+<a name="171" href="#171">171</a> 			FaultData data) throws SandeshaException {
+<a name="172" href="#172">172</a> 
+<a name="173" href="#173">173</a> 		SOAPEnvelope faultEnvelope = faultMsgContext.getEnvelope();
+<a name="174" href="#174">174</a> 		<strong>if</strong> (faultEnvelope == <strong>null</strong>)
+<a name="175" href="#175">175</a> 			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(<span class="string">"SOAP Envelope is null"</span>);
+<a name="176" href="#176">176</a> 
+<a name="177" href="#177">177</a> 		SOAPFactory factory = SOAPAbstractFactory.getSOAPFactory(<a href="../../../org/apache/sandesha2/util/SandeshaUtil.html">SandeshaUtil</a>
+<a name="178" href="#178">178</a> 				.getSOAPVersion(faultEnvelope));
+<a name="179" href="#179">179</a> 
+<a name="180" href="#180">180</a> 		SOAPFault fault = faultEnvelope.getBody().getFault();
+<a name="181" href="#181">181</a> 		<strong>if</strong> (fault == <strong>null</strong>)
+<a name="182" href="#182">182</a> 			<strong>throw</strong> <strong>new</strong> <a href="../../../org/apache/sandesha2/SandeshaException.html">SandeshaException</a>(<span class="string">"Fault part is null"</span>);
+<a name="183" href="#183">183</a> 
+<a name="184" href="#184">184</a> 		SOAPFaultCode faultCode = fault.getCode();
+<a name="185" href="#185">185</a> 		SOAPFaultValue codeValue = faultCode.getValue();
+<a name="186" href="#186">186</a> 		codeValue.setText(data.getCode());
+<a name="187" href="#187">187</a> 
+<a name="188" href="#188">188</a> 		SOAPFaultSubCode faultSubCode = factory
+<a name="189" href="#189">189</a> 				.createSOAPFaultSubCode(faultCode);
+<a name="190" href="#190">190</a> 		SOAPFaultValue subCodeValue = factory
+<a name="191" href="#191">191</a> 				.createSOAPFaultValue(faultSubCode);
+<a name="192" href="#192">192</a> 		subCodeValue.setText(data.getSubcode());
+<a name="193" href="#193">193</a> 
+<a name="194" href="#194">194</a> 		SOAPFaultReason faultReason = fault.getReason();
+<a name="195" href="#195">195</a> 		SOAPFaultText faultText = faultReason.getSOAPText();
+<a name="196" href="#196">196</a> 		faultText.setText(data.getReason());
+<a name="197" href="#197">197</a> 
+<a name="198" href="#198">198</a> 		SOAPFaultDetail faultDetail = fault.getDetail();
+<a name="199" href="#199">199</a> 
+<a name="200" href="#200">200</a> 		OMElement detailElement = data.getDetail();
+<a name="201" href="#201">201</a> 
+<a name="202" href="#202">202</a> 		<strong>if</strong> (detailElement != <strong>null</strong>)
+<a name="203" href="#203">203</a> 			faultDetail.addChild(detailElement);
+<a name="204" href="#204">204</a> 
+<a name="205" href="#205">205</a> 		faultMsgContext.setWSAAction(Sandesha2Constants.WSA.SOAP_FAULT_ACTION);
+<a name="206" href="#206">206</a> 	}
+<a name="207" href="#207">207</a> 
+<a name="208" href="#208">208</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