Skip to content

Commit a0ef442

Browse files
committed
Added example for simplest join
1 parent 92b3c26 commit a0ef442

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

‎documentation/src/main/asciidoc/configuration/mapping.asciidoc‎

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ The Join rule is a composite rule made up of several other Condition and Operati
1111
.addRule(Join.path("/external-url").to("/internal-resource.html"))
1212
----
1313

14+
This will result in the following mapping:
15+
16+
[source]
17+
----
18+
URL: Resource:
19+
"/external-url" --> "/internal-resource.html
20+
----
21+
1422
=== Adding parameters
1523

1624
Joined URLs may also contain parameters, which represent fragments of the URL "path", and query-parameters of the internal resource. This means that the following `Join`:
@@ -24,7 +32,7 @@ Will result in the following mapping (example):
2432

2533
[source]
2634
----
27-
URL: Resource:
35+
URL: Resource:
2836
"/external-url-value1" --> "/internal-resource.html?param=value1
2937
"/external-url-value2" --> "/internal-resource.html?param=value2
3038
----

0 commit comments

Comments
 (0)