-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Closed
Description
If you set the DatastoreOptions' builder's httpTransportFactory it is not used. The "create" method of the factory is never called. This does not allow me to configure a proxy. This is a defect, but is there a workaround to configure a proxy?
` public static Datastore createService() {
HttpTransportFactory httpTransportFactory = new HttpTransportWithProxyFactory();
return DatastoreOptions.builder()
.httpTransportFactory(httpTransportFactory).build().
se
5E13
rvice();
}
public static class HttpTransportWithProxyFactory implements HttpTransportFactory {
public HttpTransport create() {
// PUT BREAKPOINT ON NEXT LINE AND IT IS NEVER CALLED
Proxy proxy = new Proxy(Type.HTTP, new InetSocketAddress("myproxy.com", 8080));
HttpTransport t = new NetHttpTransport.Builder().setProxy(proxy).build();
return t;
}
}`
Metadata
Metadata
Assignees
Labels
No labels