[BUG] Https protocol schema is not handled correctly in java 11 native code #3729 (#3730)

* added getter for schema
This commit is contained in:
thecrazzymouse
2019-08-23 13:52:48 +02:00
committed by Esteban Gehring
parent 96dd31a462
commit 73eae09738
2 changed files with 22 additions and 0 deletions

View File

@@ -263,6 +263,17 @@ public class ApiClient {
return scheme + "://" + host + (port == -1 ? "" : ":" + port) + basePath;
}
/**
* Set a custom scheme for the target service, for example 'https'.
*
* @param scheme The scheme of the target service
* @return This object.
*/
public ApiClient setScheme(String scheme){
this.scheme = scheme;
return this;
}
/**
* Set a custom request interceptor.
*