File tree Expand file tree Collapse file tree
modules/openapi-generator/src/main/resources/Java/libraries/native
echo_api/java/native/src/main/java/org/openapitools/client
native-async/src/main/java/org/openapitools/client
native-jakarta/src/main/java/org/openapitools/client
native-useGzipFeature/src/main/java/org/openapitools/client
native/src/main/java/org/openapitools/client Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -40,6 +40,7 @@ import java.util.stream.Collectors;
4040{ {#useUnaryInterceptor} }
4141import java.util.function.UnaryOperator;
4242{ {/useUnaryInterceptor} }
43+
4344import static java.nio.charset.StandardCharsets.UTF_8;
4445
4546/**
@@ -74,7 +75,6 @@ public class ApiClient {
7475 protected Consumer<HttpResponse <InputStream >> responseInterceptor;
7576 protected Consumer<HttpResponse <InputStream >> asyncResponseInterceptor;
7677{ {/useUnaryInterceptor} }
77-
7878 protected Duration readTimeout;
7979 protected Duration connectTimeout;
8080
@@ -345,7 +345,8 @@ public class ApiClient {
345345 * request builder is passed into this function for further modification,
346346 * after which it is sent out.</p >
347347 *
348- *<p >This is useful for altering the requests in a custom manner, such as adding headers. It could also be used for logging and monitoring.</p >
348+ * <p >This is useful for altering the requests in a custom manner, such as
349+ * adding headers. It could also be used for logging and monitoring.</p >
349350 *
350351 * @param interceptor A function invoked before creating each request. A value
351352 * of null resets the interceptor to a no-op.
Original file line number Diff line number Diff line change 3838import java .util .Optional ;
3939import java .util .zip .GZIPInputStream ;
4040import java .util .stream .Collectors ;
41+
4142import static java .nio .charset .StandardCharsets .UTF_8 ;
4243
4344/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566 protected Consumer <HttpRequest .Builder > interceptor ;
6667 protected Consumer <HttpResponse <InputStream >> responseInterceptor ;
6768 protected Consumer <HttpResponse <InputStream >> asyncResponseInterceptor ;
68-
6969 protected Duration readTimeout ;
7070 protected Duration connectTimeout ;
7171
@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334 * request builder is passed into this function for further modification,
335335 * after which it is sent out.</p>
336336 *
337- *<p>This is useful for altering the requests in a custom manner, such as adding headers. It could also be used for logging and monitoring.</p>
337+ * <p>This is useful for altering the requests in a custom manner, such as
338+ * adding headers. It could also be used for logging and monitoring.</p>
338339 *
339340 * @param interceptor A function invoked before creating each request. A value
340341 * of null resets the interceptor to a no-op.
Original file line number Diff line number Diff line change 3838import java .util .Optional ;
3939import java .util .zip .GZIPInputStream ;
4040import java .util .stream .Collectors ;
41+
4142import static java .nio .charset .StandardCharsets .UTF_8 ;
4243
4344/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566 protected Consumer <HttpRequest .Builder > interceptor ;
6667 protected Consumer <HttpResponse <InputStream >> responseInterceptor ;
6768 protected Consumer <HttpResponse <InputStream >> asyncResponseInterceptor ;
68-
6969 protected Duration readTimeout ;
7070 protected Duration connectTimeout ;
7171
@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334 * request builder is passed into this function for further modification,
335335 * after which it is sent out.</p>
336336 *
337- *<p>This is useful for altering the requests in a custom manner, such as adding headers. It could also be used for logging and monitoring.</p>
337+ * <p>This is useful for altering the requests in a custom manner, such as
338+ * adding headers. It could also be used for logging and monitoring.</p>
338339 *
339340 * @param interceptor A function invoked before creating each request. A value
340341 * of null resets the interceptor to a no-op.
Original file line number Diff line number Diff line change 3838import java .util .Optional ;
3939import java .util .zip .GZIPInputStream ;
4040import java .util .stream .Collectors ;
41+
4142import static java .nio .charset .StandardCharsets .UTF_8 ;
4243
4344/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566 protected Consumer <HttpRequest .Builder > interceptor ;
6667 protected Consumer <HttpResponse <InputStream >> responseInterceptor ;
6768 protected Consumer <HttpResponse <InputStream >> asyncResponseInterceptor ;
68-
6969 protected Duration readTimeout ;
7070 protected Duration connectTimeout ;
7171
@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334 * request builder is passed into this function for further modification,
335335 * after which it is sent out.</p>
336336 *
337- *<p>This is useful for altering the requests in a custom manner, such as adding headers. It could also be used for logging and monitoring.</p>
337+ * <p>This is useful for altering the requests in a custom manner, such as
338+ * adding headers. It could also be used for logging and monitoring.</p>
338339 *
339340 * @param interceptor A function invoked before creating each request. A value
340341 * of null resets the interceptor to a no-op.
Original file line number Diff line number Diff line change 3838import java .util .Optional ;
3939import java .util .zip .GZIPInputStream ;
4040import java .util .stream .Collectors ;
41+
4142import static java .nio .charset .StandardCharsets .UTF_8 ;
4243
4344/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566 protected Consumer <HttpRequest .Builder > interceptor ;
6667 protected Consumer <HttpResponse <InputStream >> responseInterceptor ;
6768 protected Consumer <HttpResponse <InputStream >> asyncResponseInterceptor ;
68-
6969 protected Duration readTimeout ;
7070 protected Duration connectTimeout ;
7171
@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334 * request builder is passed into this function for further modification,
335335 * after which it is sent out.</p>
336336 *
337- *<p>This is useful for altering the requests in a custom manner, such as adding headers. It could also be used for logging and monitoring.</p>
337+ * <p>This is useful for altering the requests in a custom manner, such as
338+ * adding headers. It could also be used for logging and monitoring.</p>
338339 *
339340 * @param interceptor A function invoked before creating each request. A value
340341 * of null resets the interceptor to a no-op.
Original file line number Diff line number Diff line change 3838import java .util .Optional ;
3939import java .util .zip .GZIPInputStream ;
4040import java .util .stream .Collectors ;
41+
4142import static java .nio .charset .StandardCharsets .UTF_8 ;
4243
4344/**
@@ -65,7 +66,6 @@ public class ApiClient {
6566 protected Consumer <HttpRequest .Builder > interceptor ;
6667 protected Consumer <HttpResponse <InputStream >> responseInterceptor ;
6768 protected Consumer <HttpResponse <InputStream >> asyncResponseInterceptor ;
68-
6969 protected Duration readTimeout ;
7070 protected Duration connectTimeout ;
7171
@@ -334,7 +334,8 @@ public ApiClient setScheme(String scheme){
334334 * request builder is passed into this function for further modification,
335335 * after which it is sent out.</p>
336336 *
337- *<p>This is useful for altering the requests in a custom manner, such as adding headers. It could also be used for logging and monitoring.</p>
337+ * <p>This is useful for altering the requests in a custom manner, such as
338+ * adding headers. It could also be used for logging and monitoring.</p>
338339 *
339340 * @param interceptor A function invoked before creating each request. A value
340341 * of null resets the interceptor to a no-op.
You can’t perform that action at this time.
0 commit comments