diff --git a/src/main/java/com/box/sdk/BoxCCGAPIConnection.java b/src/main/java/com/box/sdk/BoxCCGAPIConnection.java index 8c0eca9b1..1ab9d3602 100644 --- a/src/main/java/com/box/sdk/BoxCCGAPIConnection.java +++ b/src/main/java/com/box/sdk/BoxCCGAPIConnection.java @@ -5,6 +5,7 @@ import com.eclipsesource.json.Json; import com.eclipsesource.json.JsonObject; import java.net.URL; +import okhttp3.OkHttpClient; /** * Creates and manages Client Credentials Grant API connection. @@ -41,6 +42,14 @@ private BoxCCGAPIConnection(BoxConfig boxConfig) { super(boxConfig); } + /** + * {@inheritDoc} + */ + @Override + protected OkHttpClient.Builder modifyHttpClientBuilder(OkHttpClient.Builder httpClientBuilder) { + return super.modifyHttpClientBuilder(httpClientBuilder); + } + /** * Creates connection that authenticates as a Service Account * diff --git a/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java b/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java index 485638067..199c2292e 100644 --- a/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java +++ b/src/main/java/com/box/sdk/BoxDeveloperEditionAPIConnection.java @@ -8,6 +8,7 @@ import java.text.SimpleDateFormat; import java.util.Date; import java.util.List; +import okhttp3.OkHttpClient; import org.jose4j.jws.AlgorithmIdentifiers; import org.jose4j.jws.JsonWebSignature; import org.jose4j.jwt.JwtClaims; @@ -108,6 +109,14 @@ public BoxDeveloperEditionAPIConnection(String entityId, DeveloperEditionEntityT boxConfig.getJWTEncryptionPreferences(), accessTokenCache); } + /** + * {@inheritDoc} + */ + @Override + protected OkHttpClient.Builder modifyHttpClientBuilder(OkHttpClient.Builder httpClientBuilder) { + return super.modifyHttpClientBuilder(httpClientBuilder); + } + /** * Creates a new Box Developer Edition connection with enterprise token leveraging an access token cache. * diff --git a/src/main/java/com/box/sdk/BoxTransactionalAPIConnection.java b/src/main/java/com/box/sdk/BoxTransactionalAPIConnection.java index 6f06be179..929c7c2fe 100644 --- a/src/main/java/com/box/sdk/BoxTransactionalAPIConnection.java +++ b/src/main/java/com/box/sdk/BoxTransactionalAPIConnection.java @@ -6,6 +6,7 @@ import java.net.MalformedURLException; import java.net.URL; import java.net.URLEncoder; +import okhttp3.OkHttpClient; /** * Represents an authenticated transactional connection to the Box API. @@ -27,6 +28,14 @@ public BoxTransactionalAPIConnection(String accessToken) { super.setAutoRefresh(false); } + /** + * {@inheritDoc} + */ + @Override + protected OkHttpClient.Builder modifyHttpClientBuilder(OkHttpClient.Builder httpClientBuilder) { + return super.modifyHttpClientBuilder(httpClientBuilder); + } + /** * Request a scoped transactional token. * diff --git a/src/main/java/com/box/sdk/SharedLinkAPIConnection.java b/src/main/java/com/box/sdk/SharedLinkAPIConnection.java index fbdd48f78..47ddfc151 100644 --- a/src/main/java/com/box/sdk/SharedLinkAPIConnection.java +++ b/src/main/java/com/box/sdk/SharedLinkAPIConnection.java @@ -1,5 +1,7 @@ package com.box.sdk; +import okhttp3.OkHttpClient; + /** * This API connection uses a shared link (along with an optional password) to authenticate with the Box API. It wraps a * preexisting BoxAPIConnection in order to provide additional access to items that are accessible with a shared link. @@ -24,6 +26,14 @@ public SharedLinkAPIConnection(BoxAPIConnection connection, String sharedLink, S this.sharedLinkPassword = sharedLinkPassword; } + /** + * {@inheritDoc} + */ + @Override + protected OkHttpClient.Builder modifyHttpClientBuilder(OkHttpClient.Builder httpClientBuilder) { + return super.modifyHttpClientBuilder(httpClientBuilder); + } + @Override public long getExpires() { return this.wrappedConnection.getExpires();