summaryrefslogtreecommitdiffstats
path: root/vespa-feed-client-api
diff options
context:
space:
mode:
authorBjørn Christian Seime <bjorncs@verizonmedia.com>2022-03-28 14:37:15 +0200
committerBjørn Christian Seime <bjorncs@verizonmedia.com>2022-03-28 14:37:15 +0200
commit216f45d5debed006c9e69d6e979cc21c7392fbd5 (patch)
treed01b603047b1671b3abe34758e6cb27a4686221c /vespa-feed-client-api
parentced5ccdf29cc6785223803f1bcd24b9fd436a358 (diff)
Add proxy option to vespa-feed-client
Diffstat (limited to 'vespa-feed-client-api')
-rw-r--r--vespa-feed-client-api/abi-spec.json1
-rw-r--r--vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClientBuilder.java3
2 files changed, 4 insertions, 0 deletions
diff --git a/vespa-feed-client-api/abi-spec.json b/vespa-feed-client-api/abi-spec.json
index 16e532a2c9a..5bd0acf82d3 100644
--- a/vespa-feed-client-api/abi-spec.json
+++ b/vespa-feed-client-api/abi-spec.json
@@ -140,6 +140,7 @@
"public abstract ai.vespa.feed.client.FeedClientBuilder setCaCertificatesFile(java.nio.file.Path)",
"public abstract ai.vespa.feed.client.FeedClientBuilder setCaCertificates(java.util.Collection)",
"public abstract ai.vespa.feed.client.FeedClientBuilder setEndpointUris(java.util.List)",
+ "public abstract ai.vespa.feed.client.FeedClientBuilder setProxy(java.net.URI)",
"public abstract ai.vespa.feed.client.FeedClient build()"
],
"fields": [
diff --git a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClientBuilder.java b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClientBuilder.java
index 95c9b2c95fe..7ec5fbb02b7 100644
--- a/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClientBuilder.java
+++ b/vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClientBuilder.java
@@ -109,6 +109,9 @@ public interface FeedClientBuilder {
/** Overrides endpoint URIs for this client */
FeedClientBuilder setEndpointUris(List<URI> endpoints);
+ /** Specify HTTP(S) proxy for all endpoints */
+ FeedClientBuilder setProxy(URI uri);
+
/** Constructs instance of {@link FeedClient} from builder configuration */
FeedClient build();