package com.mapbox.mapboxsdk.http; /** * Utility class for setting HttpRequest configurations */ public class HttpRequestUtil { /** * Set the log state of HttpRequest. Default value is true. *

* This configuration will outlast the lifecycle of the Map. *

* * @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. *

* Requires {@link #setLogEnabled(boolean)} to be activated. *

*

* This configuration will outlast the lifecycle of the Map. *

* * @param enabled True will print urls, false will disable */ public static void setPrintRequestUrlOnFaillure(boolean enabled) { HTTPRequest.enablePrintRequestUrlOnFailure(enabled); } }