Skip to content

Commit 3da3bae

Browse files
committed
jex filter and index update
1 parent 200f14b commit 3da3bae

File tree

2 files changed

+28
-18
lines changed

2 files changed

+28
-18
lines changed

http/index.html

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1370,6 +1370,16 @@ <h2 id="filter">@Filter</h2><hr/>
13701370
<p>
13711371
Annotate methods with <code>@Filter</code> for HTTP filter web routes. Filter web routes behave similarly to void <code>@Get</code> methods (They can use header/query/cookie parameters with type conversion)
13721372
</p>
1373+
<h4>Jex</h4>
1374+
<p>
1375+
Jex filters must have a <code>FilterChain</code> parameter, and optionally can add <code>Context</code>.
1376+
</p>
1377+
<div class="syntax java"><div class="highlight"><pre><span></span><span class="nd">@Filter</span>
1378+
<span class="kt">void</span> <span class="nf">filter</span><span class="o">(</span><span class="n">FilterChain</span> <span class="n">chain</span><span class="o">,</span> <span class="n">Context</span> <span class="n">ctx</span><span class="o">)</span> <span class="o">{</span>
1379+
<span class="c1">//... filter logic</span>
1380+
<span class="o">}</span>
1381+
</pre></div>
1382+
</div>
13731383
<h4>Helidon</h4>
13741384
<p>
13751385
Helidon filters must have a <code>FilterChain</code> parameter, and optionally can add <code>RoutingRequest</code> and <code>RoutingResponse</code>.
@@ -1423,7 +1433,7 @@ <h4>Helidon</h4>
14231433
</pre></div>
14241434
</div>
14251435

1426-
<h4>Javalin</h4>
1436+
<h4>Jex/Javalin</h4>
14271437
<div class="syntax java"><div class="highlight"><pre><span></span><span class="nd">@ExceptionHandler</span>
14281438
<span class="nd">@Produces</span><span class="o">(</span><span class="nx">statusCode</span> <span class="o">=</span> <span class="mi">501</span><span class="o">)</span>
14291439
<span class="n">Person</span> <span class="nf">exceptionCtx</span><span class="o">(</span><span class="n">Exception</span> <span class="n">ex</span><span class="o">,</span> <span class="n">Context</span> <span class="n">ctx</span><span class="o">)</span> <span class="o">{</span>
@@ -2175,9 +2185,9 @@ <h5>Example</h5>
21752185
</pre></div>
21762186
</div>
21772187

2178-
<h4>Step 4: Jex AccessManager</h4>
2188+
<h4>Step 4: Example AccessManager</h4>
21792189
<p>
2180-
Ensure that Jex is setup with an AccessManager to implement the role check.
2190+
In the following example we use the roles for access management to implement the role check.
21812191
</p>
21822192

21832193
<h5>Example</h5>

index.html

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -82,40 +82,40 @@ <h2>Compile-time libraries for JVM applications</h2>
8282
</td>
8383
</tr>
8484
<tr>
85-
<th width="25%"><a href="/config">Configuration</a></th>
85+
<th><a href="/jex">Jex</a></th>
8686
<td>
8787
<p>
88-
Provides external configuration. Loads <em>YAML</em>, <em>TOML</em>
89-
&amp; <em>properties</em> files, supports dynamic configuration and plugins.
88+
Lightweight wrapper over the JDK's own <a href="https://docs.oracle.com/en/java/javase/21/docs/api/jdk.httpserver/com/sun/net/httpserver/package-summary.html">built-in HTTP server</a>, adding various capabilities. (virtual threads, JSON, compression, etc.).
9089
</p><hr/>
9190
</td>
9291
</tr>
9392
<tr>
94-
<th><a href="/jex">Jex</a></th>
93+
<th><a href="/http">HTTP Generator</a></th>
9594
<td>
9695
<p>
97-
Lightweight wrapper over the JDK's own <a href="https://docs.oracle.com/en/java/javase/21/docs/api/jdk.httpserver/com/sun/net/httpserver/package-summary.html">built-in HTTP server</a>, adding various capabilities. (virtual threads, JSON, compression, etc.).
96+
Lightweight JAX-RS style HTTP servers using <a href="https://helidon.io">Helidon SE</a>, <a href="https://javalin.io">Javalin</a>, or <a href="/jex">Jex</a>. Use annotations
97+
like <code>@Controller</code>, <code>@Get</code> etc to define a REST API.
98+
</p>
99+
<p>
100+
Uses Java annotation processing to generate source code for adapting and registering JAX-RS style classes
101+
to servers. These annotation processors are included in Jex and Nima.
98102
</p><hr/>
99103
</td>
100104
</tr>
101105
<tr>
102-
<th><a href="/nima">Nima</a></th>
106+
<th width="25%"><a href="/config">Configuration</a></th>
103107
<td>
104108
<p>
105-
Combines avaje libraries with <a href="https://helidon.io">Helidon SE</a> webserver to provide a lightweight, fast, and GraalVM native image compatible framework.
109+
Provides external configuration. Loads <em>YAML</em>, <em>TOML</em>
110+
&amp; <em>properties</em> files, supports dynamic configuration and plugins.
106111
</p><hr/>
107112
</td>
108113
</tr>
109114
<tr>
110-
<th><a href="/http">HTTP Generator</a></th>
115+
<th><a href="/nima">Nima</a></th>
111116
<td>
112117
<p>
113-
Lightweight JAX-RS style HTTP servers using <a href="https://helidon.io">Helidon SE</a>, <a href="https://javalin.io">Javalin</a>, or <a href="/jex">Jex</a>. Use annotations
114-
like <code>@Controller</code>, <code>@Get</code> etc to define a REST API.
115-
</p>
116-
<p>
117-
Uses Java annotation processing to generate source code for adapting and registering JAX-RS style classes
118-
to servers. These annotation processors are included in Jex and Nima.
118+
Combines avaje libraries with <a href="https://helidon.io">Helidon SE</a> webserver to provide a lightweight, fast, and GraalVM native image compatible framework.
119119
</p><hr/>
120120
</td>
121121
</tr>
@@ -145,7 +145,7 @@ <h2>Compile-time libraries for JVM applications</h2>
145145
</td>
146146
</tr>
147147
<tr>
148-
<th width="25%"><a href="/graalvm">GraalVM</a></th>
148+
<th width="25%"><a href="/graalvm">GraalVM Analysis</a></th>
149149
<td>
150150
<p>
151151
GraalVM native image compatible libraries for reflection-free runtime.

0 commit comments

Comments
 (0)