qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kw...@apache.org
Subject svn commit: r1722689 [21/21] - in /qpid/site/docs/releases/qpid-java-trunk: ./ java-broker/book/ java-broker/book/images/ jms-client-0-8/book/ jms-client-0-8/book/images/ qpid-jms/examples/
Date Sat, 02 Jan 2016 23:59:50 GMT
Modified: qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/OptionParser.java.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/OptionParser.java.html?rev=1722689&r1=1722688&r2=1722689&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/OptionParser.java.html (original)
+++ qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/OptionParser.java.html Sat Jan
 2 23:59:48 2016
@@ -116,7 +116,7 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>OptionParser.java</h1>
-<div class="highlight"><pre><span class="kn">package</span> <span
class="n">org</span><span class="o">.</span><span class="na">apache</span><span
class="o">.</span><span class="na">qpid</span><span class="o">.</span><span
class="na">example</span><span class="o">;</span>
+<div class="highlight"><pre><span class="kn">package</span> <span
class="nn">org.apache.qpid.example</span><span class="o">;</span>
 
 <span class="kn">import</span> <span class="nn">java.util.ArrayList</span><span
class="o">;</span>
 <span class="kn">import</span> <span class="nn">java.util.HashMap</span><span
class="o">;</span>
@@ -233,7 +233,7 @@ https://github.com/apache/qpid-proton/bl
     <span class="kd">private</span> <span class="kt">void</span>
<span class="nf">parseOpts</span><span class="o">(</span><span
class="n">String</span><span class="o">[]</span> <span class="n">args</span><span
class="o">)</span>
     <span class="o">{</span>   
         <span class="n">String</span> <span class="n">prevOpt</span>
<span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
-        <span class="k">for</span><span class="o">(</span><span
class="n">String</span> <span class="nl">op:</span> <span class="n">args</span><span
class="o">)</span>
+        <span class="k">for</span><span class="o">(</span><span
class="n">String</span> <span class="n">op</span><span class="o">:</span>
<span class="n">args</span><span class="o">)</span>
         <span class="o">{</span>
             <span class="c1">// covers both -h and --help formats</span>
             <span class="k">if</span> <span class="o">(</span><span
class="n">op</span><span class="o">.</span><span class="na">startsWith</span><span
class="o">(</span><span class="s">&quot;-&quot;</span><span
class="o">))</span>
@@ -244,7 +244,7 @@ https://github.com/apache/qpid-proton/bl
                                             <span class="n">op</span><span
class="o">.</span><span class="na">length</span><span class="o">());</span>
                 
                 <span class="kt">boolean</span> <span class="n">match</span>
<span class="o">=</span> <span class="kc">false</span><span class="o">;</span>
-                <span class="k">for</span> <span class="o">(</span><span
class="n">Option</span> <span class="nl">option:</span> <span class="n">optDefs</span><span
class="o">)</span>
+                <span class="k">for</span> <span class="o">(</span><span
class="n">Option</span> <span class="n">option</span><span class="o">:</span>
<span class="n">optDefs</span><span class="o">)</span>
                 <span class="o">{</span>
                     
                     <span class="k">if</span> <span class="o">((</span><span
class="n">op</span><span class="o">.</span><span class="na">startsWith</span><span
class="o">(</span><span class="s">&quot;-&quot;</span><span
class="o">)</span> <span class="o">&amp;&amp;</span> <span
class="n">option</span><span class="o">.</span><span class="na">getShortForm</span><span
class="o">()</span> <span class="o">!=</span> <span class="kc">null</span>
<span class="o">&amp;&amp;</span> <span class="n">option</span><span
class="o">.</span><span class="na">getShortForm</span><span class="o">().</span><span
class="na">equals</span><span class="o">(</span><span class="n">key</span><span
class="o">))</span> <span class="o">||</span>
@@ -279,7 +279,7 @@ https://github.com/apache/qpid-proton/bl
                     <span class="n">prevOpt</span> <span class="o">=</span>
<span class="n">key</span><span class="o">;</span>
                 <span class="o">}</span>
             <span class="o">}</span>
-            <span class="k">else</span> <span class="nf">if</span>
<span class="o">(</span><span class="n">prevOpt</span> <span class="o">!=</span>
<span class="kc">null</span><span class="o">)</span> <span class="c1">//
this is to catch broker localhost:5672 instead broker=localhost:5672</span>
+            <span class="k">else</span> <span class="k">if</span>
<span class="o">(</span><span class="n">prevOpt</span> <span class="o">!=</span>
<span class="kc">null</span><span class="o">)</span> <span class="c1">//
this is to catch broker localhost:5672 instead broker=localhost:5672</span>
             <span class="o">{</span>
                 <span class="n">String</span> <span class="n">val</span>
<span class="o">=</span> <span class="n">extractValue</span><span
class="o">(</span><span class="n">op</span><span class="o">);</span>
                 <span class="k">if</span> <span class="o">(</span><span
class="n">optMap</span><span class="o">.</span><span class="na">containsKey</span><span
class="o">(</span><span class="n">prevOpt</span><span class="o">)</span>
<span class="o">&amp;&amp;</span> <span class="o">!</span><span
class="n">optMap</span><span class="o">.</span><span class="na">get</span><span
class="o">(</span><span class="n">prevOpt</span><span class="o">).</span><span
class="na">toString</span><span class="o">().</span><span class="na">equals</span><span
class="o">(</span><span class="s">&quot;&quot;</span><span
class="o">))</span>
@@ -295,7 +295,7 @@ https://github.com/apache/qpid-proton/bl
             <span class="k">else</span>
             <span class="o">{</span>
                 <span class="n">System</span><span class="o">.</span><span
class="na">out</span><span class="o">.</span><span class="na">println</span><span
class="o">(</span><span class="n">optMap</span><span class="o">);</span>
-                <span class="k">throw</span> <span class="k">new</span>
<span class="nf">IllegalArgumentException</span><span class="o">(</span><span
class="n">op</span> <span class="o">+</span> <span class="s">&quot;
is not a valid option&quot;</span><span class="o">);</span>
+                <span class="k">throw</span> <span class="k">new</span>
<span class="n">IllegalArgumentException</span><span class="o">(</span><span
class="n">op</span> <span class="o">+</span> <span class="s">&quot;
is not a valid option&quot;</span><span class="o">);</span>
             <span class="o">}</span>
         <span class="o">}</span>
     <span class="o">}</span>
@@ -306,7 +306,7 @@ https://github.com/apache/qpid-proton/bl
         <span class="o">{</span>
             <span class="k">if</span> <span class="o">(!</span><span
class="n">op</span><span class="o">.</span><span class="na">endsWith</span><span
class="o">(</span><span class="s">&quot;&#39;&quot;</span><span
class="o">))</span> 
             <span class="o">{</span>
-                <span class="k">throw</span> <span class="k">new</span>
<span class="nf">IllegalArgumentException</span><span class="o">(</span><span
class="s">&quot; The option &quot;</span> <span class="o">+</span>
<span class="n">op</span> <span class="o">+</span> <span class="s">&quot;
needs to be inside quotes&quot;</span><span class="o">);</span>
+                <span class="k">throw</span> <span class="k">new</span>
<span class="n">IllegalArgumentException</span><span class="o">(</span><span
class="s">&quot; The option &quot;</span> <span class="o">+</span>
<span class="n">op</span> <span class="o">+</span> <span class="s">&quot;
needs to be inside quotes&quot;</span><span class="o">);</span>
             <span class="o">}</span>
             
             <span class="k">return</span> <span class="n">op</span><span
class="o">.</span><span class="na">substring</span><span class="o">(</span><span
class="mi">1</span><span class="o">,</span><span class="n">op</span><span
class="o">.</span><span class="na">length</span><span class="o">()</span>
<span class="o">-</span><span class="mi">1</span><span class="o">);</span>
@@ -328,7 +328,7 @@ https://github.com/apache/qpid-proton/bl
         <span class="o">{</span>
             <span class="k">return</span> <span class="o">(</span><span
class="n">String</span><span class="o">)</span><span class="n">optMap</span><span
class="o">.</span><span class="na">get</span><span class="o">(</span><span
class="n">op</span><span class="o">.</span><span class="na">getShortForm</span><span
class="o">());</span>
         <span class="o">}</span>
-        <span class="k">else</span> <span class="nf">if</span> <span
class="o">(</span><span class="n">optMap</span><span class="o">.</span><span
class="na">containsKey</span><span class="o">(</span><span class="n">op</span><span
class="o">.</span><span class="na">getLongForm</span><span class="o">()))</span>
+        <span class="k">else</span> <span class="k">if</span> <span
class="o">(</span><span class="n">optMap</span><span class="o">.</span><span
class="na">containsKey</span><span class="o">(</span><span class="n">op</span><span
class="o">.</span><span class="na">getLongForm</span><span class="o">()))</span>
         <span class="o">{</span>
             <span class="k">return</span> <span class="o">(</span><span
class="n">String</span><span class="o">)</span><span class="n">optMap</span><span
class="o">.</span><span class="na">get</span><span class="o">(</span><span
class="n">op</span><span class="o">.</span><span class="na">getLongForm</span><span
class="o">());</span>
         <span class="o">}</span>

Modified: qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/Spout.java.html
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/Spout.java.html?rev=1722689&r1=1722688&r2=1722689&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/Spout.java.html (original)
+++ qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/Spout.java.html Sat Jan  2 23:59:48
2016
@@ -116,7 +116,7 @@ https://github.com/apache/qpid-proton/bl
         <div id="-middle-content">
           
 <h1>Spout.java</h1>
-<div class="highlight"><pre><span class="kn">package</span> <span
class="n">org</span><span class="o">.</span><span class="na">apache</span><span
class="o">.</span><span class="na">qpid</span><span class="o">.</span><span
class="na">example</span><span class="o">;</span>
+<div class="highlight"><pre><span class="kn">package</span> <span
class="nn">org.apache.qpid.example</span><span class="o">;</span>
 
 <span class="kn">import</span> <span class="nn">javax.jms.Connection</span><span
class="o">;</span>
 <span class="kn">import</span> <span class="nn">javax.jms.Destination</span><span
class="o">;</span>
@@ -208,7 +208,7 @@ https://github.com/apache/qpid-proton/bl
         <span class="k">if</span> <span class="o">(</span><span
class="n">containsOp</span><span class="o">(</span><span class="n">MAP_ENTRY</span><span
class="o">))</span>
         <span class="o">{</span>
             <span class="n">MapMessage</span> <span class="n">msg</span>
<span class="o">=</span> <span class="n">ssn</span><span class="o">.</span><span
class="na">createMapMessage</span><span class="o">();</span>
-            <span class="k">for</span> <span class="o">(</span><span
class="n">String</span> <span class="nl">pair:</span> <span class="n">getOp</span><span
class="o">(</span><span class="n">MAP_ENTRY</span><span class="o">).</span><span
class="na">split</span><span class="o">(</span><span class="s">&quot;,&quot;</span><span
class="o">))</span>
+            <span class="k">for</span> <span class="o">(</span><span
class="n">String</span> <span class="n">pair</span><span class="o">:</span>
<span class="n">getOp</span><span class="o">(</span><span class="n">MAP_ENTRY</span><span
class="o">).</span><span class="na">split</span><span class="o">(</span><span
class="s">&quot;,&quot;</span><span class="o">))</span>
             <span class="o">{</span>
                 <span class="n">msg</span><span class="o">.</span><span
class="na">setString</span><span class="o">(</span><span class="n">pair</span><span
class="o">.</span><span class="na">substring</span><span class="o">(</span><span
class="mi">0</span><span class="o">,</span> <span class="n">pair</span><span
class="o">.</span><span class="na">indexOf</span><span class="o">(</span><span
class="sc">&#39;=&#39;</span><span class="o">)),</span>
                               <span class="n">pair</span><span class="o">.</span><span
class="na">substring</span><span class="o">(</span><span class="n">pair</span><span
class="o">.</span><span class="na">indexOf</span><span class="o">(</span><span
class="sc">&#39;=&#39;</span><span class="o">)</span> <span
class="o">+</span> <span class="mi">1</span><span class="o">));</span>
@@ -229,7 +229,7 @@ https://github.com/apache/qpid-proton/bl
     <span class="o">{</span>
         <span class="k">if</span><span class="o">(</span><span
class="n">containsOp</span><span class="o">(</span><span class="n">MSG_PROPERTY</span><span
class="o">))</span>
         <span class="o">{</span>
-            <span class="k">for</span> <span class="o">(</span><span
class="n">String</span> <span class="nl">pair:</span> <span class="n">getOp</span><span
class="o">(</span><span class="n">MSG_PROPERTY</span><span class="o">).</span><span
class="na">split</span><span class="o">(</span><span class="s">&quot;,&quot;</span><span
class="o">))</span>
+            <span class="k">for</span> <span class="o">(</span><span
class="n">String</span> <span class="n">pair</span><span class="o">:</span>
<span class="n">getOp</span><span class="o">(</span><span class="n">MSG_PROPERTY</span><span
class="o">).</span><span class="na">split</span><span class="o">(</span><span
class="s">&quot;,&quot;</span><span class="o">))</span>
             <span class="o">{</span>
                 <span class="n">m</span><span class="o">.</span><span
class="na">setStringProperty</span><span class="o">(</span><span class="n">pair</span><span
class="o">.</span><span class="na">substring</span><span class="o">(</span><span
class="mi">0</span><span class="o">,</span> <span class="n">pair</span><span
class="o">.</span><span class="na">indexOf</span><span class="o">(</span><span
class="sc">&#39;=&#39;</span><span class="o">)),</span>
                               <span class="n">pair</span><span class="o">.</span><span
class="na">substring</span><span class="o">(</span><span class="n">pair</span><span
class="o">.</span><span class="na">indexOf</span><span class="o">(</span><span
class="sc">&#39;=&#39;</span><span class="o">)</span> <span
class="o">+</span> <span class="mi">1</span><span class="o">));</span>
@@ -242,7 +242,7 @@ https://github.com/apache/qpid-proton/bl
         <span class="n">String</span> <span class="n">u</span> <span
class="o">=</span> <span class="s">&quot;Usage: spout [OPTIONS] &#39;ADDRESS&#39;&quot;</span><span
class="o">;</span>
         <span class="n">String</span> <span class="n">d</span> <span
class="o">=</span> <span class="s">&quot;Send messages to the specified
address.&quot;</span><span class="o">;</span> 
             
-        <span class="k">new</span> <span class="nf">Spout</span><span
class="o">(</span><span class="n">args</span><span class="o">,</span><span
class="n">u</span><span class="o">,</span><span class="n">d</span><span
class="o">);</span>        
+        <span class="k">new</span> <span class="n">Spout</span><span
class="o">(</span><span class="n">args</span><span class="o">,</span><span
class="n">u</span><span class="o">,</span><span class="n">d</span><span
class="o">);</span>        
     <span class="o">}</span>
 <span class="o">}</span>
 </pre></div>

Modified: qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/hello.properties
URL: http://svn.apache.org/viewvc/qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/hello.properties?rev=1722689&r1=1722688&r2=1722689&view=diff
==============================================================================
--- qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/hello.properties (original)
+++ qpid/site/docs/releases/qpid-java-trunk/qpid-jms/examples/hello.properties Sat Jan  2
23:59:48 2016
@@ -25,3 +25,4 @@ connectionfactory.qpidConnectionfactory
 # Register an AMQP destination in JNDI
 # destination.[jniName] = [Address Format]
 destination.topicExchange = amq.topic
+



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message