diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2022-03-28 14:37:15 +0200 |
---|---|---|
committer | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2022-03-28 14:37:15 +0200 |
commit | 216f45d5debed006c9e69d6e979cc21c7392fbd5 (patch) | |
tree | d01b603047b1671b3abe34758e6cb27a4686221c /vespa-feed-client-api | |
parent | ced5ccdf29cc6785223803f1bcd24b9fd436a358 (diff) |
Add proxy option to vespa-feed-client
Diffstat (limited to 'vespa-feed-client-api')
-rw-r--r-- | vespa-feed-client-api/abi-spec.json | 1 | ||||
-rw-r--r-- | vespa-feed-client-api/src/main/java/ai/vespa/feed/client/FeedClientBuilder.java | 3 |
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(); |