File tree 2 files changed +22
-0
lines changed
modules/openapi-generator/src/main/resources/Java/libraries/native
samples/client/petstore/java/native/src/main/java/org/openapitools/client
2 files changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -252,6 +252,17 @@ public class ApiClient {
252
252
return scheme + " ://" + host + (port == -1 ? " " : " :" + port) + basePath;
253
253
}
254
254
255
+ /**
256
+ * Set a custom scheme for the target service, for example 'https'.
257
+ *
258
+ * @param scheme The scheme of the target service
259
+ * @return This object.
260
+ */
261
+ public ApiClient setScheme(String scheme){
262
+ this.scheme = scheme;
263
+ return this;
264
+ }
265
+
255
266
/**
256
267
* Set a custom request interceptor.
257
268
*
Original file line number Diff line number Diff line change @@ -263,6 +263,17 @@ public String getBaseUri() {
263
263
return scheme + "://" + host + (port == -1 ? "" : ":" + port ) + basePath ;
264
264
}
265
265
266
+ /**
267
+ * Set a custom scheme for the target service, for example 'https'.
268
+ *
269
+ * @param scheme The scheme of the target service
270
+ * @return This object.
271
+ */
272
+ public ApiClient setScheme (String scheme ){
273
+ this .scheme = scheme ;
274
+ return this ;
275
+ }
276
+
266
277
/**
267
278
* Set a custom request interceptor.
268
279
*
You can’t perform that action at this time.
0 commit comments