是否存在用于大查询的Java客户端的代理配置?

问题描述 投票:1回答:1

当我在Authenticating Google API with a service account with Java API中尝试代码时,我遇到了失败,需要通过代理。我发现有same question for Python。 Java客户端有什么解决方案吗?

java google-bigquery
1个回答
0
投票

好的,我们支持HTTP代理。

HTTP传输类有两种选择:NetHttpTransportApacheHttpTransport(基于4.0)

本文档展示了如何使用NetHttpTransporthttps://developers.google.com/bigquery/articles/gettingstartedwithjava

然后,您可以在此处设置系统属性以配置代理:http://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html#Proxies

© www.soinside.com 2019 - 2024. All rights reserved.