You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Expose client configuration through api factory (#158)
* Exposing client configuration on the api gatway factory
Signed-off-by: Fred <[email protected]>
* Ensure we always have a client configuration
Signed-off-by: Fred <[email protected]>
* Remove previously added formatting
Signed-off-by: Fred <[email protected]>
* Small formatting issue
Signed-off-by: Fred <[email protected]>
Copy file name to clipboardExpand all lines: aws-android-sdk-apigateway-core/src/main/java/com/amazonaws/mobileconnectors/apigateway/ApiClientFactory.java
+19-4Lines changed: 19 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -15,6 +15,7 @@
15
15
16
16
packagecom.amazonaws.mobileconnectors.apigateway;
17
17
18
+
importcom.amazonaws.ClientConfiguration;
18
19
importcom.amazonaws.auth.AWS4Signer;
19
20
importcom.amazonaws.auth.AWSCredentialsProvider;
20
21
importcom.amazonaws.auth.Signer;
@@ -38,6 +39,7 @@ public class ApiClientFactory {
38
39
privateStringapiKey;
39
40
privateStringregionOverride;
40
41
privateAWSCredentialsProviderprovider;
42
+
privateClientConfigurationclientConfiguration;
41
43
42
44
/**
43
45
* Sets the endpoint of the APIs.
@@ -73,6 +75,17 @@ public ApiClientFactory region(String region) {
73
75
returnthis;
74
76
}
75
77
78
+
/**
79
+
* Specify the client configuration to use with this factory
Copy file name to clipboardExpand all lines: aws-android-sdk-apigateway-core/src/main/java/com/amazonaws/mobileconnectors/apigateway/ApiClientHandler.java
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -67,15 +67,15 @@ class ApiClientHandler implements InvocationHandler {
0 commit comments