Skip to content

Commit 00da70e

Browse files
committed
Fix some typos in Kotlin WebClient example code
Closes gh-29542
1 parent 72b44ce commit 00da70e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

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

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

@@ -280,8 +280,8 @@ To configure a read or write timeout:
280280
281281
val httpClient = HttpClient.create()
282282
.doOnConnected { conn -> conn
283-
.addHandlerLast(new ReadTimeoutHandler(10))
284-
.addHandlerLast(new WriteTimeoutHandler(10))
283+
.addHandlerLast(ReadTimeoutHandler(10))
284+
.addHandlerLast(WriteTimeoutHandler(10))
285285
}
286286
287287
// Create WebClient...
@@ -357,7 +357,7 @@ The following example shows how to customize Jetty `HttpClient` settings:
357357
httpClient.cookieStore = ...
358358
359359
val webClient = WebClient.builder()
360-
.clientConnector(new JettyClientHttpConnector(httpClient))
360+
.clientConnector(JettyClientHttpConnector(httpClient))
361361
.build();
362362
----
363363

@@ -752,8 +752,8 @@ multipart request. The following example shows how to create a `MultiValueMap<St
752752
----
753753
val builder = MultipartBodyBuilder().apply {
754754
part("fieldPart", "fieldValue")
755-
part("filePart1", new FileSystemResource("...logo.png"))
756-
part("jsonPart", new Person("Jason"))
755+
part("filePart1", FileSystemResource("...logo.png"))
756+
part("jsonPart", Person("Jason"))
757757
part("myPart", part) // Part from a server request
758758
}
759759

0 commit comments

Comments
 (0)