Package com.inmobi.media.core.network
Class NetworkUtilsKt
-
- All Implemented Interfaces:
public final class NetworkUtilsKt
-
-
Method Summary
Modifier and Type Method Description final static StringgetUrlWithQuery(String url, Map<String, String> queryParams)final static StringgetStringResponse(ByteArray $self)final static StringgetStringResponse(NetworkResponse $self)final static StringconvertToString(ByteArray $self)final static BooleanisBadRequest4xxOr5xxError(NetworkResponse $self)final static BooleanisNonRetryAble(NetworkResponse $self)final static BufferedSourcegetSource(NetworkResponse $self)final static InputStreamgetInputStream(NetworkResponse $self)final static LongconvertSecondsToMilliseconds(Long $self)-
-
Method Detail
-
getUrlWithQuery
final static String getUrlWithQuery(String url, Map<String, String> queryParams)
- Returns:
generate final url by appending query params to the given @url
-
getStringResponse
final static String getStringResponse(ByteArray $self)
- Returns:
generate string response from byteArray
-
getStringResponse
final static String getStringResponse(NetworkResponse $self)
-
convertToString
final static String convertToString(ByteArray $self)
-
isBadRequest4xxOr5xxError
final static Boolean isBadRequest4xxOr5xxError(NetworkResponse $self)
-
isNonRetryAble
final static Boolean isNonRetryAble(NetworkResponse $self)
-
getSource
final static BufferedSource getSource(NetworkResponse $self)
-
getInputStream
final static InputStream getInputStream(NetworkResponse $self)
-
convertSecondsToMilliseconds
final static Long convertSecondsToMilliseconds(Long $self)
-
-
-
-