Skip to content

Commit 45e0ef8

Browse files
committed
Add link to Vert.x 3 website
1 parent 23bae55 commit 45e0ef8

13 files changed

+58
-4
lines changed

core_manual_clojure.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ <h4 id="getting-notified-of-reply-failures">Getting notified of reply failures</
782782
(fn [m]
783783
(eb/fail 123 "Not enough aardvarks")))
784784

785+
785786
(eb/send "test.address" "This is a message" 1000
786787
(fn [err m]
787788
(if err

core_manual_java.html

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -855,6 +855,7 @@ <h1 id="json">JSON</h1><br/>
855855

856856
eb.send("some-address", obj);
857857

858+
858859
// ....
859860
// And in a handler somewhere:
860861

@@ -1850,7 +1851,8 @@ <h3 id="serving-files-directly-from-disk">Serving files directly from disk</h3><
18501851
<p><strong>If you're going to write web servers using Vert.x be careful that users cannot exploit the path to access files outside the directory from which you want to serve them.</strong></p>
18511852
<h3 id="pumping-responses">Pumping Responses</h3><br/>
18521853
<p>Since the HTTP Response implements <code>WriteStream</code> you can pump to it from any <code>ReadStream</code>, e.g. an <code>AsyncFile</code>, <code>NetSocket</code>, <code>WebSocket</code> or <code>HttpServerRequest</code>.</p>
1853-
<p>Here's an example which echoes HttpRequest headers and body back in the HttpResponse. It uses a pump for the body, so it will work even if the HTTP request body is much larger than can fit in memory at any one time:</p>
1854+
<p>Here's an example which echoes HttpRequest headers and body back in the HttpResponse.
1855+
It uses a pump for the body, so it will work even if the HTTP request body is much larger than can fit in memory at any one time:</p>
18541856
<pre class="prettyprint">HttpServer server = vertx.createHttpServer();
18551857

18561858
server.requestHandler(new Handler&lt;HttpServerRequest&gt;() {
@@ -2381,7 +2383,8 @@ <h2 id="sockjs-client">SockJS client</h2><br/>
23812383
<p>As you can see the API is very similar to the WebSockets API.</p>
23822384
<h1 id="sockjs-eventbus-bridge">SockJS - EventBus Bridge</h1><br/>
23832385
<h2 id="setting-up-the-bridge">Setting up the Bridge</h2><br/>
2384-
<p>By connecting up SockJS and the Vert.x event bus we create a distributed event bus which not only spans multiple Vert.x instances on the server side, but can also include client side JavaScript running in browsers.</p>
2386+
<p>By connecting up SockJS and the Vert.x event bus we create a distributed event bus which not only spans multiple Vert.x
2387+
instances on the server side, but can also include client side JavaScript running in browsers.</p>
23852388
<p>We can therefore create a huge distributed bus encompassing many browsers and servers. The browsers don't have to be connected to the same server as long as the servers are connected.</p>
23862389
<p>On the server side we have already discussed the event bus API.</p>
23872390
<p>We also provide a client side JavaScript library called <code>vertxbus.js</code> which provides the same event bus API, but on the client side.</p>

core_manual_js.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2076,6 +2076,7 @@ <h2 id="securing-the-bridge">Securing the Bridge</h2><br/>
20762076
]
20772077
);
20782078

2079+
20792080
httpServer.listen(8080);
20802081
</pre>
20812082
<p>To let all messages through you can specify two JSON array with a single empty JSON object which will match all messages.</p>

core_manual_python.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2084,6 +2084,7 @@ <h2 id="securing-the-bridge">Securing the Bridge</h2><br/>
20842084
}
20852085
], [{}])
20862086

2087+
20872088
server.listen(8080)
20882089
</pre>
20892090
<p>To let all messages through you can specify two arrays with a single empty JSON object which will match all messages.</p>
@@ -2334,6 +2335,7 @@ <h3 id="random-access-writes">Random access writes</h3><br/>
23342335
print 'Written ok'
23352336
async_file.write(buff, buff.length() * i, write_handler)
23362337

2338+
23372339
fs.open('some-file.dat', handler=handler)
23382340
</pre>
23392341
<h3 id="random-access-reads">Random access reads</h3><br/>

core_manual_ruby.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2016,6 +2016,7 @@ <h2 id="securing-the-bridge">Securing the Bridge</h2><br/>
20162016
}
20172017
])
20182018

2019+
20192020
server.listen(8080)
20202021
</pre>
20212022
<p>To let all messages through you can specify two arrays with a single empty JSON object which will match all messages.</p>

core_manual_scala.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,7 @@ <h1 id="json">JSON</h1><br/>
844844
val obj = Json.obj("foo" -&gt; "wibble", "age" -&gt; 1000)
845845
eb.send("some-address", obj)
846846

847+
847848
// ....
848849
// And in a handler somewhere:
849850

docs_md/core_manual_java.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2010,7 +2010,8 @@ There's also a version of `sendFile` which takes the name of a file to serve if
20102010

20112011
Since the HTTP Response implements `WriteStream` you can pump to it from any `ReadStream`, e.g. an `AsyncFile`, `NetSocket`, `WebSocket` or `HttpServerRequest`.
20122012

2013-
Here's an example which echoes HttpRequest headers and body back in the HttpResponse. It uses a pump for the body, so it will work even if the HTTP request body is much larger than can fit in memory at any one time:
2013+
Here's an example which echoes HttpRequest headers and body back in the HttpResponse.
2014+
It uses a pump for the body, so it will work even if the HTTP request body is much larger than can fit in memory at any one time:
20142015

20152016
HttpServer server = vertx.createHttpServer();
20162017

@@ -2724,7 +2725,8 @@ As you can see the API is very similar to the WebSockets API.
27242725

27252726
## Setting up the Bridge
27262727

2727-
By connecting up SockJS and the Vert.x event bus we create a distributed event bus which not only spans multiple Vert.x instances on the server side, but can also include client side JavaScript running in browsers.
2728+
By connecting up SockJS and the Vert.x event bus we create a distributed event bus which not only spans multiple Vert.x
2729+
instances on the server side, but can also include client side JavaScript running in browsers.
27282730

27292731
We can therefore create a huge distributed bus encompassing many browsers and servers. The browsers don't have to be connected to the same server as long as the servers are connected.
27302732

index.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,25 @@
7878

7979
<br />
8080

81+
82+
<div class="row">
83+
84+
<div class="span12">
85+
<div class="highlight">
86+
<h3 class="highlight_title">What's new in Vert.x 3?</h3>
87+
88+
<br/>
89+
90+
<p><a href="http://vert-x3.github.io/">Take a sneaky-peak</a> at the exciting new stuff in the soon-to-be released Vert.x 3.0!</p>
91+
<p>Please note! Vert.x 3 is still a work-in-progress</p>
92+
93+
</div>
94+
</div>
95+
</div>
96+
97+
<br/>
98+
99+
81100
<div class="row">
82101

83102
<div class="span3">

index_templ.html

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@
2121

2222
<br />
2323

24+
25+
<div class="row">
26+
27+
<div class="span12">
28+
<div class="highlight">
29+
<h3 class="highlight_title">What's new in Vert.x 3?</h3>
30+
31+
<br/>
32+
33+
<p><a href="http://vert-x3.github.io/">Take a sneaky-peak</a> at the exciting new stuff in the soon-to-be released Vert.x 3.0!</p>
34+
<p>Please note! Vert.x 3 is still a work-in-progress</p>
35+
36+
</div>
37+
</div>
38+
</div>
39+
40+
<br/>
41+
42+
2443
<div class="row">
2544

2645
<div class="span3">

vertx1x_docs/core_manual_java.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -684,6 +684,7 @@ <h1 id="json">JSON</h1><br/>
684684

685685
eb.send("some-address", obj);
686686

687+
687688
// ....
688689
// And in a handler somewhere:
689690

vertx1x_docs/core_manual_js.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,6 +1939,7 @@ <h2 id="securing-the-bridge">Securing the Bridge</h2><br/>
19391939
]
19401940
);
19411941

1942+
19421943
server.listen(8080);
19431944
</pre>
19441945
<p>To let all messages through you can specify two arrays with a single empty JSON object which will match all messages.</p>

vertx1x_docs/core_manual_python.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1977,6 +1977,7 @@ <h2 id="securing-the-bridge">Securing the Bridge</h2><br/>
19771977
}
19781978
], [{}])
19791979

1980+
19801981
server.listen(8080)
19811982
</pre>
19821983
<p>To let all messages through you can specify two arrays with a single empty JSON object which will match all messages.</p>
@@ -2227,6 +2228,7 @@ <h3 id="random-access-writes">Random access writes</h3><br/>
22272228
print 'Written ok'
22282229
async_file.write(buff, buff.length() * i, write_handler)
22292230

2231+
22302232
FileSystem.open('some-file.dat', handler=handler)
22312233
</pre>
22322234
<h3 id="random-access-reads">Random access reads</h3><br/>

vertx1x_docs/core_manual_ruby.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1903,6 +1903,7 @@ <h2 id="securing-the-bridge">Securing the Bridge</h2><br/>
19031903
}
19041904
])
19051905

1906+
19061907
server.listen(8080)
19071908
</pre>
19081909
<p>To let all messages through you can specify two arrays with a single empty JSON object which will match all messages.</p>

0 commit comments

Comments
 (0)