diff options
Diffstat (limited to 'platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequestUtil.java')
-rw-r--r-- | platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequestUtil.java | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequestUtil.java b/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequestUtil.java deleted file mode 100644 index 872032867a..0000000000 --- a/platform/android/MapboxGLAndroidSDK/src/main/java/com/mapbox/mapboxsdk/http/HttpRequestUtil.java +++ /dev/null @@ -1,46 +0,0 @@ -package com.mapbox.mapboxsdk.http; - -import okhttp3.OkHttpClient; - -/** - * Utility class for setting HttpRequest configurations - */ -public class HttpRequestUtil { - - /** - * Set the log state of HttpRequest. Default value is true. - * <p> - * This configuration will outlast the lifecycle of the Map. - * </p> - * - * @param enabled True will enable logging, false will disable - */ - public static void setLogEnabled(boolean enabled) { - HTTPRequest.enableLog(enabled); - } - - /** - * Enable printing of the request url when an error occurred. Default value is false. - * <p> - * Requires {@link #setLogEnabled(boolean)} to be activated. - * </p> - * <p> - * This configuration will outlast the lifecycle of the Map. - * </p> - * - * @param enabled True will print urls, false will disable - */ - public static void setPrintRequestUrlOnFailure(boolean enabled) { - HTTPRequest.enablePrintRequestUrlOnFailure(enabled); - } - - /** - * Set the OkHttpClient used for requesting map resources. - * - * @param client the OkHttpClient - */ - public static void setOkHttpClient(OkHttpClient client) { - HTTPRequest.setOKHttpClient(client); - } - -}
\ No newline at end of file |