Skip to content

Commit 6c30a9e

Browse files
feat: add comment
1 parent 9e81388 commit 6c30a9e

File tree

1 file changed

+22
-1
lines changed

1 file changed

+22
-1
lines changed

src/main/java/com/influxdb/v3/client/config/ClientConfig.java

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -257,12 +257,21 @@ public Map<String, String> getHeaders() {
257257
return headers;
258258
}
259259

260-
260+
/**
261+
* Gets SslContext object from grpc
262+
*
263+
* @return the SslContext object
264+
*/
261265
@Nullable
262266
public SslContext getGrpcSslContext() {
263267
return grpcSslContext;
264268
}
265269

270+
/**
271+
* Gets SSLContext object
272+
*
273+
* @return the SSLContext object
274+
*/
266275
@Nullable
267276
public SSLContext getSslContext() {
268277
return sslContext;
@@ -574,13 +583,25 @@ public Builder headers(@Nullable final Map<String, String> headers) {
574583
return this;
575584
}
576585

586+
/**
587+
* Sets SslContext for grpc client. Default is 'null'.
588+
*
589+
* @param grpcSslContext The SSLContext
590+
* @return this
591+
*/
577592
@Nonnull
578593
public Builder grpcSslContext(@Nullable final SslContext grpcSslContext) {
579594

580595
this.grpcSslContext = grpcSslContext;
581596
return this;
582597
}
583598

599+
/**
600+
* Sets SSLContext for rest client. Default is 'null'.
601+
*
602+
* @param sslContext The SSLContext
603+
* @return this
604+
*/
584605
@Nonnull
585606
public Builder sslContext(@Nullable final SSLContext sslContext) {
586607

0 commit comments

Comments
 (0)