Skip to content

Commit

Permalink
changes to support proxy configs
Browse files Browse the repository at this point in the history
  • Loading branch information
diana-derose committed Dec 18, 2017
1 parent 88bfef3 commit aa37ab5
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,10 +45,16 @@ public class DiscoveryAPIClient {

private ProxyConfig proxyConfig;

//use this constructor to apply proxy configs
public DiscoveryAPIClient(ProxyConfig proxyConfig) {
this.proxyConfig = proxyConfig;
}

//for non proxy call, use this constructor
public DiscoveryAPIClient() {
this.proxyConfig = null;
}

/**
* Calls the Discovery Document API based on the the Environment provided and
* returns an object with url’s for all the endpoints
Expand Down

0 comments on commit aa37ab5

Please sign in to comment.