Skip to content

Commit d27b7eb

Browse files
authored
Merge pull request #3700 from lewisbirks/fix-docs
Fix Javadoc links on the site
2 parents 43143fb + a54ace5 commit d27b7eb

35 files changed

+140
-133
lines changed

docs/asciidoc/configuration.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ To skip/ignore Jooby loading and precedence mechanism, just instantiate and set
251251
----
252252

253253
<1> Loads and parses configuration
254-
<2> Create a new environment with configuration and (http://optionally[optionally]) active names
254+
<2> Create a new environment with configuration and (optionally) active names
255255
<3> Set environment on Jooby instance
256256

257257
IMPORTANT: Custom configuration is very flexible. You can reuse Jooby mechanism or provide your own.

docs/asciidoc/context.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ There are several parameter types: `header`, `cookie`, `path`, `query`, `form`,
9090
`session` and `flash`. All them share a unified/type-safe API for accessing and manipulating their values.
9191

9292
We are going to describe them briefly in the next sections, then go into specific features of the
93-
<<Value API>>.
93+
<<context-value-api,Value API>>.
9494

9595
There is also a <<context-parameters-parameter-lookup,parameter lookup>> feature by which you can access a parameter from any combination
9696
of the above types with well-defined priority.
@@ -540,7 +540,7 @@ File upload are available ONLY for multipart requests.
540540

541541
==== Session
542542

543-
Session parameters are available via javadoc::Context[session] or javadoc::Context[sessionOrNull]
543+
Session parameters are available via javadoc:Context[session] or javadoc:Context[sessionOrNull]
544544
methods. HTTP Session is covered in his own <<session, chapter>>, but here is a quick look:
545545

546546
.Java
@@ -599,7 +599,7 @@ a javadoc:Session[] but the lifecycle is shorter: *data is kept for only one req
599599
<3> Display an existing flash attribute `success` or shows `Welcome!`
600600

601601
Flash attributes are implemented using an `HTTP Cookie`. To customize the cookie
602-
(its name defaults to `jooby.flash`) use the javadoc:Router[setFlashCookie, Cookie] method:
602+
(its name defaults to `jooby.flash`) use the javadoc:Router[setFlashCookie, io.jooby.Cookie] method:
603603

604604
.Java
605605
[source,java,role="primary"]
@@ -626,7 +626,7 @@ Flash attributes are implemented using an `HTTP Cookie`. To customize the cookie
626626
==== Parameter Lookup
627627

628628
You can search for parameters in multiple sources with an explicitly defined priority using the
629-
javadoc:Context[lookup] or javadoc:Context[lookup, java.lang.String, ParamSource...] method:
629+
javadoc:Context[lookup] or javadoc:Context[lookup, java.lang.String, io.jooby.ParamSource...] method:
630630

631631
.Java
632632
[source,java,role="primary"]

docs/asciidoc/dev-tools.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ joobyRun {
143143
<3> Source extensions. A change on these files trigger a compilation request, followed by a restart request.
144144
<4> Application port
145145
<5> How long to wait after last file change to restart. Default is: `500` milliseconds.
146-
<5> Use a single/fat class loader to run your application. This is required on complex project classpath where you start seeing weird reflection errors. This was the default mode in Jooby 2.x. The new model since 3.x uses a modular classloader which improves restart times and memory usage making it faster. Default is: `false`.
146+
<6> Use a single/fat class loader to run your application. This is required on complex project classpath where you start seeing weird reflection errors. This was the default mode in Jooby 2.x. The new model since 3.x uses a modular classloader which improves restart times and memory usage making it faster. Default is: `false`.
147147

148148
For Maven and Gradle there are two variant `mvn jooby:testRun` and `./gradlew joobyTestRun` they work
149149
by expanding the classpath to uses the `test` scope or source set.

docs/asciidoc/error-handler.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
== Error Handler
22

33
Jooby catches application exception using the javadoc:ErrorHandler[] class. The
4-
javadoc:ErrorHandler[DEFAULT] error handler produces simple HTML page or JSON based on the value
4+
javadoc:DefaultErrorHandler[] error handler produces simple HTML page or JSON based on the value
55
of the `ACCEPT` header and log the exception.
66

77
.HTML:
@@ -32,7 +32,7 @@ io.jooby.StatusCodeException: Not found
3232
at java.lang.Thread.run(Thread.java:748)
3333
----
3434

35-
The javadoc:StatusCodeException[] works as generic exception that let you specify an status code.
35+
The javadoc:exception.StatusCodeException[] works as generic exception that let you specify an status code.
3636

3737
----
3838
throw new StatusCodeException(StatusCode.FORBIDDEN);

docs/asciidoc/execution-model.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ worker executor is used when:
354354

355355
Each web server provides a default *worker executor*:
356356

357-
- Netty: The javadoc:netty.Netty[text=Netty server] implementation multiply the number of available processors
357+
- Netty: The javadoc:netty.NettyServer[text=Netty server, artifact=jooby-netty] implementation multiply the number of available processors
358358
(with a minimum of 2) by 8.
359359

360360
----
@@ -363,7 +363,7 @@ workerThreads = Math.max(Runtime.getRuntime().availableProcessors(), 2) * 8
363363

364364
For example `8` cores gives us `64` worker threads.
365365

366-
- Undertow: The javadoc:utow.Utow[text=Undertow server] implementation multiply the number of available processors
366+
- Undertow: The javadoc:undertow.UndertowServer[text=Undertow server, artifact=jooby-undertow] implementation multiply the number of available processors
367367
by 8.
368368

369369
----
@@ -372,7 +372,7 @@ workerThreads = Runtime.getRuntime().availableProcessors() * 8
372372

373373
For `8` cores gives us `64` worker threads.
374374

375-
- Jetty: The javadoc:jetty.Jetty[text=Jetty server] implementation uses the default configuration
375+
- Jetty: The javadoc:jetty.JettyServer[text=Jetty server, artifact=jooby-jetty] implementation uses the default configuration
376376
with `200` worker threads.
377377

378378
These are sensible defaults suggested by the server implementation. If you need to increase/decrease

docs/asciidoc/handlers/access-log.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
=== AccessLogHandler
22

3-
The javadoc:AccessLogHandler[] logs incoming requests using the https://en.wikipedia.org/wiki/Common_Log_Format[NCSA format] (a.k.a common log format).
3+
The javadoc:handler.AccessLogHandler[] logs incoming requests using the https://en.wikipedia.org/wiki/Common_Log_Format[NCSA format] (a.k.a common log format).
44

55
.Usage
66
[source, java, role = "primary"]
77
----
88
import io.jooby.Jooby;
9-
import io.jooby.AccessLogHandler;
9+
import io.jooby.handler.AccessLogHandler;
1010
...
1111
{
1212
@@ -21,7 +21,7 @@ import io.jooby.AccessLogHandler;
2121
.Kotlin
2222
[source, kotlin, role = "secondary"]
2323
----
24-
import io.jooby.AccessLogHandler
24+
import io.jooby.handler.AccessLogHandler
2525
...
2626
{
2727
use(AccessLogHandler()) <1>
@@ -50,8 +50,8 @@ Message is represented by:
5050

5151
Extra request or response headers can be appended at the end using the available methods:
5252

53-
- javadoc:AccessLogHandler[requestHeader, java.lang.String...]
54-
- javadoc:AccessLogHandler[responseHeader, java.lang.String...]
53+
- javadoc:handler.AccessLogHandler[requestHeader, java.lang.String...]
54+
- javadoc:handler.AccessLogHandler[responseHeader, java.lang.String...]
5555

5656
[TIP]
5757
====

docs/asciidoc/handlers/cors.adoc

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ request when it requests a resource that has a different origin (domain, protoco
77
its own origin.
88

99
Jooby supports CORS out of the box. By default, **CORS requests will be rejected**.
10-
To enable processing of CORS requests, use the javadoc:CorsHandler[]:
10+
To enable processing of CORS requests, use the javadoc:handler.CorsHandler[]:
1111

1212
.CorsExample
1313
[source, java, role = "primary"]
1414
----
1515
import io.jooby.Jooby;
16-
import io.jooby.CorsHandler;
16+
import io.jooby.handler.CorsHandler;
1717
...
1818
{
1919
@@ -28,7 +28,7 @@ import io.jooby.CorsHandler;
2828
.Kotlin
2929
[source, kotlin, role = "secondary"]
3030
----
31-
import io.jooby.CorsHandler
31+
import io.jooby.handler.CorsHandler
3232
...
3333
{
3434
use(CorsHandler()) <1>
@@ -49,13 +49,14 @@ Default options are:
4949
- allowed headers: `X-Requested-With`, `Content-Type`, `Accept` and `Origin`
5050
- max age: `30m`;
5151
52-
To customize default options use javadoc:Cors[]:
52+
To customize default options use javadoc:handler.Cors[]:
5353

5454
.Cors options
5555
[source, java, role = "primary"]
5656
----
5757
import io.jooby.Jooby;
58-
import io.jooby.CorsHandler;
58+
import io.jooby.handler.Cors;
59+
import io.jooby.handler.CorsHandler;
5960
...
6061
{
6162
Cors cors = new Cors()
@@ -73,7 +74,7 @@ import io.jooby.CorsHandler;
7374
[source, kotlin, role = "secondary"]
7475
----
7576
import io.jooby.Jooby
76-
import io.jooby.CorsHandler
77+
import io.jooby.handler.CorsHandler
7778
import io.jooby.cors
7879
...
7980
{
@@ -110,7 +111,8 @@ cors {
110111
[source, java, role = "primary"]
111112
----
112113
import io.jooby.Jooby;
113-
import io.jooby.CorsHandler;
114+
import io.jooby.handler.Cors;
115+
import io.jooby.handler.CorsHandler;
114116
...
115117
{
116118
Cors cors = Cors.from(getConfig()); <1>
@@ -127,7 +129,7 @@ import io.jooby.CorsHandler;
127129
[source, kotlin, role = "secondary"]
128130
----
129131
import io.jooby.Jooby
130-
import io.jooby.CorsHandler
132+
import io.jooby.handler.CorsHandler
131133
...
132134
{
133135
val cors = Cors.from(config) <1>

docs/asciidoc/handlers/csrf.adoc

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
=== CsrfHandler
22

3-
The javadoc:CsrfHandler[text="Cross Site Request Forgery Handler"] helps to protect from (CSRF)
3+
The javadoc:handler.CsrfHandler[text="Cross Site Request Forgery Handler"] helps to protect from (CSRF)
44
attacks. Cross-site request forgeries are a type of malicious exploit whereby unauthorized commands
55
are performed on behalf of an authenticated user.
66

@@ -20,10 +20,10 @@ field in the form so that the CSRF protection middleware can validate the reques
2020
</form>
2121
----
2222

23-
The `csrf` is a request attribute created by the javadoc:CsrfHandler[] handler and rendered by a
23+
The `csrf` is a request attribute created by the javadoc:handler.CsrfHandler[] handler and rendered by a
2424
template engine. Here `{{csrf}}` we use Handlebars template engine (as example).
2525

26-
The javadoc:CsrfHandler[] handler, will automatically verify that the token in the request input
26+
The javadoc:handler.CsrfHandler[] handler, will automatically verify that the token in the request input
2727
matches the token stored in the session.
2828

2929
The token defaults name is `csrf` and can be provided as:
@@ -34,5 +34,5 @@ The token defaults name is `csrf` and can be provided as:
3434
3535
Configuration methods:
3636

37-
- javadoc:CsrfHandler["setTokenGenerator", java.util.Function]: Set a custom token generator. Defaults uses a random UUID.
38-
- javadoc:CsrfHandler["setRequestFilter", java.util.Predicate]: Set a custom request filter. Defaults is to process `POST`, `PUT`, `PATCH` and `DELETE`.
37+
- javadoc:handler.CsrfHandler["setTokenGenerator", java.util.function.Function]: Set a custom token generator. Defaults uses a random UUID.
38+
- javadoc:handler.CsrfHandler["setRequestFilter", java.util.function.Predicate]: Set a custom request filter. Defaults is to process `POST`, `PUT`, `PATCH` and `DELETE`.

docs/asciidoc/handlers/head.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ Jooby doesn't support `HTTP HEAD` requests by default. To support them you have
55
- Use the built-in `HeadHandler`
66
- Write your own head handler
77
8-
The javadoc:HeadHandler[] supports `HEAD` requests over existing `GET` handlers.
8+
The javadoc:handler.HeadHandler[] supports `HEAD` requests over existing `GET` handlers.
99

1010
.Head Example
1111
[source, java, role = "primary"]
1212
----
1313
import io.jooby.Jooby;
14-
import io.jooby.HeadHandler;
14+
import io.jooby.handler.HeadHandler;
1515
...
1616
{
1717

docs/asciidoc/handlers/ssl.adoc

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
=== SSLHandler
22

3-
The javadoc:SSLHandler[] forces client to use HTTPS by redirecting non-HTTPS calls to the HTTPS version.
3+
The javadoc:handler.SSLHandler[] forces client to use HTTPS by redirecting non-HTTPS calls to the HTTPS version.
44

55
.Force SSL
66
[source, java, role = "primary"]
77
----
88
import io.jooby.Jooby;
9-
import io.jooby.SSLHandler;
9+
import io.jooby.handler.SSLHandler;
1010
...
1111
{
1212
@@ -24,7 +24,7 @@ import io.jooby.SSLHandler;
2424
[source, kotlin, role = "secondary"]
2525
----
2626
import io.jooby.Jooby
27-
import io.jooby.SSHandler
27+
import io.jooby.handler.SSHandler
2828
...
2929
{
3030
serverOptions {
@@ -42,15 +42,15 @@ import io.jooby.SSHandler
4242
<1> Install SSLHandler
4343

4444
The SSL Handler recreates the HTTPs URL version using the `Host` header, if you are behind a proxy
45-
you will need to use the `X-Forwarded-Host` header. To do that set the <<router-trust-proxy, trust proxy>> option.
45+
you will need to use the `X-Forwarded-Host` header. To do that set the <<router-options-trust-proxy, trust proxy>> option.
4646

4747
Optionally, you can specify the host to use:
4848

4949
.Force SSL
5050
[source, java, role = "primary"]
5151
----
5252
import io.jooby.Jooby;
53-
import io.jooby.SSLHandler;
53+
import io.jooby.handler.SSLHandler;
5454
...
5555
{
5656
@@ -68,7 +68,7 @@ import io.jooby.SSLHandler;
6868
[source, kotlin, role = "secondary"]
6969
----
7070
import io.jooby.Jooby
71-
import io.jooby.SSHandler
71+
import io.jooby.handler.SSHandler
7272
...
7373
{
7474
serverOptions {
@@ -88,5 +88,5 @@ For more information about SSL, please check the <<server-https-support, configu
8888
[TIP]
8989
====
9090
If you run behind a reverse proxy that has been configured to send the X-Forwarded-* header,
91-
please consider to add the link:proxy-peer-address.adoc[] to your pipeline.
91+
please consider to add the <<router-options-trust-proxy, trust proxy>> to your pipeline.
9292
====

0 commit comments

Comments
 (0)