43
43
</ li >
44
44
< li > < a href ="#alternate "> Alternate Implementations</ a >
45
45
< ul >
46
- < li > < a href ="#robaho "> Robaho</ a > </ li >
47
46
< li > < a href ="#jetty "> Jetty</ a > </ li >
47
+ < li > < a href ="#robaho "> Robaho</ a > </ li >
48
48
</ ul >
49
49
</ li >
50
50
</ ul >
@@ -98,6 +98,7 @@ <h1 id="overview">Avaje Jex</h1>
98
98
< li > Json (de)serialization SPI</ li >
99
99
< li > Automatic Compression</ li >
100
100
< li > Context abstraction over HttpExchange to easily retrieve and send request/response data.</ li >
101
+ < li > Multi-Server with any implementation of jdk.httpserver (Jetty, Robaho, built-in, etc)</ li >
101
102
</ ul >
102
103
103
104
< h2 id ="quick-start "> Quick Start</ h2 >
@@ -301,7 +302,7 @@ <h3 id="ctx">Context</h3>
301
302
response.
302
303
</ p >
303
304
304
- < p > See the < a href ="https://javadoc.io/doc/io.avaje/avaje-jex/latest/io.avaje.jex/io/avaje/jex/Context.html "> Context
305
+ < p > See the < a href ="https://javadoc.io/doc/io.avaje/avaje-jex/latest/io.avaje.jex/io/avaje/jex/http/ Context.html "> Context
305
306
Javadoc</ a > for a description of all the methods available</ p >
306
307
< details >
307
308
< summary > Some < em > Context</ em > Methods: (click to expand) </ summary >
@@ -414,8 +415,8 @@ <h3 id="ctx">Context</h3>
414
415
< td > Returns map of all query parameters.</ td >
415
416
</ tr >
416
417
< tr >
417
- < td > < strong > < code > url ()</ code > </ strong > </ td >
418
- < td > Returns request url .</ td >
418
+ < td > < strong > < code > uri ()</ code > </ strong > </ td >
419
+ < td > Returns request uri .</ td >
419
420
</ tr >
420
421
< tr >
421
422
< td > < strong > < code > fullUrl()</ code > </ strong > </ td >
@@ -723,7 +724,7 @@ <h2 id="config">Server Configuration</h2>
723
724
724
725
< h2 id ="ssl "> Configuring Https</ h2 >
725
726
< p >
726
- The JDK HttpsServer can be configured using a < code > HttpsConfigurator</ code > instance to provide SSL termination.
727
+ The underlying HttpsServer can be configured using a < code > HttpsConfigurator</ code > instance to provide SSL termination.
727
728
The below example demonstrates how to configure a < code > HttpsConfigurator</ code > with an < code > SSLContext</ code > .
728
729
</ p >
729
730
@@ -763,30 +764,9 @@ <h2 id="ssl">Configuring Https</h2>
763
764
764
765
< h2 id ="alternate "> Alternate HttpServer Implementations</ h2 >
765
766
766
- < p > The JDK provides an SPI to swap the underlying < code > HttpServer</ code > , so you can easily use jex with
767
+ < p > The JDK provides an SPI to swap the underlying < code > HttpServer</ code > , so you can easily use jex as a wrapper for
767
768
alternate implementations by adding them as a dependency.</ p >
768
769
769
- < h3 id ="robaho "> Robaho</ h3 >
770
-
771
- < p > < a href ="https://github.com/robaho/httpserver "> Robaho's
772
- server</ a > is a zero-dependency implementation with some key optimizations. In certain benchmarks, performance seems
773
- to be increased by 10x over the built-in server and up to 5x over the jetty implementation.</ p >
774
- < a href ="https://mvnrepository.com/artifact/io.github.robaho/httpserver "> < img
775
- src ="https://img.shields.io/maven-central/v/io.github.robaho/httpserver.svg?label=robaho.version "> </ a >
776
- < br > </ br >
777
- < div class ="syntax xml "> < div class ="highlight "> < pre > < span > </ span > < span class ="nt "> <dependency></ span >
778
- < span class ="nt "> <groupId></ span > io.avaje< span class ="nt "> </groupId></ span >
779
- < span class ="nt "> <artifactId></ span > avaje-jex< span class ="nt "> </artifactId></ span >
780
- < span class ="nt "> <version></ span > ${jex.version}< span class ="nt "> </version></ span >
781
- < span class ="nt "> </dependency></ span >
782
- < span class ="nt "> <dependency></ span >
783
- < span class ="nt "> <groupId></ span > io.github.robaho< span class ="nt "> </groupId></ span >
784
- < span class ="nt "> <artifactId></ span > httpserver< span class ="nt "> </artifactId></ span >
785
- < span class ="nt "> <version></ span > ${robaho.version}< span class ="nt "> </version></ span >
786
- < span class ="nt "> </dependency></ span >
787
- </ pre > </ div >
788
- </ div >
789
-
790
770
< h3 id ="jetty "> Jetty</ h3 >
791
771
792
772
< p > Jetty is a classic embedded server with a long and distinguished history.</ p >
@@ -813,6 +793,26 @@ <h3 id="jetty">Jetty</h3>
813
793
</ pre > </ div >
814
794
</ div >
815
795
796
+ < h3 id ="robaho "> Robaho</ h3 >
797
+
798
+ < p > < a href ="https://github.com/robaho/httpserver "> Robaho's
799
+ server</ a > is a zero-dependency implementation with some key optimizations. In certain benchmarks, performance seems
800
+ to be increased by 10x over the built-in server and up to 5x over the jetty implementation.</ p >
801
+ < a href ="https://mvnrepository.com/artifact/io.github.robaho/httpserver "> < img
802
+ src ="https://img.shields.io/maven-central/v/io.github.robaho/httpserver.svg?label=robaho.version "> </ a >
803
+ < br > </ br >
804
+ < div class ="syntax xml "> < div class ="highlight "> < pre > < span > </ span > < span class ="nt "> <dependency></ span >
805
+ < span class ="nt "> <groupId></ span > io.avaje< span class ="nt "> </groupId></ span >
806
+ < span class ="nt "> <artifactId></ span > avaje-jex< span class ="nt "> </artifactId></ span >
807
+ < span class ="nt "> <version></ span > ${jex.version}< span class ="nt "> </version></ span >
808
+ < span class ="nt "> </dependency></ span >
809
+ < span class ="nt "> <dependency></ span >
810
+ < span class ="nt "> <groupId></ span > io.github.robaho< span class ="nt "> </groupId></ span >
811
+ < span class ="nt "> <artifactId></ span > httpserver< span class ="nt "> </artifactId></ span >
812
+ < span class ="nt "> <version></ span > ${robaho.version}< span class ="nt "> </version></ span >
813
+ < span class ="nt "> </dependency></ span >
814
+ </ pre > </ div >
815
+ </ div >
816
816
< p > < br > < br > < br > < br > < br > < br > </ p >
817
817
818
818
</ article >
0 commit comments