Package org.conscrypt
Class HostProperties
- java.lang.Object
-
- org.conscrypt.HostProperties
-
@Internal class HostProperties extends java.lang.Object
Utilities for interacting with properties of the host being run on.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static class
HostProperties.Architecture
Enumeration of architectures.(package private) static class
HostProperties.OperatingSystem
Enumeration of operating systems.
-
Field Summary
Fields Modifier and Type Field Description (package private) static HostProperties.Architecture
ARCH
private static java.util.logging.Logger
logger
(package private) static HostProperties.OperatingSystem
OS
private static java.lang.String
TEMP_DIR_PROPERTY_NAME
-
Constructor Summary
Constructors Modifier Constructor Description private
HostProperties()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static HostProperties.Architecture
getArchitecture(java.lang.String value)
Normalizes the os.arch value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin).private static HostProperties.OperatingSystem
getOperatingSystem(java.lang.String value)
Normalizes the os.name value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin).(package private) static java.io.File
getTempDir()
(package private) static boolean
isOSX()
(package private) static boolean
isWindows()
private static java.lang.String
normalize(java.lang.String value)
private static java.io.File
toDirectory(java.lang.String path)
-
-
-
Field Detail
-
logger
private static final java.util.logging.Logger logger
-
TEMP_DIR_PROPERTY_NAME
private static final java.lang.String TEMP_DIR_PROPERTY_NAME
- See Also:
- Constant Field Values
-
OS
static final HostProperties.OperatingSystem OS
-
ARCH
static final HostProperties.Architecture ARCH
-
-
Method Detail
-
isWindows
static boolean isWindows()
-
isOSX
static boolean isOSX()
-
getTempDir
static java.io.File getTempDir()
-
toDirectory
private static java.io.File toDirectory(java.lang.String path)
-
normalize
private static java.lang.String normalize(java.lang.String value)
-
getOperatingSystem
private static HostProperties.OperatingSystem getOperatingSystem(java.lang.String value)
Normalizes the os.name value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin). This plugin is used to generate platform-specific classifiers for artifacts.
-
getArchitecture
private static HostProperties.Architecture getArchitecture(java.lang.String value)
Normalizes the os.arch value into the value used by the Maven os plugin (https://github.com/trustin/os-maven-plugin). This plugin is used to generate platform-specific classifiers for artifacts.
-
-