You are viewing a plain text version of this content. The canonical link for it is here.
Posted to muse-dev@ws.apache.org by wi...@apache.org on 2005/08/12 22:45:46 UTC
svn commit: r232376 [99/112] - in
/webservices/muse/trunk/src/examples/client: ./ bin/ bin/axis/
bin/axis/com/ bin/axis/com/xyz/ bin/org/ bin/org/apache/ bin/org/apache/ws/
bin/org/apache/ws/client/ bin/org/apache/ws/client/async/
bin/org/apache/ws/cli...
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/SimplePortListener.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/SimplePortListener.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/SimplePortListener.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/SimplePortListener.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,369 @@
+<!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>SimplePortListener xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/ws/client/util/SimplePortListener.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a> <em class="comment"> * Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P. *</em>
+<a name="3" href="#3">3</a> <em class="comment"> *=============================================================================*/</em>
+<a name="4" href="#4">4</a> <strong>package</strong> <a href="../../../../../org/apache/ws/client/util/package-summary.html">org.apache.ws.client.util</a>;
+<a name="5" href="#5">5</a>
+<a name="6" href="#6">6</a> <strong>import</strong> java.io.BufferedInputStream;
+<a name="7" href="#7">7</a> <strong>import</strong> java.io.BufferedOutputStream;
+<a name="8" href="#8">8</a> <strong>import</strong> java.io.IOException;
+<a name="9" href="#9">9</a> <strong>import</strong> java.io.InterruptedIOException;
+<a name="10" href="#10">10</a> <strong>import</strong> java.net.ServerSocket;
+<a name="11" href="#11">11</a> <strong>import</strong> java.net.Socket;
+<a name="12" href="#12">12</a> <strong>import</strong> java.util.Vector;
+<a name="13" href="#13">13</a>
+<a name="14" href="#14">14</a> <em>/**<em>*</em></em>
+<a name="15" href="#15">15</a> <em> * A simple port listener that accepts multiple messages on a TCP/IP socket and returns a simple response string in reply.</em>
+<a name="16" href="#16">16</a> <em> * When this object is instantiated, it will spawn a thread</em>
+<a name="17" href="#17">17</a> <em> * and listen for messages on the specified port. Call {@link #waitForIncomingMessage()}</em>
+<a name="18" href="#18">18</a> <em> * to block, waiting for a message. If multiple messages have been receieved, each call to</em>
+<a name="19" href="#19">19</a> <em> * {@link #waitForIncomingMessage()} will return the messages in the order than were received.</em>
+<a name="20" href="#20">20</a> <em> */</em>
+<a name="21" href="#21">21</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/ws/client/util/SimplePortListener.html">SimplePortListener</a>
+<a name="22" href="#22">22</a> {
+<a name="23" href="#23">23</a> <em>/**<em>* a value used to indicate that our listening thread has stopped */</em></em>
+<a name="24" href="#24">24</a> <strong>public</strong> <strong>static</strong> <strong>final</strong> String STOP_LISTENING_MESSAGE = <span class="string">"ERROR: listening stopped"</span>;
+<a name="25" href="#25">25</a>
+<a name="26" href="#26">26</a> <em>/**<em>*</em></em>
+<a name="27" href="#27">27</a> <em> * the buffer to store the incoming message</em>
+<a name="28" href="#28">28</a> <em> */</em>
+<a name="29" href="#29">29</a> <strong>private</strong> StringBuffer m_incomingMessage;
+<a name="30" href="#30">30</a>
+<a name="31" href="#31">31</a> <em>/**<em>*</em></em>
+<a name="32" href="#32">32</a> <em> * a list of all messages received but not yet picked up via {@link #waitForIncomingMessage()}</em>
+<a name="33" href="#33">33</a> <em> */</em>
+<a name="34" href="#34">34</a> <strong>private</strong> Vector m_messages;
+<a name="35" href="#35">35</a>
+<a name="36" href="#36">36</a> <em>/**<em>* the thread that listens */</em></em>
+<a name="37" href="#37">37</a> <strong>private</strong> Thread m_listenerThread;
+<a name="38" href="#38">38</a>
+<a name="39" href="#39">39</a> <em>/**<em>* will be true when this listener has been asked to stop */</em></em>
+<a name="40" href="#40">40</a> <strong>private</strong> <strong>boolean</strong> m_stopped;
+<a name="41" href="#41">41</a>
+<a name="42" href="#42">42</a> <em>/**<em>* the server socket used to accept incoming messages */</em></em>
+<a name="43" href="#43">43</a> <strong>private</strong> ServerSocket m_serverSocket;
+<a name="44" href="#44">44</a>
+<a name="45" href="#45">45</a> <em>/**<em>*</em></em>
+<a name="46" href="#46">46</a> <em> * Instantiates the object and immediately begins listening for a message.</em>
+<a name="47" href="#47">47</a> <em> *</em>
+<a name="48" href="#48">48</a> <em> * @param port the port to listen to</em>
+<a name="49" href="#49">49</a> <em> * @param timeout the time (in milliseconds) the socket accept() will wait for an incoming connection</em>
+<a name="50" href="#50">50</a> <em> */</em>
+<a name="51" href="#51">51</a> <strong>public</strong> <a href="../../../../../org/apache/ws/client/util/SimplePortListener.html">SimplePortListener</a>( <strong>int</strong> port,
+<a name="52" href="#52">52</a> <strong>int</strong> timeout )
+<a name="53" href="#53">53</a> {
+<a name="54" href="#54">54</a> m_incomingMessage = <strong>new</strong> StringBuffer( );
+<a name="55" href="#55">55</a> m_messages = <strong>new</strong> Vector( );
+<a name="56" href="#56">56</a> m_stopped = false;
+<a name="57" href="#57">57</a>
+<a name="58" href="#58">58</a> <em class="comment">// spawn the thread (this assigns the thread to m_listenerThread and creates m_serverSocket)</em>
+<a name="59" href="#59">59</a> spawnListeningThread( port, timeout );
+<a name="60" href="#60">60</a>
+<a name="61" href="#61">61</a> <em class="comment">// There is a small window of time between the listener thread getting created and the server socket getting bound.</em>
+<a name="62" href="#62">62</a> <em class="comment">// Wait for that small window of time to elapse. This ensures that when the constructor returns, the listener thread</em>
+<a name="63" href="#63">63</a> <em class="comment">// has been created and the server socket is actually listening for messages.</em>
+<a name="64" href="#64">64</a> <strong>while</strong> ( !m_serverSocket.isBound( ) && !m_stopped && m_listenerThread.isAlive( ) )
+<a name="65" href="#65">65</a> {
+<a name="66" href="#66">66</a> ;
+<a name="67" href="#67">67</a> }
+<a name="68" href="#68">68</a>
+<a name="69" href="#69">69</a> <strong>return</strong>;
+<a name="70" href="#70">70</a> }
+<a name="71" href="#71">71</a>
+<a name="72" href="#72">72</a> <em>/**<em>*</em></em>
+<a name="73" href="#73">73</a> <em> * Returns <code>true</code> if there is at least one message that has been received.</em>
+<a name="74" href="#74">74</a> <em> * Use this method to determine if the next call to {@link #waitForIncomingMessage()} will block.</em>
+<a name="75" href="#75">75</a> <em> *</em>
+<a name="76" href="#76">76</a> <em> * @return <code>true</code> if a message has been received but not yet collected or <code>false</code></em>
+<a name="77" href="#77">77</a> <em> * if no messages are available to be collected yet.</em>
+<a name="78" href="#78">78</a> <em> *</em>
+<a name="79" href="#79">79</a> <em> * @see #waitForIncomingMessage()</em>
+<a name="80" href="#80">80</a> <em> */</em>
+<a name="81" href="#81">81</a> <strong>public</strong> <strong>boolean</strong> isMessageAvailable( )
+<a name="82" href="#82">82</a> {
+<a name="83" href="#83">83</a> <strong>return</strong> !m_messages.isEmpty( );
+<a name="84" href="#84">84</a> }
+<a name="85" href="#85">85</a>
+<a name="86" href="#86">86</a> <em>/**<em>*</em></em>
+<a name="87" href="#87">87</a> <em> * Returns <code>true</code> if the listener has stopped listening for messages. A stopped listener</em>
+<a name="88" href="#88">88</a> <em> * cannot be restarted.</em>
+<a name="89" href="#89">89</a> <em> *</em>
+<a name="90" href="#90">90</a> <em> * @return <code>true</code> if this object is no longer accepting new messages.</em>
+<a name="91" href="#91">91</a> <em> */</em>
+<a name="92" href="#92">92</a> <strong>public</strong> <strong>boolean</strong> isStopped( )
+<a name="93" href="#93">93</a> {
+<a name="94" href="#94">94</a> <strong>return</strong> m_stopped;
+<a name="95" href="#95">95</a> }
+<a name="96" href="#96">96</a>
+<a name="97" href="#97">97</a> <em>/**<em>*</em></em>
+<a name="98" href="#98">98</a> <em> * Tells this listener to stop listening for more messages.</em>
+<a name="99" href="#99">99</a> <em> */</em>
+<a name="100" href="#100">100</a> <strong>public</strong> <strong>void</strong> stopListening( )
+<a name="101" href="#101">101</a> {
+<a name="102" href="#102">102</a> m_stopped = <strong>true</strong>;
+<a name="103" href="#103">103</a>
+<a name="104" href="#104">104</a> <strong>while</strong> ( m_listenerThread.isAlive( ) )
+<a name="105" href="#105">105</a> {
+<a name="106" href="#106">106</a> <strong>try</strong>
+<a name="107" href="#107">107</a> {
+<a name="108" href="#108">108</a> m_serverSocket.close( );
+<a name="109" href="#109">109</a> }
+<a name="110" href="#110">110</a> <strong>catch</strong> ( IOException e )
+<a name="111" href="#111">111</a> {
+<a name="112" href="#112">112</a> }
+<a name="113" href="#113">113</a>
+<a name="114" href="#114">114</a> m_listenerThread.interrupt( );
+<a name="115" href="#115">115</a> }
+<a name="116" href="#116">116</a>
+<a name="117" href="#117">117</a> <strong>return</strong>;
+<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> * Returns the next incoming message in the order it was received; waits for the incoming message if</em>
+<a name="122" href="#122">122</a> <em> * none have been received yet. Call {@link #isMessageAvailable()} to determine if this method</em>
+<a name="123" href="#123">123</a> <em> * will block.</em>
+<a name="124" href="#124">124</a> <em> * <p/></em>
+<a name="125" href="#125">125</a> <em> * This method will block waiting for the incoming message to come in or for</em>
+<a name="126" href="#126">126</a> <em> * an error to occur or until the listening has been {@link #stopListening() stopped}.</em>
+<a name="127" href="#127">127</a> <em> *</em>
+<a name="128" href="#128">128</a> <em> * @return the incoming message as an immutable <code>String</code></em>
+<a name="129" href="#129">129</a> <em> *</em>
+<a name="130" href="#130">130</a> <em> * @see #isMessageAvailable()</em>
+<a name="131" href="#131">131</a> <em> */</em>
+<a name="132" href="#132">132</a> <strong>public</strong> String waitForIncomingMessage( )
+<a name="133" href="#133">133</a> {
+<a name="134" href="#134">134</a> String newMessage;
+<a name="135" href="#135">135</a>
+<a name="136" href="#136">136</a> <strong>synchronized</strong> ( m_incomingMessage )
+<a name="137" href="#137">137</a> {
+<a name="138" href="#138">138</a> <strong>while</strong> ( ( m_messages.isEmpty( ) ) && !m_stopped )
+<a name="139" href="#139">139</a> {
+<a name="140" href="#140">140</a> <strong>try</strong>
+<a name="141" href="#141">141</a> {
+<a name="142" href="#142">142</a> m_incomingMessage.wait( 1000 );
+<a name="143" href="#143">143</a> }
+<a name="144" href="#144">144</a> <strong>catch</strong> ( InterruptedException e )
+<a name="145" href="#145">145</a> {
+<a name="146" href="#146">146</a> }
+<a name="147" href="#147">147</a> }
+<a name="148" href="#148">148</a>
+<a name="149" href="#149">149</a> <strong>synchronized</strong> ( m_messages )
+<a name="150" href="#150">150</a> {
+<a name="151" href="#151">151</a> <strong>if</strong> ( !m_messages.isEmpty( ) )
+<a name="152" href="#152">152</a> {
+<a name="153" href="#153">153</a> newMessage = (String) m_messages.get( 0 );
+<a name="154" href="#154">154</a> m_messages.remove( 0 );
+<a name="155" href="#155">155</a> }
+<a name="156" href="#156">156</a> <strong>else</strong>
+<a name="157" href="#157">157</a> {
+<a name="158" href="#158">158</a> newMessage = STOP_LISTENING_MESSAGE;
+<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> <strong>return</strong> newMessage;
+<a name="164" href="#164">164</a> }
+<a name="165" href="#165">165</a>
+<a name="166" href="#166">166</a> <em>/**<em>*</em></em>
+<a name="167" href="#167">167</a> <em> * Returns the server socket used to receive incoming messages.</em>
+<a name="168" href="#168">168</a> <em> *</em>
+<a name="169" href="#169">169</a> <em> * @return the server socket that is or was used to receive incoming TCP/IP messages</em>
+<a name="170" href="#170">170</a> <em> */</em>
+<a name="171" href="#171">171</a> <strong>protected</strong> ServerSocket getServerSocket( )
+<a name="172" href="#172">172</a> {
+<a name="173" href="#173">173</a> <strong>return</strong> m_serverSocket;
+<a name="174" href="#174">174</a> }
+<a name="175" href="#175">175</a>
+<a name="176" href="#176">176</a> <em>/**<em>*</em></em>
+<a name="177" href="#177">177</a> <em> * Builds a simple response string that will be sent back to the client to acknowledge the receipt of the message.</em>
+<a name="178" href="#178">178</a> <em> * Subclasses may override this method if a more sophisticated response string should be sent back (such as a set of HTTP</em>
+<a name="179" href="#179">179</a> <em> * response headers).</em>
+<a name="180" href="#180">180</a> <em> *</em>
+<a name="181" href="#181">181</a> <em> * @return simple one-line response string.</em>
+<a name="182" href="#182">182</a> <em> */</em>
+<a name="183" href="#183">183</a> <strong>protected</strong> String buildResponse( )
+<a name="184" href="#184">184</a> {
+<a name="185" href="#185">185</a> <strong>return</strong> <span class="string">"Message Received"</span>;
+<a name="186" href="#186">186</a> }
+<a name="187" href="#187">187</a>
+<a name="188" href="#188">188</a> <em>/**<em>*</em></em>
+<a name="189" href="#189">189</a> <em> * Creates the thread that listens for incoming TCP/IP messages. When an incoming message is received, it is stored in the</em>
+<a name="190" href="#190">190</a> <em> * <code>m_incomingMessage</code> string buffer and <code>notify</code> on that string buffer will</em>
+<a name="191" href="#191">191</a> <em> * be called to let the caller know that it is ready. <code>m_messages</code> will be used to store immutable</em>
+<a name="192" href="#192">192</a> <em> * forms of all incoming messages that are received by the listening thread.</em>
+<a name="193" href="#193">193</a> <em> * <p/></em>
+<a name="194" href="#194">194</a> <em> * The incoming message string buffer must be non-<code>null</code> and must be empty.</em>
+<a name="195" href="#195">195</a> <em> * <p/></em>
+<a name="196" href="#196">196</a> <em> * If an error occurs, the string buffer will be filled with the string "ERROR:" followed by the exception message.</em>
+<a name="197" href="#197">197</a> <em> * Even on an error, <code>notify</code> will be called to let the caller know that something happened.</em>
+<a name="198" href="#198">198</a> <em> * <p/></em>
+<a name="199" href="#199">199</a> <em> * Note that this method does not block - it spawns a thread to perform the listening and returns immediately.</em>
+<a name="200" href="#200">200</a> <em> * <p/></em>
+<a name="201" href="#201">201</a> <em> * This will return a simple one-line response string back to the client.</em>
+<a name="202" href="#202">202</a> <em> * <p/></em>
+<a name="203" href="#203">203</a> <em> * The created thread will run indefinitely, or until {@link #stopListening() stopped}.</em>
+<a name="204" href="#204">204</a> <em> *</em>
+<a name="205" href="#205">205</a> <em> * @param port the port to listen to</em>
+<a name="206" href="#206">206</a> <em> * @param timeout the time (in milliseconds) the socket accept() will wait for an incoming connection</em>
+<a name="207" href="#207">207</a> <em> *</em>
+<a name="208" href="#208">208</a> <em> * @throws IllegalArgumentException if the given buffer was <code>null</code> or not empty</em>
+<a name="209" href="#209">209</a> <em> */</em>
+<a name="210" href="#210">210</a> <strong>protected</strong> <strong>void</strong> spawnListeningThread( <strong>final</strong> <strong>int</strong> port,
+<a name="211" href="#211">211</a> <strong>final</strong> <strong>int</strong> timeout )
+<a name="212" href="#212">212</a> throws IllegalArgumentException
+<a name="213" href="#213">213</a> {
+<a name="214" href="#214">214</a> <em class="comment">// use as a monitor lock to determine when the thread has started</em>
+<a name="215" href="#215">215</a> <em class="comment">// this must be final to allow for the inner Runnable class to access it</em>
+<a name="216" href="#216">216</a> <strong>final</strong> Object listenerStarted = <strong>new</strong> Object( );
+<a name="217" href="#217">217</a>
+<a name="218" href="#218">218</a> m_listenerThread =
+<a name="219" href="#219">219</a> <strong>new</strong> Thread( <strong>new</strong> Runnable( )
+<a name="220" href="#220">220</a> {
+<a name="221" href="#221">221</a> <strong>public</strong> <strong>void</strong> run( )
+<a name="222" href="#222">222</a> {
+<a name="223" href="#223">223</a> m_serverSocket = <strong>null</strong>;
+<a name="224" href="#224">224</a>
+<a name="225" href="#225">225</a> <strong>while</strong> ( !m_stopped )
+<a name="226" href="#226">226</a> {
+<a name="227" href="#227">227</a> <strong>try</strong>
+<a name="228" href="#228">228</a> {
+<a name="229" href="#229">229</a> <em class="comment">// create our server socket if not yet created</em>
+<a name="230" href="#230">230</a> <strong>if</strong> ( m_serverSocket == <strong>null</strong> )
+<a name="231" href="#231">231</a> {
+<a name="232" href="#232">232</a> m_serverSocket = <strong>new</strong> ServerSocket( port );
+<a name="233" href="#233">233</a> m_serverSocket.setSoTimeout( timeout );
+<a name="234" href="#234">234</a> }
+<a name="235" href="#235">235</a>
+<a name="236" href="#236">236</a> <em class="comment">// let the outer method know that we have started and just about to block on the accept</em>
+<a name="237" href="#237">237</a> <strong>synchronized</strong> ( listenerStarted )
+<a name="238" href="#238">238</a> {
+<a name="239" href="#239">239</a> listenerStarted.notify( );
+<a name="240" href="#240">240</a> }
+<a name="241" href="#241">241</a>
+<a name="242" href="#242">242</a> Socket sock = m_serverSocket.accept( );
+<a name="243" href="#243">243</a> sock.setSoTimeout( 500 );
+<a name="244" href="#244">244</a>
+<a name="245" href="#245">245</a> BufferedInputStream bufIn = <strong>new</strong> BufferedInputStream( sock.getInputStream( ) );
+<a name="246" href="#246">246</a> BufferedOutputStream bufOut = <strong>new</strong> BufferedOutputStream( sock.getOutputStream( ) );
+<a name="247" href="#247">247</a> byte[] responseBytes = buildResponse( ).toString( ).getBytes( );
+<a name="248" href="#248">248</a>
+<a name="249" href="#249">249</a> bufOut.write( responseBytes, 0, responseBytes.length );
+<a name="250" href="#250">250</a> bufOut.flush( );
+<a name="251" href="#251">251</a>
+<a name="252" href="#252">252</a> <strong>try</strong>
+<a name="253" href="#253">253</a> {
+<a name="254" href="#254">254</a> byte[] incoming = <strong>new</strong> byte[1];
+<a name="255" href="#255">255</a>
+<a name="256" href="#256">256</a> <strong>synchronized</strong> ( m_incomingMessage )
+<a name="257" href="#257">257</a> {
+<a name="258" href="#258">258</a> m_incomingMessage.setLength( 0 ); <em class="comment">// clear it out</em>
+<a name="259" href="#259">259</a>
+<a name="260" href="#260">260</a> <strong>while</strong> ( bufIn.read( incoming ) != -1 )
+<a name="261" href="#261">261</a> {
+<a name="262" href="#262">262</a> m_incomingMessage.append( <strong>new</strong> String( incoming ) );
+<a name="263" href="#263">263</a> }
+<a name="264" href="#264">264</a> }
+<a name="265" href="#265">265</a> }
+<a name="266" href="#266">266</a> <strong>catch</strong> ( InterruptedIOException ignored )
+<a name="267" href="#267">267</a> {
+<a name="268" href="#268">268</a> }
+<a name="269" href="#269">269</a>
+<a name="270" href="#270">270</a> bufIn.close( );
+<a name="271" href="#271">271</a> bufOut.close( );
+<a name="272" href="#272">272</a> }
+<a name="273" href="#273">273</a> <strong>catch</strong> ( Throwable t )
+<a name="274" href="#274">274</a> {
+<a name="275" href="#275">275</a> <strong>synchronized</strong> ( m_incomingMessage )
+<a name="276" href="#276">276</a> {
+<a name="277" href="#277">277</a> m_incomingMessage.delete( 0,
+<a name="278" href="#278">278</a> m_incomingMessage.length( ) );
+<a name="279" href="#279">279</a>
+<a name="280" href="#280">280</a> <strong>if</strong> ( !m_stopped )
+<a name="281" href="#281">281</a> {
+<a name="282" href="#282">282</a> m_incomingMessage.append( <span class="string">"ERROR:"</span> );
+<a name="283" href="#283">283</a> m_incomingMessage.append( t );
+<a name="284" href="#284">284</a> }
+<a name="285" href="#285">285</a> }
+<a name="286" href="#286">286</a> }
+<a name="287" href="#287">287</a> <strong>finally</strong>
+<a name="288" href="#288">288</a> {
+<a name="289" href="#289">289</a> <strong>synchronized</strong> ( m_incomingMessage )
+<a name="290" href="#290">290</a> {
+<a name="291" href="#291">291</a> <em class="comment">// make sure something goes in the message, even if nothing was received</em>
+<a name="292" href="#292">292</a> <em class="comment">// don't bother if we were stopped, we'll add our own stopped message</em>
+<a name="293" href="#293">293</a> <strong>if</strong> ( ( m_incomingMessage.length( ) == 0 ) && !m_stopped )
+<a name="294" href="#294">294</a> {
+<a name="295" href="#295">295</a> m_incomingMessage.append( <span class="string">"ERROR: incoming message was empty"</span> );
+<a name="296" href="#296">296</a> }
+<a name="297" href="#297">297</a>
+<a name="298" href="#298">298</a> <em class="comment">// add our new incoming message to the list of messages</em>
+<a name="299" href="#299">299</a> <strong>if</strong> ( m_incomingMessage.length( ) > 0 )
+<a name="300" href="#300">300</a> {
+<a name="301" href="#301">301</a> m_messages.add( m_incomingMessage.toString( ) );
+<a name="302" href="#302">302</a> }
+<a name="303" href="#303">303</a>
+<a name="304" href="#304">304</a> <em class="comment">// if we are stopped, add another message to let the client know we stopped</em>
+<a name="305" href="#305">305</a> <strong>if</strong> ( m_stopped )
+<a name="306" href="#306">306</a> {
+<a name="307" href="#307">307</a> m_messages.add( STOP_LISTENING_MESSAGE );
+<a name="308" href="#308">308</a> }
+<a name="309" href="#309">309</a>
+<a name="310" href="#310">310</a> <em class="comment">// wake up the wait method</em>
+<a name="311" href="#311">311</a> m_incomingMessage.notify( );
+<a name="312" href="#312">312</a> }
+<a name="313" href="#313">313</a>
+<a name="314" href="#314">314</a> <strong>if</strong> ( m_stopped && ( m_serverSocket != <strong>null</strong> ) )
+<a name="315" href="#315">315</a> {
+<a name="316" href="#316">316</a> <strong>try</strong>
+<a name="317" href="#317">317</a> {
+<a name="318" href="#318">318</a> m_serverSocket.close( );
+<a name="319" href="#319">319</a> }
+<a name="320" href="#320">320</a> <strong>catch</strong> ( IOException ignored )
+<a name="321" href="#321">321</a> {
+<a name="322" href="#322">322</a> }
+<a name="323" href="#323">323</a> }
+<a name="324" href="#324">324</a>
+<a name="325" href="#325">325</a> <em class="comment">// do this as a fail safe</em>
+<a name="326" href="#326">326</a> <strong>synchronized</strong> ( listenerStarted )
+<a name="327" href="#327">327</a> {
+<a name="328" href="#328">328</a> listenerStarted.notify( );
+<a name="329" href="#329">329</a> }
+<a name="330" href="#330">330</a> }
+<a name="331" href="#331">331</a> }
+<a name="332" href="#332">332</a>
+<a name="333" href="#333">333</a> <em class="comment">// this is the listener thread exiting</em>
+<a name="334" href="#334">334</a> <strong>return</strong>;
+<a name="335" href="#335">335</a> }
+<a name="336" href="#336">336</a> } );
+<a name="337" href="#337">337</a>
+<a name="338" href="#338">338</a> <em class="comment">// start listening and then return when the thread has officially gone live</em>
+<a name="339" href="#339">339</a> <em class="comment">// and the socket is ready to be accepted</em>
+<a name="340" href="#340">340</a> <strong>synchronized</strong> ( listenerStarted )
+<a name="341" href="#341">341</a> {
+<a name="342" href="#342">342</a> m_listenerThread.setDaemon( <strong>true</strong> );
+<a name="343" href="#343">343</a> m_listenerThread.start( );
+<a name="344" href="#344">344</a>
+<a name="345" href="#345">345</a> <strong>try</strong>
+<a name="346" href="#346">346</a> {
+<a name="347" href="#347">347</a> listenerStarted.wait( );
+<a name="348" href="#348">348</a> }
+<a name="349" href="#349">349</a> <strong>catch</strong> ( InterruptedException ignored )
+<a name="350" href="#350">350</a> {
+<a name="351" href="#351">351</a> }
+<a name="352" href="#352">352</a> }
+<a name="353" href="#353">353</a>
+<a name="354" href="#354">354</a> <strong>return</strong>;
+<a name="355" href="#355">355</a> }
+<a name="356" href="#356">356</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/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/Subscriber.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/Subscriber.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/Subscriber.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/Subscriber.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,415 @@
+<!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>Subscriber xref</title>
+<link type="text/css" rel="stylesheet" href="../../../../../stylesheet.css" />
+</head>
+<body>
+<div id="overview"><a href="../../../../../../apidocs/org/apache/ws/client/util/Subscriber.html">View Javadoc</a></div><pre>
+
+<a name="1" href="#1">1</a> <em class="comment">/*<em class="comment">=============================================================================*</em></em>
+<a name="2" href="#2">2</a> <em class="comment"> * Confidential Copyright (c) 2004 Hewlett-Packard Development Company, L.P. *</em>
+<a name="3" href="#3">3</a> <em class="comment"> *=============================================================================*/</em>
+<a name="4" href="#4">4</a> <strong>package</strong> <a href="../../../../../org/apache/ws/client/util/package-summary.html">org.apache.ws.client.util</a>;
+<a name="5" href="#5">5</a>
+<a name="6" href="#6">6</a> <strong>import</strong> org.apache.ws.client.model.WsdmClient;
+<a name="7" href="#7">7</a> <strong>import</strong> org.apache.ws.client.model.WsdmInstance;
+<a name="8" href="#8">8</a> <strong>import</strong> org.apache.ws.client.model.WsdmOperation;
+<a name="9" href="#9">9</a> <strong>import</strong> com.ibm.xmlns.stdwip.webServices.wsBaseNotification.TopicExpressionType;
+<a name="10" href="#10">10</a> <strong>import</strong> org.apache.xmlbeans.XmlObject;
+<a name="11" href="#11">11</a> <strong>import</strong> org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceDocument;
+<a name="12" href="#12">12</a> <strong>import</strong> org.xmlsoap.schemas.ws.x2003.x03.addressing.EndpointReferenceType;
+<a name="13" href="#13">13</a> <strong>import</strong> java.net.URL;
+<a name="14" href="#14">14</a> <strong>import</strong> java.util.ArrayList;
+<a name="15" href="#15">15</a> <strong>import</strong> java.util.Collection;
+<a name="16" href="#16">16</a> <strong>import</strong> java.util.HashMap;
+<a name="17" href="#17">17</a> <strong>import</strong> java.util.Hashtable;
+<a name="18" href="#18">18</a> <strong>import</strong> java.util.Iterator;
+<a name="19" href="#19">19</a> <strong>import</strong> java.util.List;
+<a name="20" href="#20">20</a> <strong>import</strong> java.util.Map;
+<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> * Acts as a WS-Notification Subscriber and will subscribe a notification consumer to</em>
+<a name="24" href="#24">24</a> <em> * a set of notification producers.</em>
+<a name="25" href="#25">25</a> <em> * <p></em>
+<a name="26" href="#26">26</a> <em> * This object groups subscriptions based on which notification producers are subscribed to with each</em>
+<a name="27" href="#27">27</a> <em> * group holding subscriptions to individual topics.</em>
+<a name="28" href="#28">28</a> <em> * <p></em>
+<a name="29" href="#29">29</a> <em> * Subscriptions may be canceled individually (see {@link #unsubscribe(WsdmInstance, TopicExpressionType)})</em>
+<a name="30" href="#30">30</a> <em> * or en masse (see {@link #unsubscribe()} and {@link #unsubscribe(WsdmInstance)}).</em>
+<a name="31" href="#31">31</a> <em> */</em>
+<a name="32" href="#32">32</a> <strong>public</strong> <strong>class</strong> <a href="../../../../../org/apache/ws/client/util/Subscriber.html">Subscriber</a>
+<a name="33" href="#33">33</a> {
+<a name="34" href="#34">34</a> <em>/**<em>* the EPR of the notification consumer that is to be subscribed */</em></em>
+<a name="35" href="#35">35</a> <strong>private</strong> <strong>final</strong> EndpointReferenceType m_notificationConsumer;
+<a name="36" href="#36">36</a>
+<a name="37" href="#37">37</a> <em>/**<em>* the set of all subscriptions, keyed on <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> objects (each value is also a Map of Subscriptions keyed on topic expression) */</em></em>
+<a name="38" href="#38">38</a> <strong>private</strong> <strong>final</strong> Map m_subscriptions = <strong>new</strong> HashMap( );
+<a name="39" href="#39">39</a>
+<a name="40" href="#40">40</a> <em>/**<em>*</em></em>
+<a name="41" href="#41">41</a> <em> * Creates the subscriber given a consumer's EPR.</em>
+<a name="42" href="#42">42</a> <em> *</em>
+<a name="43" href="#43">43</a> <em> * @param consumer the EPR of the consumer who will be subscribed</em>
+<a name="44" href="#44">44</a> <em> */</em>
+<a name="45" href="#45">45</a> <strong>public</strong> <a href="../../../../../org/apache/ws/client/util/Subscriber.html">Subscriber</a>( EndpointReferenceType consumer )
+<a name="46" href="#46">46</a> {
+<a name="47" href="#47">47</a> m_notificationConsumer = consumer;
+<a name="48" href="#48">48</a> }
+<a name="49" href="#49">49</a>
+<a name="50" href="#50">50</a> <em>/**<em>*</em></em>
+<a name="51" href="#51">51</a> <em> * Creates the subscriber given a consumer's <code>WsdmInstance</code> object representation.</em>
+<a name="52" href="#52">52</a> <em> *</em>
+<a name="53" href="#53">53</a> <em> * @param consumer the EPR of the consumer who will be subscribed</em>
+<a name="54" href="#54">54</a> <em> */</em>
+<a name="55" href="#55">55</a> <strong>public</strong> <a href="../../../../../org/apache/ws/client/util/Subscriber.html">Subscriber</a>( WsdmInstance consumer )
+<a name="56" href="#56">56</a> {
+<a name="57" href="#57">57</a> <strong>try</strong>
+<a name="58" href="#58">58</a> {
+<a name="59" href="#59">59</a> m_notificationConsumer = consumer.getEPR( );
+<a name="60" href="#60">60</a> }
+<a name="61" href="#61">61</a> <strong>catch</strong> ( Exception e )
+<a name="62" href="#62">62</a> {
+<a name="63" href="#63">63</a> <strong>throw</strong> <strong>new</strong> IllegalArgumentException( e.toString( ) );
+<a name="64" href="#64">64</a> }
+<a name="65" href="#65">65</a> }
+<a name="66" href="#66">66</a>
+<a name="67" href="#67">67</a> <em>/**<em>*</em></em>
+<a name="68" href="#68">68</a> <em> * Creates the subscriber given just the consumer's endpoint URL. Since only a URL is provided,</em>
+<a name="69" href="#69">69</a> <em> * the consumer's EPR will not consist of any WS-Addressing information.</em>
+<a name="70" href="#70">70</a> <em> *</em>
+<a name="71" href="#71">71</a> <em> * @param consumer the endpoint URL of the consumer</em>
+<a name="72" href="#72">72</a> <em> */</em>
+<a name="73" href="#73">73</a> <strong>public</strong> <a href="../../../../../org/apache/ws/client/util/Subscriber.html">Subscriber</a>( URL consumer )
+<a name="74" href="#74">74</a> {
+<a name="75" href="#75">75</a> m_notificationConsumer = EndpointReferenceDocument.Factory.newInstance( ).addNewEndpointReference( );
+<a name="76" href="#76">76</a>
+<a name="77" href="#77">77</a> m_notificationConsumer.addNewAddress( ).setStringValue( consumer.toString( ) );
+<a name="78" href="#78">78</a> }
+<a name="79" href="#79">79</a>
+<a name="80" href="#80">80</a> <em>/**<em>*</em></em>
+<a name="81" href="#81">81</a> <em> * Returns the EPR to a subscription resource for the subscription on the given producer topic.</em>
+<a name="82" href="#82">82</a> <em> * <code>null</code> will be returned if this object is not maintaining such a subscription.</em>
+<a name="83" href="#83">83</a> <em> *</em>
+<a name="84" href="#84">84</a> <em> * @param notificationProducer the producer resource whose is subscribed to</em>
+<a name="85" href="#85">85</a> <em> * @param topic the topic that is subscribed to</em>
+<a name="86" href="#86">86</a> <em> *</em>
+<a name="87" href="#87">87</a> <em> * @return the subscription resource EPR, or <code>null</code> if there is no such subscription</em>
+<a name="88" href="#88">88</a> <em> */</em>
+<a name="89" href="#89">89</a> <strong>public</strong> <strong>synchronized</strong> Subscription getSubscription( WsdmInstance notificationProducer,
+<a name="90" href="#90">90</a> TopicExpressionType topic )
+<a name="91" href="#91">91</a> {
+<a name="92" href="#92">92</a> Subscription retSubscription = <strong>null</strong>;
+<a name="93" href="#93">93</a> Map producerSubscriptions = (Map) m_subscriptions.get( notificationProducer );
+<a name="94" href="#94">94</a>
+<a name="95" href="#95">95</a> <strong>if</strong> ( producerSubscriptions != <strong>null</strong> )
+<a name="96" href="#96">96</a> {
+<a name="97" href="#97">97</a> retSubscription = (Subscription) producerSubscriptions.get( topic );
+<a name="98" href="#98">98</a> }
+<a name="99" href="#99">99</a>
+<a name="100" href="#100">100</a> <strong>return</strong> retSubscription;
+<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> * Returns an array of EPRs refering to all subscription resources for all subscriptions on the given producer.</em>
+<a name="105" href="#105">105</a> <em> * An empty array will be returned if no subscriptions exist.</em>
+<a name="106" href="#106">106</a> <em> *</em>
+<a name="107" href="#107">107</a> <em> * @param notificationProducer the producer resource whose is subscribed to</em>
+<a name="108" href="#108">108</a> <em> *</em>
+<a name="109" href="#109">109</a> <em> * @return array of subscription resource EPRs</em>
+<a name="110" href="#110">110</a> <em> */</em>
+<a name="111" href="#111">111</a> <strong>public</strong> <strong>synchronized</strong> Subscription[] getSubscriptions( WsdmInstance notificationProducer )
+<a name="112" href="#112">112</a> {
+<a name="113" href="#113">113</a> Subscription[] retSubscriptions;
+<a name="114" href="#114">114</a> Map producerSubscriptions = (Map) m_subscriptions.get( notificationProducer );
+<a name="115" href="#115">115</a>
+<a name="116" href="#116">116</a> <strong>if</strong> ( producerSubscriptions != <strong>null</strong> )
+<a name="117" href="#117">117</a> {
+<a name="118" href="#118">118</a> Collection subscriptions = producerSubscriptions.values( );
+<a name="119" href="#119">119</a> retSubscriptions = (Subscription[]) subscriptions.toArray( <strong>new</strong> Subscription[subscriptions.size( )] );
+<a name="120" href="#120">120</a> }
+<a name="121" href="#121">121</a> <strong>else</strong>
+<a name="122" href="#122">122</a> {
+<a name="123" href="#123">123</a> retSubscriptions = <strong>new</strong> Subscription[0];
+<a name="124" href="#124">124</a> }
+<a name="125" href="#125">125</a>
+<a name="126" href="#126">126</a> <strong>return</strong> retSubscriptions;
+<a name="127" href="#127">127</a> }
+<a name="128" href="#128">128</a>
+<a name="129" href="#129">129</a> <em>/**<em>*</em></em>
+<a name="130" href="#130">130</a> <em> * Returns an array of EPRs refering to all subscription resources for all subscriptions for all producers.</em>
+<a name="131" href="#131">131</a> <em> * An empty array will be returned if no subscriptions exist.</em>
+<a name="132" href="#132">132</a> <em> *</em>
+<a name="133" href="#133">133</a> <em> * @return array of subscription resource EPRs</em>
+<a name="134" href="#134">134</a> <em> */</em>
+<a name="135" href="#135">135</a> <strong>public</strong> <strong>synchronized</strong> Subscription[] getSubscriptions( )
+<a name="136" href="#136">136</a> {
+<a name="137" href="#137">137</a> List retSubscriptions = <strong>new</strong> ArrayList( );
+<a name="138" href="#138">138</a>
+<a name="139" href="#139">139</a> <strong>for</strong> ( Iterator iter = m_subscriptions.values( ).iterator( ); iter.hasNext( ); )
+<a name="140" href="#140">140</a> {
+<a name="141" href="#141">141</a> Map producerSubscriptions = (Map) iter.next( );
+<a name="142" href="#142">142</a>
+<a name="143" href="#143">143</a> retSubscriptions.addAll( producerSubscriptions.values( ) );
+<a name="144" href="#144">144</a> }
+<a name="145" href="#145">145</a>
+<a name="146" href="#146">146</a> <strong>return</strong> (Subscription[]) retSubscriptions.toArray( <strong>new</strong> Subscription[retSubscriptions.size( )] );
+<a name="147" href="#147">147</a> }
+<a name="148" href="#148">148</a>
+<a name="149" href="#149">149</a> <em>/**<em>*</em></em>
+<a name="150" href="#150">150</a> <em> * Subscribes the notification consumer to the given notification producer on the given topic.</em>
+<a name="151" href="#151">151</a> <em> * If the subscription already exists, this method will <b>not</b> subscribe again.</em>
+<a name="152" href="#152">152</a> <em> *</em>
+<a name="153" href="#153">153</a> <em> * @param notificationProducer the producer of the notifications to be subscribed to</em>
+<a name="154" href="#154">154</a> <em> * @param topicExpression the topic to subscribe to</em>
+<a name="155" href="#155">155</a> <em> *</em>
+<a name="156" href="#156">156</a> <em> * @throws Exception on any error that caused the request to fail</em>
+<a name="157" href="#157">157</a> <em> */</em>
+<a name="158" href="#158">158</a> <strong>public</strong> <strong>synchronized</strong> <strong>void</strong> subscribe( WsdmInstance notificationProducer,
+<a name="159" href="#159">159</a> TopicExpressionType topicExpression )
+<a name="160" href="#160">160</a> throws Exception
+<a name="161" href="#161">161</a> {
+<a name="162" href="#162">162</a> EndpointReferenceType subscriptionEpr;
+<a name="163" href="#163">163</a> <a href="../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> subscribeOp = notificationProducer.findOperation( <span class="string">"Subscribe"</span> );
+<a name="164" href="#164">164</a>
+<a name="165" href="#165">165</a> <strong>if</strong> ( subscribeOp == <strong>null</strong> )
+<a name="166" href="#166">166</a> {
+<a name="167" href="#167">167</a> <strong>throw</strong> <strong>new</strong> IllegalArgumentException( <span class="string">"The given WsdmInstance is not a notification producer:"</span>
+<a name="168" href="#168">168</a> + notificationProducer.getName( ) );
+<a name="169" href="#169">169</a> }
+<a name="170" href="#170">170</a>
+<a name="171" href="#171">171</a> <em class="comment">// actually perform the subscribe</em>
+<a name="172" href="#172">172</a> Hashtable params = <strong>new</strong> Hashtable( );
+<a name="173" href="#173">173</a> params.put( <span class="string">"TopicExpression"</span>, topicExpression );
+<a name="174" href="#174">174</a> params.put( <span class="string">"ConsumerReference"</span>, m_notificationConsumer );
+<a name="175" href="#175">175</a> params.put( <span class="string">"UseNotify"</span>, Boolean.TRUE );
+<a name="176" href="#176">176</a>
+<a name="177" href="#177">177</a> XmlObject[] results = notificationProducer.invoke( subscribeOp, params );
+<a name="178" href="#178">178</a>
+<a name="179" href="#179">179</a> <em class="comment">// TODO get the subscription resource EPR from the invoke results</em>
+<a name="180" href="#180">180</a> subscriptionEpr = <strong>null</strong>;
+<a name="181" href="#181">181</a>
+<a name="182" href="#182">182</a> <em class="comment">// add the new subscription to our set of exiting subscriptions</em>
+<a name="183" href="#183">183</a> addSubscription( <strong>new</strong> Subscription( notificationProducer, topicExpression, subscriptionEpr ) );
+<a name="184" href="#184">184</a>
+<a name="185" href="#185">185</a> <strong>return</strong>;
+<a name="186" href="#186">186</a> }
+<a name="187" href="#187">187</a>
+<a name="188" href="#188">188</a> <em>/**<em>*</em></em>
+<a name="189" href="#189">189</a> <em> * Unsubscribes the notification consumer from the given notification producer's topic.</em>
+<a name="190" href="#190">190</a> <em> * If the subscription does not already exist, this method will do nothing.</em>
+<a name="191" href="#191">191</a> <em> *</em>
+<a name="192" href="#192">192</a> <em> * @param notificationProducer the producer of the notifications to be unsubscribed from</em>
+<a name="193" href="#193">193</a> <em> * @param topicExpression the topic to unsubscribe from</em>
+<a name="194" href="#194">194</a> <em> *</em>
+<a name="195" href="#195">195</a> <em> * @throws Exception on any error that caused the request to fail</em>
+<a name="196" href="#196">196</a> <em> */</em>
+<a name="197" href="#197">197</a> <strong>public</strong> <strong>synchronized</strong> <strong>void</strong> unsubscribe( WsdmInstance notificationProducer,
+<a name="198" href="#198">198</a> TopicExpressionType topicExpression )
+<a name="199" href="#199">199</a> throws Exception
+<a name="200" href="#200">200</a> {
+<a name="201" href="#201">201</a> Subscription doomedSubscription = getSubscription( notificationProducer, topicExpression );
+<a name="202" href="#202">202</a>
+<a name="203" href="#203">203</a> unsubscribe( doomedSubscription );
+<a name="204" href="#204">204</a>
+<a name="205" href="#205">205</a> <strong>return</strong>;
+<a name="206" href="#206">206</a> }
+<a name="207" href="#207">207</a>
+<a name="208" href="#208">208</a> <em>/**<em>*</em></em>
+<a name="209" href="#209">209</a> <em> * Unsubscribes the notification consumer from any and all subscribed topics from the given notification producer.</em>
+<a name="210" href="#210">210</a> <em> *</em>
+<a name="211" href="#211">211</a> <em> * @param notificationProducer the producer of the notifications to be unsubscribed from</em>
+<a name="212" href="#212">212</a> <em> *</em>
+<a name="213" href="#213">213</a> <em> * @throws Exception on any error that caused the request to fail</em>
+<a name="214" href="#214">214</a> <em> */</em>
+<a name="215" href="#215">215</a> <strong>public</strong> <strong>synchronized</strong> <strong>void</strong> unsubscribe( WsdmInstance notificationProducer )
+<a name="216" href="#216">216</a> throws Exception
+<a name="217" href="#217">217</a> {
+<a name="218" href="#218">218</a> Subscription[] doomedSubscriptions = getSubscriptions( notificationProducer );
+<a name="219" href="#219">219</a>
+<a name="220" href="#220">220</a> <strong>for</strong> ( <strong>int</strong> i = 0; i < doomedSubscriptions.length; i++ )
+<a name="221" href="#221">221</a> {
+<a name="222" href="#222">222</a> unsubscribe( doomedSubscriptions[i] );
+<a name="223" href="#223">223</a> }
+<a name="224" href="#224">224</a>
+<a name="225" href="#225">225</a> <strong>return</strong>;
+<a name="226" href="#226">226</a> }
+<a name="227" href="#227">227</a>
+<a name="228" href="#228">228</a> <em>/**<em>*</em></em>
+<a name="229" href="#229">229</a> <em> * Unsubscribes the notification consumer from any and all topics on any and all notification producers.</em>
+<a name="230" href="#230">230</a> <em> *</em>
+<a name="231" href="#231">231</a> <em> * @throws Exception on any error that caused the request to fail</em>
+<a name="232" href="#232">232</a> <em> */</em>
+<a name="233" href="#233">233</a> <strong>public</strong> <strong>synchronized</strong> <strong>void</strong> unsubscribe( )
+<a name="234" href="#234">234</a> throws Exception
+<a name="235" href="#235">235</a> {
+<a name="236" href="#236">236</a> Subscription[] doomedSubscriptions = getSubscriptions( );
+<a name="237" href="#237">237</a>
+<a name="238" href="#238">238</a> <strong>for</strong> ( <strong>int</strong> i = 0; i < doomedSubscriptions.length; i++ )
+<a name="239" href="#239">239</a> {
+<a name="240" href="#240">240</a> unsubscribe( doomedSubscriptions[i] );
+<a name="241" href="#241">241</a> }
+<a name="242" href="#242">242</a>
+<a name="243" href="#243">243</a> <strong>return</strong>;
+<a name="244" href="#244">244</a> }
+<a name="245" href="#245">245</a>
+<a name="246" href="#246">246</a> <em>/**<em>*</em></em>
+<a name="247" href="#247">247</a> <em> * Adds the given subscription to our internal set of existing subscriptions.</em>
+<a name="248" href="#248">248</a> <em> * This does not actually perform any type of subscribing, this method merely adds</em>
+<a name="249" href="#249">249</a> <em> * the subscription to our internal map structure.</em>
+<a name="250" href="#250">250</a> <em> *</em>
+<a name="251" href="#251">251</a> <em> * @param newSubscription the new subscription to add</em>
+<a name="252" href="#252">252</a> <em> */</em>
+<a name="253" href="#253">253</a> <strong>protected</strong> <strong>void</strong> addSubscription( Subscription newSubscription )
+<a name="254" href="#254">254</a> {
+<a name="255" href="#255">255</a> <em class="comment">// get the map of all the subscriptions to the producer of the new subscription</em>
+<a name="256" href="#256">256</a> Map producerSubscriptions = (Map) m_subscriptions.get( newSubscription.getNotificationProducer( ) );
+<a name="257" href="#257">257</a>
+<a name="258" href="#258">258</a> <em class="comment">// if this producer has not yet been subscribed to, create the new, empty map for it</em>
+<a name="259" href="#259">259</a> <strong>if</strong> ( producerSubscriptions == <strong>null</strong> )
+<a name="260" href="#260">260</a> {
+<a name="261" href="#261">261</a> producerSubscriptions = <strong>new</strong> HashMap( );
+<a name="262" href="#262">262</a> m_subscriptions.put( newSubscription.getNotificationProducer( ),
+<a name="263" href="#263">263</a> producerSubscriptions );
+<a name="264" href="#264">264</a> }
+<a name="265" href="#265">265</a>
+<a name="266" href="#266">266</a> <em class="comment">// add the new subscription to the map of producer subscriptions, keyed on the topic that is subscribed to</em>
+<a name="267" href="#267">267</a> producerSubscriptions.put( newSubscription.getTopic( ),
+<a name="268" href="#268">268</a> newSubscription );
+<a name="269" href="#269">269</a>
+<a name="270" href="#270">270</a> <strong>return</strong>;
+<a name="271" href="#271">271</a> }
+<a name="272" href="#272">272</a>
+<a name="273" href="#273">273</a> <em>/**<em>*</em></em>
+<a name="274" href="#274">274</a> <em> * Removes the given subscription from our internal set of existing subscriptions.</em>
+<a name="275" href="#275">275</a> <em> * This does not actually perform any type of unsubscribing, this method merely removes</em>
+<a name="276" href="#276">276</a> <em> * the subscription from our internal map structure.</em>
+<a name="277" href="#277">277</a> <em> *</em>
+<a name="278" href="#278">278</a> <em> * @param doomedSubscription the subscription to remove</em>
+<a name="279" href="#279">279</a> <em> */</em>
+<a name="280" href="#280">280</a> <strong>protected</strong> <strong>void</strong> removeSubscription( Subscription doomedSubscription )
+<a name="281" href="#281">281</a> {
+<a name="282" href="#282">282</a> <em class="comment">// get the map of all the subscriptions to the producer of the doomed subscription</em>
+<a name="283" href="#283">283</a> Map producerSubscriptions = (Map) m_subscriptions.get( doomedSubscription.getNotificationProducer( ) );
+<a name="284" href="#284">284</a>
+<a name="285" href="#285">285</a> <strong>if</strong> ( producerSubscriptions != <strong>null</strong> )
+<a name="286" href="#286">286</a> {
+<a name="287" href="#287">287</a> <em class="comment">// remove the subscription from the map of producer subscriptions (this map is keyed on topic)</em>
+<a name="288" href="#288">288</a> producerSubscriptions.remove( doomedSubscription.getTopic( ) );
+<a name="289" href="#289">289</a>
+<a name="290" href="#290">290</a> <em class="comment">// if that was the last subscription for this producer, remove the entire producer subscription map, too</em>
+<a name="291" href="#291">291</a> <strong>if</strong> ( producerSubscriptions.isEmpty( ) )
+<a name="292" href="#292">292</a> {
+<a name="293" href="#293">293</a> m_subscriptions.remove( doomedSubscription.getNotificationProducer( ) );
+<a name="294" href="#294">294</a> }
+<a name="295" href="#295">295</a> }
+<a name="296" href="#296">296</a>
+<a name="297" href="#297">297</a> <strong>return</strong>;
+<a name="298" href="#298">298</a> }
+<a name="299" href="#299">299</a>
+<a name="300" href="#300">300</a> <em>/**<em>*</em></em>
+<a name="301" href="#301">301</a> <em> * Unsubscribes the given subscription and removes the subscription from our internal map structure.</em>
+<a name="302" href="#302">302</a> <em> *</em>
+<a name="303" href="#303">303</a> <em> * @param doomedSubscription the subscription that is to be destroyed</em>
+<a name="304" href="#304">304</a> <em> */</em>
+<a name="305" href="#305">305</a> <strong>protected</strong> <strong>void</strong> unsubscribe( Subscription doomedSubscription )
+<a name="306" href="#306">306</a> {
+<a name="307" href="#307">307</a> <em class="comment">// perform the actual WSDM unsubscribe here by destroying the subscription resource</em>
+<a name="308" href="#308">308</a> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> subscriptionWsdmInstance = doomedSubscription.getSubscriptionWsdmInstance( );
+<a name="309" href="#309">309</a>
+<a name="310" href="#310">310</a> <strong>try</strong>
+<a name="311" href="#311">311</a> {
+<a name="312" href="#312">312</a> <a href="../../../../../org/apache/ws/client/model/WsdmOperation.html">WsdmOperation</a> destroyOp = subscriptionWsdmInstance.findOperation( <span class="string">"Destroy"</span> );
+<a name="313" href="#313">313</a> subscriptionWsdmInstance.invoke( destroyOp, <strong>null</strong> );
+<a name="314" href="#314">314</a> }
+<a name="315" href="#315">315</a> <strong>catch</strong> ( Exception e )
+<a name="316" href="#316">316</a> {
+<a name="317" href="#317">317</a> <strong>throw</strong> <strong>new</strong> IllegalArgumentException( <span class="string">"The subscription WsdmInstance does not conform to WS-ResourceLifetime:"</span>
+<a name="318" href="#318">318</a> + subscriptionWsdmInstance.getName( ) );
+<a name="319" href="#319">319</a> }
+<a name="320" href="#320">320</a>
+<a name="321" href="#321">321</a> <em class="comment">// remove the subscription from our set of exiting subscriptions</em>
+<a name="322" href="#322">322</a> removeSubscription( doomedSubscription );
+<a name="323" href="#323">323</a>
+<a name="324" href="#324">324</a> <strong>return</strong>;
+<a name="325" href="#325">325</a> }
+<a name="326" href="#326">326</a>
+<a name="327" href="#327">327</a> <em>/**<em>*</em></em>
+<a name="328" href="#328">328</a> <em> * Immutable inner class used to hold information on an existing subscription, including the WsdmInstance</em>
+<a name="329" href="#329">329</a> <em> * of the notification producer, the topic subscribed to and the subscription resource EPR.</em>
+<a name="330" href="#330">330</a> <em> */</em>
+<a name="331" href="#331">331</a> <strong>public</strong> <strong>class</strong> Subscription
+<a name="332" href="#332">332</a> {
+<a name="333" href="#333">333</a> <strong>private</strong> <strong>final</strong> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> m_notificationProducer;
+<a name="334" href="#334">334</a> <strong>private</strong> <strong>final</strong> TopicExpressionType m_topic;
+<a name="335" href="#335">335</a> <strong>private</strong> <strong>final</strong> EndpointReferenceType m_subscriptionEpr;
+<a name="336" href="#336">336</a>
+<a name="337" href="#337">337</a> <em>/**<em>*</em></em>
+<a name="338" href="#338">338</a> <em> * Creates the object.</em>
+<a name="339" href="#339">339</a> <em> *</em>
+<a name="340" href="#340">340</a> <em> * @param notificationProducer the producer who is subscribed to</em>
+<a name="341" href="#341">341</a> <em> * @param topic the topic that is subscribed to</em>
+<a name="342" href="#342">342</a> <em> * @param subscriptionEpr the EPR of the subscription resource</em>
+<a name="343" href="#343">343</a> <em> */</em>
+<a name="344" href="#344">344</a> <strong>public</strong> Subscription( <strong>final</strong> WsdmInstance notificationProducer,
+<a name="345" href="#345">345</a> <strong>final</strong> TopicExpressionType topic,
+<a name="346" href="#346">346</a> <strong>final</strong> EndpointReferenceType subscriptionEpr )
+<a name="347" href="#347">347</a> {
+<a name="348" href="#348">348</a> m_notificationProducer = notificationProducer;
+<a name="349" href="#349">349</a> m_topic = topic;
+<a name="350" href="#350">350</a> m_subscriptionEpr = subscriptionEpr;
+<a name="351" href="#351">351</a> }
+<a name="352" href="#352">352</a>
+<a name="353" href="#353">353</a> <em>/**<em>*</em></em>
+<a name="354" href="#354">354</a> <em> * Returns the notification producer.</em>
+<a name="355" href="#355">355</a> <em> *</em>
+<a name="356" href="#356">356</a> <em> * @return the notification producer</em>
+<a name="357" href="#357">357</a> <em> */</em>
+<a name="358" href="#358">358</a> <strong>public</strong> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> getNotificationProducer( )
+<a name="359" href="#359">359</a> {
+<a name="360" href="#360">360</a> <strong>return</strong> m_notificationProducer;
+<a name="361" href="#361">361</a> }
+<a name="362" href="#362">362</a>
+<a name="363" href="#363">363</a> <em>/**<em>*</em></em>
+<a name="364" href="#364">364</a> <em> * Returns the subscription resource EPR.</em>
+<a name="365" href="#365">365</a> <em> *</em>
+<a name="366" href="#366">366</a> <em> * @return the subscription EPR</em>
+<a name="367" href="#367">367</a> <em> */</em>
+<a name="368" href="#368">368</a> <strong>public</strong> EndpointReferenceType getSubscriptionEpr( )
+<a name="369" href="#369">369</a> {
+<a name="370" href="#370">370</a> <strong>return</strong> m_subscriptionEpr;
+<a name="371" href="#371">371</a> }
+<a name="372" href="#372">372</a>
+<a name="373" href="#373">373</a> <em>/**<em>*</em></em>
+<a name="374" href="#374">374</a> <em> * Returns a <code>WsdmInstance</code> that can be used to access the</em>
+<a name="375" href="#375">375</a> <em> * Subscription resource.</em>
+<a name="376" href="#376">376</a> <em> * The returned Subscription resource has the WS-Notification Subscription Manager interface.</em>
+<a name="377" href="#377">377</a> <em> *</em>
+<a name="378" href="#378">378</a> <em> * @return subscription resource instance</em>
+<a name="379" href="#379">379</a> <em> */</em>
+<a name="380" href="#380">380</a> <strong>public</strong> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> getSubscriptionWsdmInstance( )
+<a name="381" href="#381">381</a> {
+<a name="382" href="#382">382</a> <a href="../../../../../org/apache/ws/client/model/WsdmInstance.html">WsdmInstance</a> retSubcriptionInstance = <strong>null</strong>;
+<a name="383" href="#383">383</a> <a href="../../../../../org/apache/ws/client/model/WsdmClient.html">WsdmClient</a> producerClient = m_notificationProducer.getParent( ).getParent( );
+<a name="384" href="#384">384</a>
+<a name="385" href="#385">385</a> <em class="comment">// note that we assume the subscription resource is located in the same SOAP engine</em>
+<a name="386" href="#386">386</a> <em class="comment">// (host/port/servlet context) as the notification producer</em>
+<a name="387" href="#387">387</a> <em class="comment">// TODO retSubcriptionInstance = producerClient.findInstance( m_subscriptionEpr );</em>
+<a name="388" href="#388">388</a>
+<a name="389" href="#389">389</a> <strong>return</strong> retSubcriptionInstance;
+<a name="390" href="#390">390</a> }
+<a name="391" href="#391">391</a>
+<a name="392" href="#392">392</a> <em>/**<em>*</em></em>
+<a name="393" href="#393">393</a> <em> * Returns the topic that is subscribed to.</em>
+<a name="394" href="#394">394</a> <em> *</em>
+<a name="395" href="#395">395</a> <em> * @return the subscribed topic</em>
+<a name="396" href="#396">396</a> <em> */</em>
+<a name="397" href="#397">397</a> <strong>public</strong> TopicExpressionType getTopic( )
+<a name="398" href="#398">398</a> {
+<a name="399" href="#399">399</a> <strong>return</strong> m_topic;
+<a name="400" href="#400">400</a> }
+<a name="401" href="#401">401</a> }
+<a name="402" href="#402">402</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/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-frame.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-frame.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-frame.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,51 @@
+
+
+ <!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>wsdmclient 1.0 Reference Package org.apache.ws.client.util</title>
+ <link rel="stylesheet" href="../../../../../stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">org.apache.ws.client.util</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+
+ <li>
+ <a href="BodyWrapper.html" target="classFrame">BodyWrapper</a>
+ </li>
+
+ <li>
+ <a href="Consumer.html" target="classFrame">Consumer</a>
+ </li>
+
+ <li>
+ <a href="EnvelopeWrapper.html" target="classFrame">EnvelopeWrapper</a>
+ </li>
+
+ <li>
+ <a href="HeaderWrapper.html" target="classFrame">HeaderWrapper</a>
+ </li>
+
+ <li>
+ <a href="SimpleHttpPortListener.html" target="classFrame">SimpleHttpPortListener</a>
+ </li>
+
+ <li>
+ <a href="SimplePortListener.html" target="classFrame">SimplePortListener</a>
+ </li>
+
+ <li>
+ <a href="Subscriber.html" target="classFrame">Subscriber</a>
+ </li>
+
+ </ul>
+
+ </body>
+ </html>
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-summary.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-summary.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/org/apache/ws/client/util/package-summary.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,138 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ <!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>wsdmclient 1.0 Reference Package </title>
+ <link rel="stylesheet" href="../../../../../stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+ <h2>Package org.apache.ws.client.util</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+
+ <tbody>
+
+ <tr>
+ <td>
+ <a href="BodyWrapper.html" target="classFrame">BodyWrapper</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="Consumer.html" target="classFrame">Consumer</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="EnvelopeWrapper.html" target="classFrame">EnvelopeWrapper</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="HeaderWrapper.html" target="classFrame">HeaderWrapper</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="SimpleHttpPortListener.html" target="classFrame">SimpleHttpPortListener</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="SimplePortListener.html" target="classFrame">SimplePortListener</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="Subscriber.html" target="classFrame">Subscriber</a>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="../../../../../overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="../../../../../index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+
+ <hr></hr>
+
+ Copyright © 2004 Apache. All Rights Reserved.
+ </body>
+ </html>
+
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-frame.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-frame.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-frame.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-frame.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,51 @@
+
+
+ <!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>wsdmclient 1.0 Reference</title>
+ <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+ <h3>
+ <a href="allclasses-frame.html" target="packageFrame">All Classes</a>
+ </h3>
+
+ <h3>Packages</h3>
+
+ <ul>
+
+ <li>
+ <a href="./package-frame.html" target="packageFrame">(default package)</a>
+ </li>
+
+ <li>
+ <a href="org/apache/ws/client/package-frame.html" target="packageFrame">org.apache.ws.client</a>
+ </li>
+
+ <li>
+ <a href="org/apache/ws/client/async/package-frame.html" target="packageFrame">org.apache.ws.client.async</a>
+ </li>
+
+ <li>
+ <a href="org/apache/ws/client/model/package-frame.html" target="packageFrame">org.apache.ws.client.model</a>
+ </li>
+
+ <li>
+ <a href="org/apache/ws/client/model/impl/package-frame.html" target="packageFrame">org.apache.ws.client.model.impl</a>
+ </li>
+
+ <li>
+ <a href="org/apache/ws/client/model/swing/package-frame.html" target="packageFrame">org.apache.ws.client.model.swing</a>
+ </li>
+
+ <li>
+ <a href="org/apache/ws/client/util/package-frame.html" target="packageFrame">org.apache.ws.client.util</a>
+ </li>
+
+ </ul>
+
+ </body>
+ </html>
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-summary.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-summary.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-summary.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/overview-summary.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,130 @@
+
+
+
+
+
+
+
+
+
+
+
+ <!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>wsdmclient 1.0 Reference</title>
+ <link rel="stylesheet" href="stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li class="selected">Overview</li>
+ <li>Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="overview-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+ <h2>wsdmclient 1.0 Reference</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Packages</th>
+ </tr>
+ </thead>
+
+ <tbody>
+
+ <tr>
+ <td>
+ <a href="./package-summary.html">(default package)</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="org/apache/ws/client/package-summary.html">org.apache.ws.client</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="org/apache/ws/client/async/package-summary.html">org.apache.ws.client.async</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="org/apache/ws/client/model/package-summary.html">org.apache.ws.client.model</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="org/apache/ws/client/model/impl/package-summary.html">org.apache.ws.client.model.impl</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="org/apache/ws/client/model/swing/package-summary.html">org.apache.ws.client.model.swing</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="org/apache/ws/client/util/package-summary.html">org.apache.ws.client.util</a>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li class="selected">Overview</li>
+ <li>Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="overview-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+ <hr></hr>
+ Copyright © 2004 Apache. All Rights Reserved.
+ </body>
+ </html>
+
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-frame.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-frame.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-frame.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-frame.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,31 @@
+
+
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+ <html lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+ <title>wsdmclient 1.0 Reference Package (default package)</title>
+ <link rel="stylesheet" href="./stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+ <h3>
+ <a href="package-summary.html" target="classFrame">(default package)</a>
+ </h3>
+
+ <h3>Classes</h3>
+
+ <ul>
+
+ <li>
+ <a href="WsdmExplorer.html" target="classFrame">WsdmExplorer</a>
+ </li>
+
+ <li>
+ <a href="WsdmSwingExplorer.html" target="classFrame">WsdmSwingExplorer</a>
+ </li>
+
+ </ul>
+
+ </body>
+ </html>
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-summary.html
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-summary.html?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-summary.html (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/package-summary.html Fri Aug 12 13:38:04 2005
@@ -0,0 +1,108 @@
+
+
+
+
+
+
+
+
+
+
+
+
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
+ <html lang="en">
+ <head>
+ <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1"></meta>
+ <title>wsdmclient 1.0 Reference Package </title>
+ <link rel="stylesheet" href="./stylesheet.css" type="text/css" title="style"></link>
+ </head>
+ <body>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="./overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="./index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+ <h2>Package (default package)</h2>
+
+ <table class="summary">
+ <thead>
+ <tr>
+ <th>Class Summary</th>
+ </tr>
+ </thead>
+
+ <tbody>
+
+ <tr>
+ <td>
+ <a href="WsdmExplorer.html" target="classFrame">WsdmExplorer</a>
+ </td>
+ </tr>
+
+ <tr>
+ <td>
+ <a href="WsdmSwingExplorer.html" target="classFrame">WsdmSwingExplorer</a>
+ </td>
+ </tr>
+
+ </tbody>
+ </table>
+
+
+
+
+
+ <div class="overview">
+ <ul>
+ <li>
+ <a href="./overview-summary.html">Overview</a>
+ </li>
+ <li class="selected">Package</li>
+ </ul>
+ </div>
+ <div class="framenoframe">
+ <ul>
+ <li>
+ <a href="./index.html" target="_top">FRAMES</a>
+ </li>
+ <li>
+ <a href="package-summary.html" target="_top">NO FRAMES</a>
+ </li>
+ </ul>
+ </div>
+
+
+
+
+
+
+ <hr></hr>
+
+ Copyright © 2004 Apache. All Rights Reserved.
+ </body>
+ </html>
+
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/stylesheet.css
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/stylesheet.css?rev=232376&view=auto
==============================================================================
--- webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/stylesheet.css (added)
+++ webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/docs/xref/stylesheet.css Fri Aug 12 13:38:04 2005
@@ -0,0 +1,96 @@
+/* Javadoc style sheet */
+/* Define colors, fonts and other style attributes here to override the defaults */
+body {
+ background-color: #fff;
+ font-family: Arial, Helvetica, sans-serif;
+}
+
+a:link {
+ color: #00f;
+}
+a:visited {
+ color: #00a;
+}
+
+a:active, a:hover {
+ color: #f30 !important;
+}
+
+ul, li {
+ list-style-type:none ;
+ margin:0;
+ padding:0;
+}
+
+table td{
+ padding: 3px;
+ border: 1px solid #000;
+}
+table{
+ width:100%;
+ border: 1px solid #000;
+ border-collapse: collapse;
+}
+
+div.overview {
+ background-color:#ddd;
+ padding: 4px 4px 4px 0;
+}
+div.overview li, div.framenoframe li {
+ display: inline;
+}
+div.framenoframe {
+ text-align: center;
+ font-size: x-small;
+}
+div.framenoframe li {
+ margin: 0 3px 0 3px;
+}
+div.overview li {
+ margin:3px 3px 0 3px;
+ padding: 4px;
+}
+li.selected {
+ background-color:#888;
+ color: #fff;
+ font-weight: bold;
+}
+
+table.summary {
+ margin-bottom: 20px;
+}
+table.summary td, table.summary th {
+ font-weight: bold;
+ text-align: left;
+ padding: 3px;
+}
+table.summary th{
+ background-color:#036;
+ color: #fff;
+}
+table.summary td{
+ background-color:#eee;
+ border: 1px solid black;
+}
+
+em {
+ color: #A00;
+}
+em.comment {
+ color: #390;
+}
+.string {
+ color: #009;
+}
+div#footer {
+ text-align:center;
+}
+#overview {
+ padding:2px;
+}
+
+
+hr {
+ height: 1px;
+ color: #000;
+}
\ No newline at end of file
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/addressing-SNAPSHOT.jar
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/addressing-SNAPSHOT.jar?rev=232376&view=auto
==============================================================================
Binary file - no diff available.
Propchange: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/addressing-SNAPSHOT.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/ant-1.6.2.jar
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/ant-1.6.2.jar?rev=232376&view=auto
==============================================================================
Binary file - no diff available.
Propchange: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/ant-1.6.2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-1.2-RC2.jar
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-1.2-RC2.jar?rev=232376&view=auto
==============================================================================
Binary file - no diff available.
Propchange: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-1.2-RC2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-jaxrpc-1.2-RC2.jar
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-jaxrpc-1.2-RC2.jar?rev=232376&view=auto
==============================================================================
Binary file - no diff available.
Propchange: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-jaxrpc-1.2-RC2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-saaj-1.2-RC2.jar
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-saaj-1.2-RC2.jar?rev=232376&view=auto
==============================================================================
Binary file - no diff available.
Propchange: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/axis-saaj-1.2-RC2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/commons-discovery-0.2.jar
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/commons-discovery-0.2.jar?rev=232376&view=auto
==============================================================================
Binary file - no diff available.
Propchange: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/commons-discovery-0.2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
Added: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/commons-httpclient-2.0.2.jar
URL: http://svn.apache.org/viewcvs/webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/commons-httpclient-2.0.2.jar?rev=232376&view=auto
==============================================================================
Binary file - no diff available.
Propchange: webservices/muse/trunk/src/examples/client/target/wsdmclient-1.0/bin/wsdmclient-1.0/lib/commons-httpclient-2.0.2.jar
------------------------------------------------------------------------------
svn:mime-type = application/octet-stream
---------------------------------------------------------------------
To unsubscribe, e-mail: muse-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: muse-dev-help@ws.apache.org