public final class ApiCallHelper
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getHeaderUserAgent(java.lang.String clientAppName)
Computes a full user agent header of the form:
MapboxJava/1.2.0 Mac OS X/10.11.5 (x86_64) . |
static java.lang.String |
getHeaderUserAgent(java.lang.String clientAppName,
java.lang.String osName,
java.lang.String osVersion,
java.lang.String osArch)
Computes a full user agent header of the form:
MapboxJava/1.2.0 Mac OS X/10.11.5 (x86_64) . |
public static java.lang.String getHeaderUserAgent(@Nullable java.lang.String clientAppName)
MapboxJava/1.2.0 Mac OS X/10.11.5 (x86_64)
.clientAppName
- Application NameString
representing the header user agentpublic static java.lang.String getHeaderUserAgent(@Nullable java.lang.String clientAppName, @NonNull java.lang.String osName, @NonNull java.lang.String osVersion, @NonNull java.lang.String osArch)
MapboxJava/1.2.0 Mac OS X/10.11.5 (x86_64)
.clientAppName
- Application NameosName
- OS nameosVersion
- OS versionosArch
- OS AchitectureString
representing the header user agent