Skip to content

Commit b695687

Browse files
andregassersdeleuze
authored andcommitted
Fix some typos in Kotlin WebClient example code
Closes gh-29538
1 parent 2ba7a55 commit b695687

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

framework-docs/src/docs/asciidoc/web/webflux-webclient.adoc

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ To configure a connection timeout:
253253
.option(ChannelOption.CONNECT_TIMEOUT_MILLIS, 10000);
254254
255255
val webClient = WebClient.builder()
256-
.clientConnector(new ReactorClientHttpConnector(httpClient))
256+
.clientConnector(ReactorClientHttpConnector(httpClient))
257257
.build();
258258
----
259259

@@ -281,8 +281,8 @@ To configure a read or write timeout:
281281
282282
val httpClient = HttpClient.create()
283283
.doOnConnected { conn -> conn
284-
.addHandlerLast(new ReadTimeoutHandler(10))
285-
.addHandlerLast(new WriteTimeoutHandler(10))
284+
.addHandlerLast(ReadTimeoutHandler(10))
285+
.addHandlerLast(WriteTimeoutHandler(10))
286286
}
287287
288288
// Create WebClient...
@@ -392,7 +392,7 @@ The following example shows how to customize Jetty `HttpClient` settings:
392392
httpClient.cookieStore = ...
393393
394394
val webClient = WebClient.builder()
395-
.clientConnector(new JettyClientHttpConnector(httpClient))
395+
.clientConnector(JettyClientHttpConnector(httpClient))
396396
.build();
397397
----
398398

@@ -788,8 +788,8 @@ multipart request. The following example shows how to create a `MultiValueMap<St
788788
----
789789
val builder = MultipartBodyBuilder().apply {
790790
part("fieldPart", "fieldValue")
791-
part("filePart1", new FileSystemResource("...logo.png"))
792-
part("jsonPart", new Person("Jason"))
791+
part("filePart1", FileSystemResource("...logo.png"))
792+
part("jsonPart", Person("Jason"))
793793
part("myPart", part) // Part from a server request
794794
}
795795

0 commit comments

Comments
 (0)