@@ -82,7 +82,7 @@ as the following example shows:
82
82
.build("Westin", "123")
83
83
----
84
84
85
- You shorter it further still with a full URI template, as the following example shows:
85
+ You can shorten it further still with a full URI template, as the following example shows:
86
86
87
87
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
88
88
.Java
@@ -94,7 +94,7 @@ You shorter it further still with a full URI template, as the following example
94
94
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
95
95
.Kotlin
96
96
----
97
- val uri = UriComponentsBuilder
97
+ val uri = UriComponentsBuilder
98
98
.fromUriString("https://example.com/hotels/{hotel}?q={q}")
99
99
.build("Westin", "123")
100
100
----
@@ -250,7 +250,7 @@ as the following example shows:
250
250
----
251
251
URI uri = UriComponentsBuilder.fromPath("/hotel list/{city}")
252
252
.queryParam("q", "{q}")
253
- .build("New York", "foo+bar")
253
+ .build("New York", "foo+bar");
254
254
----
255
255
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
256
256
.Kotlin
@@ -265,13 +265,13 @@ You can shorten it further still with a full URI template, as the following exam
265
265
[source,java,indent=0,subs="verbatim,quotes",role="primary"]
266
266
.Java
267
267
----
268
- URI uri = UriComponentsBuilder.fromPath ("/hotel list/{city}?q={q}")
269
- .build("New York", "foo+bar")
268
+ URI uri = UriComponentsBuilder.fromUriString ("/hotel list/{city}?q={q}")
269
+ .build("New York", "foo+bar");
270
270
----
271
271
[source,kotlin,indent=0,subs="verbatim,quotes",role="secondary"]
272
272
.Kotlin
273
273
----
274
- val uri = UriComponentsBuilder.fromPath ("/hotel list/{city}?q={q}")
274
+ val uri = UriComponentsBuilder.fromUriString ("/hotel list/{city}?q={q}")
275
275
.build("New York", "foo+bar")
276
276
----
277
277
0 commit comments