public class VersionInfoUtils
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
private static org.apache.commons.logging.Log |
log
Shared logger for any issues while loading version information
|
private static java.lang.String |
platform
SDK platform info
|
private static java.lang.String |
userAgent
User Agent info
|
private static java.lang.String |
version
SDK version info
|
(package private) static java.lang.String |
VERSION_INFO_FILE
The AWS SDK version info file with SDK versioning info
|
Constructor and Description |
---|
VersionInfoUtils() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getPlatform()
Returns the current platform for the AWS SDK in which this class is
running.
|
static java.lang.String |
getUserAgent() |
static java.lang.String |
getVersion()
Returns the current version for the AWS SDK in which this class is
running.
|
private static void |
initializeUserAgent()
Initializes the user agent string by loading a template from
InternalConfig and filling in the detected version/platform
info. |
private static void |
initializeVersion()
Loads the versionInfo.properties file from the AWS Java SDK and
stores the information so that the file doesn't have to be read the
next time the data is needed.
|
private static java.lang.String |
replaceSpaces(java.lang.String input)
Replace any spaces in the input with underscores.
|
(package private) static java.lang.String |
userAgent() |
static final java.lang.String VERSION_INFO_FILE
private static volatile java.lang.String version
private static volatile java.lang.String platform
private static volatile java.lang.String userAgent
private static final org.apache.commons.logging.Log log
public static java.lang.String getVersion()
public static java.lang.String getPlatform()
public static java.lang.String getUserAgent()
private static void initializeVersion()
private static void initializeUserAgent()
InternalConfig
and filling in the detected version/platform
info.static java.lang.String userAgent()
private static java.lang.String replaceSpaces(java.lang.String input)
input
- the input