Skip to content

Commit

Permalink
Dns resolver type method on webclient builder (#4838)
Browse files Browse the repository at this point in the history
DNS resolver type method added on WebClient.Builder

Signed-off-by: David Kral <david.k.kral@oracle.com>
  • Loading branch information
Verdent committed Sep 6, 2022
1 parent 2383b36 commit 16122e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 0 additions & 5 deletions dependencies/pom.xml
Expand Up @@ -382,11 +382,6 @@
<artifactId>netty-buffer</artifactId>
<version>${version.lib.netty}</version>
</dependency>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-resolver-dns</artifactId>
<version>${version.lib.netty}</version>
</dependency>
<dependency>
<groupId>org.eclipse</groupId>
<artifactId>yasson</artifactId>
Expand Down
Expand Up @@ -403,6 +403,18 @@ public Builder validateHeaders(boolean validate) {
return this;
}

/**
* Set which type of DNS resolver should be used.
*
* @param dnsResolverType type of the DNS resolver to be used
* @return updated builder instance
*/
public Builder dnsResolverType(DnsResolverType dnsResolverType) {
configuration.dnsResolverType(dnsResolverType);
return this;
}


WebClientConfiguration configuration() {
configuration.clientServices(services());
return configuration.build();
Expand Down

0 comments on commit 16122e8

Please sign in to comment.