All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.apache.commons.lang3.SystemProperties Maven / Gradle / Ivy

Go to download

Apache Commons Lang, a package of Java utility classes for the classes that are in java.lang's hierarchy, or are considered to be so standard as to justify existence in java.lang.

The newest version!
/*
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.apache.commons.lang3;

import java.util.function.BooleanSupplier;
import java.util.function.IntSupplier;
import java.util.function.LongSupplier;
import java.util.function.Supplier;

import org.apache.commons.lang3.function.Suppliers;

/**
 * Accesses current system property names and values.
 *
 * @see System Properties
 * @since 3.13.0
 */
public final class SystemProperties {

    /**
     * The System property name {@value}.
     *
     * @see apple.awt.enableTemplateImages
     * @since 3.15.0
     */
    public static final String APPLE_AWT_ENABLE_TEMPLATE_IMAGES = "apple.awt.enableTemplateImages";

    /**
     * The System property name {@value}.
     * 

* Not in Java 17 and 21 (Javadoc). *

* * @see System Properties */ public static final String AWT_TOOLKIT = "awt.toolkit"; /** * The System property name {@value}. * * @see com.sun.jndi.ldap.object.trustSerialData * @since 3.15.0 */ public static final String COM_SUN_JNDI_LDAP_OBJECT_TRUST_SERIAL_DATA = "com.sun.jndi.ldap.object.trustSerialData"; /** * The System property name {@value}. * * @see com.sun.net.httpserver.HttpServerProvider * @since 3.15.0 */ public static final String COM_SUN_NET_HTTP_SERVER_HTTP_SERVER_PROVIDER = "com.sun.net.httpserver.HttpServerProvider"; /** * The System property name {@value}. */ public static final String FILE_ENCODING = "file.encoding"; /** * The System property name {@value}. */ public static final String FILE_SEPARATOR = "file.separator"; /** * The System property name {@value}. * * @see ftp.nonProxyHosts * @since 3.15.0 */ public static final String FTP_NON_PROXY_HOST = "ftp.nonProxyHosts"; /** * The System property name {@value}. * * @see ftp.proxyHost * @since 3.15.0 */ public static final String FTP_PROXY_HOST = "ftp.proxyHost"; /** * The System property name {@value}. * * @see ftp.proxyPort * @since 3.15.0 */ public static final String FTP_PROXY_PORT = "ftp.proxyPort"; /** * The System property name {@value}. * * @see http.agent * @since 3.15.0 */ public static final String HTTP_AGENT = "http.agent"; /** * The System property name {@value}. * * @see auth.digest.cnonceRepeat * @since 3.15.0 */ public static final String HTTP_AUTH_DIGEST_CNONCE_REPEAT = "http.auth.digest.cnonceRepeat"; /** * The System property name {@value}. * * @see http.auth.digest.reEnabledAlgorithms * @since 3.15.0 */ public static final String HTTP_AUTH_DIGEST_RE_ENABLED_ALGORITHMS = "http.auth.digest.reEnabledAlgorithms"; /** * The System property name {@value}. * * @see http.auth.digest.validateProxy * @since 3.15.0 */ public static final String HTTP_AUTH_DIGEST_VALIDATE_PROXY = "http.auth.digest.validateProxy"; /** * The System property name {@value}. * * @see http.auth.digest.validateServer * @since 3.15.0 */ public static final String HTTP_AUTH_DIGEST_VALIDATE_SERVER = "http.auth.digest.validateServer"; /** * The System property name {@value}. * * @see http.auth.ntlm.domain * @since 3.15.0 */ public static final String HTTP_AUTH_NTLM_DOMAIN = "http.auth.ntlm.domain"; /** * The System property name {@value}. * * @see http.keepAlive * @since 3.15.0 */ public static final String HTTP_KEEP_ALIVE = "http.keepAlive"; /** * The System property name {@value}. * * @see http.keepAlive.time.proxy * @since 3.15.0 */ public static final String HTTP_KEEP_ALIVE_TIME_PROXY = "http.keepAlive.time.proxy"; /** * The System property name {@value}. * * @see http.keepAlive.time.server * @since 3.15.0 */ public static final String HTTP_KEEP_ALIVE_TIME_SERVER = "http.keepAlive.time.server"; /** * The System property name {@value}. * * @see http.maxConnections * @since 3.15.0 */ public static final String HTTP_MAX_CONNECTIONS = "http.maxConnections"; /** * The System property name {@value}. * * @see http.maxRedirects * @since 3.15.0 */ public static final String HTTP_MAX_REDIRECTS = "http.maxRedirects"; /** * The System property name {@value}. * * @see http.nonProxyHosts * @since 3.15.0 */ public static final String HTTP_NON_PROXY_HOSTS = "http.nonProxyHosts"; /** * The System property name {@value}. * * @see http.proxyHost * @since 3.15.0 */ public static final String HTTP_PROXY_HOST = "http.proxyHost"; /** * The System property name {@value}. * * @see http.proxyPort * @since 3.15.0 */ public static final String HTTP_PROXY_PORT = "http.proxyPort"; /** * The System property name {@value}. * * @see https.proxyHost * @since 3.15.0 */ public static final String HTTPS_PROXY_HOST = "https.proxyHost"; /** * The System property name {@value}. * * @see https.proxyPort * @since 3.15.0 */ public static final String HTTPS_PROXY_PORT = "https.proxyPort"; /** * The System property name {@value}. *

* Not in Java 17 and 21 (Javadoc). *

* * @see java.awt.fonts */ public static final String JAVA_AWT_FONTS = "java.awt.fonts"; /** * The System property name {@value}. *

* Not in Java 17 and 21 (Javadoc). *

* * @see java.awt.graphicsenv */ public static final String JAVA_AWT_GRAPHICSENV = "java.awt.graphicsenv"; /** * The System property name {@value}. *

* Not in Java 17 and 21 (Javadoc). *

* * @see java.awt.headless */ public static final String JAVA_AWT_HEADLESS = "java.awt.headless"; /** * The System property name {@value}. *

* Not in Java 17 and 21 (Javadoc). *

* * @see java.awt.printerjob */ public static final String JAVA_AWT_PRINTERJOB = "java.awt.printerjob"; /** * The System property name {@value}. */ public static final String JAVA_CLASS_PATH = "java.class.path"; /** * The System property name {@value}. */ public static final String JAVA_CLASS_VERSION = "java.class.version"; /** * The System property name {@value}. *

* Not in Java 21. Last seen in Java 17. *

*/ public static final String JAVA_COMPILER = "java.compiler"; /** * The System property name {@value}. * * @see java.content.handler.pkgs * @since 3.15.0 */ public static final String JAVA_CONTENT_HANDLER_PKGS = "java.content.handler.pkgs"; /** * The System property name {@value}. *

* Not in Java 17 and 21 (Javadoc). *

*/ public static final String JAVA_ENDORSED_DIRS = "java.endorsed.dirs"; /** * The System property name {@value}. *

* Not in Java 17 and 21 (Javadoc). *

*/ public static final String JAVA_EXT_DIRS = "java.ext.dirs"; /** * The System property name {@value}. */ public static final String JAVA_HOME = "java.home"; /** * The System property name {@value}. */ public static final String JAVA_IO_TMPDIR = "java.io.tmpdir"; /** * The System property name {@value}. */ public static final String JAVA_LIBRARY_PATH = "java.library.path"; /** * The System property name {@value}. */ public static final String JAVA_LOCALE_PROVIDERS = "java.locale.providers"; /** * The System property name {@value}. * * @see java.locale.useOldISOCodes * @since 3.15.0 */ public static final String JAVA_LOCALE_USE_OLD_ISO_CODES = "java.locale.useOldISOCodes"; /** * The System property name {@value}. * * @see java.net.preferIPv4Stack * @since 3.15.0 */ public static final String JAVA_NET_PREFER_IPV4_STACK = "java.net.preferIPv4Stack"; /** * The System property name {@value}. * * @see java.net.preferIPv6Addresses * @since 3.15.0 */ public static final String JAVA_NET_PREFER_IPV6_ADDRESSES = "java.net.preferIPv6Addresses"; /** * The System property name {@value}. * * @see java.net.socks.password * @since 3.15.0 */ public static final String JAVA_NET_SOCKS_PASSWORD = "java.net.socks.password"; /** * The System property name {@value}. * * @see java.net.socks.username * @since 3.15.0 */ public static final String JAVA_NET_SOCKS_USER_NAME = "java.net.socks.username"; /** * The System property name {@value}. * * @see java.net.useSystemProxies * @since 3.15.0 */ public static final String JAVA_NET_USE_SYSTEM_PROXIES = "java.net.useSystemProxies"; /** * The System property name {@value}. * * @see java.nio.channels.DefaultThreadPool.initialSize * @since 3.15.0 */ public static final String JAVA_NIO_CHANNELS_DEFAULT_THREAD_POOL_INITIAL_SIZE = "java.nio.channels.DefaultThreadPool.initialSize"; /** * The System property name {@value}. * * @see java.nio.channels.DefaultThreadPool.threadFactory * @since 3.15.0 */ public static final String JAVA_NIO_CHANNELS_DEFAULT_THREAD_POOL_THREAD_FACTORY = "java.nio.channels.DefaultThreadPool.threadFactory"; /** * The System property name {@value}. * * @see java.nio.channels.DefaultThreadPool.initialSize * @since 3.15.0 */ public static final String JAVA_NIO_CHANNELS_SPI_ASYNCHRONOUS_CHANNEL_PROVIDER = "java.nio.channels.spi.AsynchronousChannelProvider"; /** * The System property name {@value}. * * @see java.nio.channels.spi.SelectorProvider * @since 3.15.0 */ public static final String JAVA_NIO_CHANNELS_SPI_SELECTOR_PROVIDER = "java.nio.channels.spi.SelectorProvider"; /** * The System property name {@value}. * * @see java.nio.file.spi.DefaultFileSystemProvider * @since 3.15.0 */ public static final String JAVA_NIO_FILE_SPI_DEFAULT_FILE_SYSTEM_PROVIDER = "java.nio.file.spi.DefaultFileSystemProvider"; /** * The System property name {@value}. * * @see java.properties.date * @since 3.15.0 */ public static final String JAVA_PROPERTIES_DATE = "java.properties.date"; /** * The System property name {@value}. * * @see java.protocol.handler.pkgs * @since 3.15.0 */ public static final String JAVA_PROTOCOL_HANDLER_PKGS = "java.protocol.handler.pkgs"; /** * The System property name {@value}. * * @see java.rmi.server.codebase * @since 3.15.0 */ public static final String JAVA_RMI_SERVER_CODEBASE = "java.rmi.server.codebase"; /** * The System property name {@value}. * * @see java.rmi.server.hostname * @since 3.15.0 */ public static final String JAVA_RMI_SERVER_HOST_NAME = "java.rmi.server.hostname"; /** * The System property name {@value}. * * @see java.rmi.server.randomIDs * @since 3.15.0 */ public static final String JAVA_RMI_SERVER_RANDOM_IDS = "java.rmi.server.randomIDs"; /** * The System property name {@value}. * * @see java.rmi.server.RMIClassLoaderSpi * @since 3.15.0 */ public static final String JAVA_RMI_SERVER_RMI_CLASS_LOADER_SPI = "java.rmi.server.RMIClassLoaderSpi"; /** * The System property name {@value}. */ public static final String JAVA_RUNTIME_NAME = "java.runtime.name"; /** * The System property name {@value}. */ public static final String JAVA_RUNTIME_VERSION = "java.runtime.version"; /** * The System property name {@value}. * * @see java.security.auth.login.config * @since 3.15.0 */ public static final String JAVA_SECURITY_AUTH_LOGIN_CONFIG = "java.security.auth.login.config"; /** * The System property name {@value}. * * @see java.security.manager * @since 3.15.0 */ public static final String JAVA_SECURITY_MANAGER = "java.security.manager"; /** * The System property name {@value}. * * @see java.specification.maintenance.version * @since 3.15.0 */ public static final String JAVA_SPECIFICATION_MAINTENANCE_VERSION = "java.specification.maintenance.version"; /** * The System property name {@value}. */ public static final String JAVA_SPECIFICATION_NAME = "java.specification.name"; /** * The System property name {@value}. */ public static final String JAVA_SPECIFICATION_VENDOR = "java.specification.vendor"; /** * The System property name {@value}. */ public static final String JAVA_SPECIFICATION_VERSION = "java.specification.version"; /** * The System property name {@value}. * * @see java.system.class.loader * @since 3.15.0 */ public static final String JAVA_SYSTEM_CLASS_LOADER = "java.system.class.loader"; /** * The System property name {@value}. * * @see java.time.zone.DefaultZoneRulesProvider * @since 3.15.0 */ public static final String JAVA_TIME_ZONE_DEFAULT_ZONE_RULES_PROVIDER = "java.time.zone.DefaultZoneRulesProvider"; /** * The System property name {@value}. * * @see java.util.concurrent.ForkJoinPool.common.exceptionHandler * @since 3.15.0 */ public static final String JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_EXCEPTION_HANDLER = "java.util.concurrent.ForkJoinPool.common.exceptionHandler"; /** * The System property name {@value}. * * @see java.util.concurrent.ForkJoinPool.common.maximumSpares * @since 3.15.0 */ public static final String JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_MAXIMUM_SPARES = "java.util.concurrent.ForkJoinPool.common.maximumSpares"; /** * The System property name {@value}. * * @see java.util.concurrent.ForkJoinPool.common.parallelism * @since 3.15.0 */ public static final String JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_PARALLELISM = "java.util.concurrent.ForkJoinPool.common.parallelism"; /** * The System property name {@value}. * * @see java.util.concurrent.ForkJoinPool.common.threadFactory * @since 3.15.0 */ public static final String JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_THREAD_FACTORY = "java.util.concurrent.ForkJoinPool.common.threadFactory"; /** * The System property name {@value}. * * @see java.util.currency.data * @since 3.15.0 */ public static final String JAVA_UTIL_CURRENCY_DATA = "java.util.currency.data"; /** * The System property name {@value}. * * @see java.util.logging.config.class * @since 3.15.0 */ public static final String JAVA_UTIL_LOGGING_CONFIG_CLASS = "java.util.logging.config.class"; /** * The System property name {@value}. * * @see java.util.logging.config.file * @since 3.15.0 */ public static final String JAVA_UTIL_LOGGING_CONFIG_FILE = "java.util.logging.config.file"; /** * The System property name {@value}. * * @see java.util.logging.SimpleFormatter.format * @since 3.15.0 */ public static final String JAVA_UTIL_LOGGING_SIMPLE_FORMATTER_FORMAT = "java.util.logging.simpleformatter.format"; /** * The System property name {@value}. * * @see java.util.prefs.PreferencesFactory */ public static final String JAVA_UTIL_PREFS_PREFERENCES_FACTORY = "java.util.prefs.PreferencesFactory"; /** * The System property name {@value}. * * @see java.util.PropertyResourceBundle.encoding * @since 3.15.0 */ public static final String JAVA_UTIL_PROPERTY_RESOURCE_BUNDLE_ENCODING = "java.util.PropertyResourceBundle.encoding"; /** * The System property name {@value}. */ public static final String JAVA_VENDOR = "java.vendor"; /** * The System property name {@value}. */ public static final String JAVA_VENDOR_URL = "java.vendor.url"; /** * The System property name {@value}. * * @see java.vendor.version * @since 3.15.0 */ public static final String JAVA_VENDOR_VERSION = "java.vendor.version"; /** * The System property name {@value}. */ public static final String JAVA_VERSION = "java.version"; /** * The System property name {@value}. * * @see java.version.date * @since 3.15.0 */ public static final String JAVA_VERSION_DATE = "java.version.date"; /** * The System property name {@value}. */ public static final String JAVA_VM_INFO = "java.vm.info"; /** * The System property name {@value}. */ public static final String JAVA_VM_NAME = "java.vm.name"; /** * The System property name {@value}. */ public static final String JAVA_VM_SPECIFICATION_NAME = "java.vm.specification.name"; /** * The System property name {@value}. */ public static final String JAVA_VM_SPECIFICATION_VENDOR = "java.vm.specification.vendor"; /** * The System property name {@value}. */ public static final String JAVA_VM_SPECIFICATION_VERSION = "java.vm.specification.version"; /** * The System property name {@value}. */ public static final String JAVA_VM_VENDOR = "java.vm.vendor"; /** * The System property name {@value}. */ public static final String JAVA_VM_VERSION = "java.vm.version"; /** * The System property name {@value}. * * @see java.xml * @since 3.15.0 */ public static final String JAVA_XML_CONFIG_FILE = "java.xml.config.file"; /** * The System property name {@value}. * * @see javax.accessibility.assistive_technologies * @since 3.15.0 */ public static final String JAVAX_ACCESSIBILITY_ASSISTIVE_TECHNOLOGIES = "javax.accessibility.assistive_technologies"; /** * The System property name {@value}. * * @see javax.net.ssl.sessionCacheSize * @since 3.15.0 */ public static final String JAVAX_NET_SSL_SESSION_CACHE_SIZE = "javax.net.ssl.sessionCacheSize"; /** * The System property name {@value}. * * @see javax.rmi.ssl.client.enabledCipherSuites * @since 3.15.0 */ public static final String JAVAX_RMI_SSL_CLIENT_ENABLED_CIPHER_SUITES = "javax.rmi.ssl.client.enabledCipherSuites"; /** * The System property name {@value}. * * @see javax.rmi.ssl.client.enabledProtocols * @since 3.15.0 */ public static final String JAVAX_RMI_SSL_CLIENT_ENABLED_PROTOCOLS = "javax.rmi.ssl.client.enabledProtocols"; /** * The System property name {@value}. * * @see javax.security.auth.useSubjectCredsOnly * @since 3.15.0 */ public static final String JAVAX_SECURITY_AUTH_USE_SUBJECT_CREDS_ONLY = "javax.security.auth.useSubjectCredsOnly"; /** * The System property name {@value}. * * @see javax.smartcardio.TerminalFactory.DefaultType * @since 3.15.0 */ public static final String JAVAX_SMART_CARD_IO_TERMINAL_FACTORY_DEFAULT_TYPE = "javax.smartcardio.TerminalFactory.DefaultType"; /** * The System property name {@value}. * * @see jdbc.drivers * @since 3.15.0 */ public static final String JDBC_DRIVERS = "jdbc.drivers"; /** * The System property name {@value}. * * @see jdk.http.auth.proxying.disabledSchemes * @since 3.15.0 */ public static final String JDK_HTTP_AUTH_PROXYING_DISABLED_SCHEMES = "jdk.http.auth.proxying.disabledSchemes"; /** * The System property name {@value}. * * @see jdk.http.auth.tunneling.disabledSchemes * @since 3.15.0 */ public static final String JDK_HTTP_AUTH_TUNNELING_DISABLED_SCHEMES = "jdk.http.auth.tunneling.disabledSchemes"; /** * The System property name {@value}. * * @see jdk.httpclient.allowRestrictedHeaders * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_ALLOW_RESTRICTED_HEADERS = "jdk.httpclient.allowRestrictedHeaders"; /** * The System property name {@value}. * * @see jdk.httpclient.auth.retrylimit * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_AUTH_RETRY_LIMIT = "jdk.httpclient.auth.retrylimit"; /** * The System property name {@value}. * * @see jdk.httpclient.bufsize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_BUF_SIZE = "jdk.httpclient.bufsize"; /** * The System property name {@value}. * * @see jdk.httpclient.connectionPoolSize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_CONNECTION_POOL_SIZE = "jdk.httpclient.connectionPoolSize"; /** * The System property name {@value}. * * @see jdk.httpclient.connectionWindowSize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_CONNECTION_WINDOW_SIZE = "jdk.httpclient.connectionWindowSize"; /** * The System property name {@value}. * * @see jdk.httpclient.disableRetryConnect * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_DISABLE_RETRY_CONNECT = "jdk.httpclient.disableRetryConnect"; /** * The System property name {@value}. * * @see jdk.httpclient.enableAllMethodRetry * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_ENABLE_ALL_METHOD_RETRY = "jdk.httpclient.enableAllMethodRetry"; /** * The System property name {@value}. * * @see jdk.httpclient.enablepush * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_ENABLE_PUSH = "jdk.httpclient.enablepush"; /** * The System property name {@value}. * * @see jdk.httpclient.hpack.maxheadertablesize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_HPACK_MAX_HEADER_TABLE_SIZE = "jdk.httpclient.hpack.maxheadertablesize"; /** * The System property name {@value}. * * @see jdk.httpclient.HttpClient.log * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_HTTP_CLIENT_LOG = "jdk.httpclient.HttpClient.log"; /** * The System property name {@value}. * * @see jdk.httpclient.keepalive.timeout * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_KEEP_ALIVE_TIMEOUT = "jdk.httpclient.keepalive.timeout"; /** * The System property name {@value}. * * @see jdk.httpclient.keepalive.timeout.h2 * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_KEEP_ALIVE_TIMEOUT_H2 = "jdk.httpclient.keepalive.timeout.h2"; /** * The System property name {@value}. * * @see jdk.httpclient.maxframesize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_MAX_FRAME_SIZE = "jdk.httpclient.maxframesize"; /** * The System property name {@value}. * * @see jdk.httpclient.maxstreams * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_MAX_STREAMS = "jdk.httpclient.maxstreams"; /** * The System property name {@value}. * * @see jdk.httpclient.receiveBufferSize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_RECEIVE_BUFFER_SIZE = "jdk.httpclient.receiveBufferSize"; /** * The System property name {@value}. * * @see jdk.httpclient.redirects.retrylimit * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_REDIRECTS_RETRY_LIMIT = "jdk.httpclient.redirects.retrylimit"; /** * The System property name {@value}. * * @see jdk.httpclient.sendBufferSize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_SEND_BUFFER_SIZE = "jdk.httpclient.sendBufferSize"; /** * The System property name {@value}. * * @see jdk.httpclient.websocket.writeBufferSize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_WEB_SOCKET_WRITE_BUFFER_SIZE = "jdk.httpclient.websocket.writeBufferSize"; /** * The System property name {@value}. * * @see jdk.httpclient.windowsize * @since 3.15.0 */ public static final String JDK_HTTP_CLIENT_WINDOW_SIZE = "jdk.httpclient.windowsize"; /** * The System property name {@value}. * * @see jdk.httpserver.maxConnections * @since 3.15.0 */ public static final String JDK_HTTP_SERVER_MAX_CONNECTIONS = "jdk.httpserver.maxConnections"; /** * The System property name {@value}. * * @see jdk.https.negotiate.cbt * @since 3.15.0 */ public static final String JDK_HTTPS_NEGOTIATE_CBT = "jdk.https.negotiate.cbt"; /** * The System property name {@value}. * * @see jdk.includeInExceptions * @since 3.15.0 */ public static final String JDK_INCLUDE_IN_EXCEPTIONS = "jdk.includeInExceptions"; /** * The System property name {@value}. * * @see jdk.internal.httpclient.disableHostnameVerification * @since 3.15.0 */ public static final String JDK_INTERNAL_HTTP_CLIENT_DISABLE_HOST_NAME_VERIFICATION = "jdk.internal.httpclient.disableHostnameVerification"; /** * The System property name {@value}. * * @see jdk.io.permissionsUseCanonicalPath * @since 3.15.0 */ public static final String JDK_IO_PERMISSIONS_USE_CANONICAL_PATH = "jdk.io.permissionsUseCanonicalPath"; /** * The System property name {@value}. * * @see jdk.jndi.ldap.object.factoriesFilter * @since 3.15.0 */ public static final String JDK_JNDI_LDAP_OBJECT_FACTORIES_FILTER = "jdk.jndi.ldap.object.factoriesFilter"; /** * The System property name {@value}. * * @see jdk.jndi.object.factoriesFilter * @since 3.15.0 */ public static final String JDK_JNDI_OBJECT_FACTORIES_FILTER = "jdk.jndi.object.factoriesFilter"; /** * The System property name {@value}. * * @see jdk.jndi.rmi.object.factoriesFilter * @since 3.15.0 */ public static final String JDK_JNDI_RMI_OBJECT_FACTORIES_FILTER = "jdk.jndi.rmi.object.factoriesFilter"; /** * The System property name {@value}. * * @see jdk.module.main * @since 3.15.0 */ public static final String JDK_MODULE_MAIN = "jdk.module.main"; /** * The System property name {@value}. * * @see jdk.module.main.class * @since 3.15.0 */ public static final String JDK_MODULE_MAIN_CLASS = "jdk.module.main.class"; /** * The System property name {@value}. * * @see jdk.module.path * @since 3.15.0 */ public static final String JDK_MODULE_PATH = "jdk.module.path"; /** * The System property name {@value}. * * @see jdk.module.upgrade.path * @since 3.15.0 */ public static final String JDK_MODULE_UPGRADE_PATH = "jdk.module.upgrade.path"; /** * The System property name {@value}. * * @see jdk.net.unixdomain.tmpdir * @since 3.15.0 */ public static final String JDK_NET_UNIX_DOMAIN_TMPDIR = "jdk.net.unixdomain.tmpdir"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String JDK_NET_URL_CLASS_PATH_SHOW_IGNORED_CLASS_PATH_ENTRIES = "jdk.net.URLClassPath.showIgnoredClassPathEntries"; /** * The System property name {@value}. * * @see jdk.serialFilter * @since 3.15.0 */ public static final String JDK_SERIAL_FILTER = "jdk.serialFilter"; /** * The System property name {@value}. * * @see jdk.serialFilterFactory * @since 3.15.0 */ public static final String JDK_SERIAL_FILTER_FACTORY = "jdk.serialFilterFactory"; /** * The System property name {@value}. * * @see jdk.tls.client.SignatureSchemes * @since 3.15.0 */ public static final String JDK_TLS_CLIENT_SIGNATURE_SCHEMES = "jdk.tls.client.SignatureSchemes"; /** * The System property name {@value}. * * @see jdk.tls.namedGroups * @since 3.15.0 */ public static final String JDK_TLS_NAMED_GROUPS = "jdk.tls.namedGroups"; /** * The System property name {@value}. * * @see jdk.tls.server.SignatureSchemes * @since 3.15.0 */ public static final String JDK_TLS_SERVER_SIGNATURE_SCHEMES = "jdk.tls.server.SignatureSchemes"; /** * The System property name {@value}. * * @see jdk.virtualThreadScheduler.maxPoolSize * @since 3.15.0 */ public static final String JDK_VIRTUAL_THREAD_SCHEDULER_MAXPOOLSIZE = "jdk.virtualThreadScheduler.maxPoolSize"; /** * The System property name {@value}. * * @see jdk.virtualThreadScheduler.parallelism * @since 3.15.0 */ public static final String JDK_VIRTUAL_THREAD_SCHEDULER_PARALLELISM = "jdk.virtualThreadScheduler.parallelism"; /** * The System property name {@value}. * * @see jdk.xml.cdataChunkSize * @since 3.15.0 */ public static final String JDK_XML_CDATA_CHUNK_SIZE = "jdk.xml.cdataChunkSize"; /** * The System property name {@value}. * * @see jdk.xml.dtd.support * @since 3.15.0 */ public static final String JDK_XML_DTD_SUPPORT = "jdk.xml.dtd.support"; /** * The System property name {@value}. * * @see jdk.xml.elementAttributeLimit * @since 3.15.0 */ public static final String JDK_XML_ELEMENT_ATTRIBUTE_LIMIT = "jdk.xml.elementAttributeLimit"; /** * The System property name {@value}. * * @see jdk.xml.enableExtensionFunctions * @since 3.15.0 */ public static final String JDK_XML_ENABLE_EXTENSION_FUNCTIONS = "jdk.xml.enableExtensionFunctions"; /** * The System property name {@value}. * * @see jdk.xml.entityExpansionLimit * @since 3.15.0 */ public static final String JDK_XML_ENTITY_EXPANSION_LIMIT = "jdk.xml.entityExpansionLimit"; /** * The System property name {@value}. * * @see jdk.xml.entityReplacementLimi_t * @since 3.15.0 */ public static final String JDK_XML_ENTITY_REPLACEMENT_LIMIT = "jdk.xml.entityReplacementLimi_t"; /** * The System property name {@value}. * * @see jdk.xml.isStandalone * @since 3.15.0 */ public static final String JDK_XML_IS_STANDALONE = "jdk.xml.isStandalone"; /** * The System property name {@value}. * * @see jdk.xml.jdkcatalog.resolve * @since 3.15.0 */ public static final String JDK_XML_JDK_CATALOG_RESOLVE = "jdk.xml.jdkcatalog.resolve"; /** * The System property name {@value}. * * @see jdk.xml.maxElementDepth * @since 3.15.0 */ public static final String JDK_XML_MAX_ELEMENT_DEPTH = "jdk.xml.maxElementDepth"; /** * The System property name {@value}. * * @see jdk.xml.maxGeneralEntitySizeLimit * @since 3.15.0 */ public static final String JDK_XML_MAX_GENERAL_ENTITY_SIZE_LIMIT = "jdk.xml.maxGeneralEntitySizeLimit"; /** * The System property name {@value}. * * @see jdk.xml.maxOccurLimit * @since 3.15.0 */ public static final String JDK_XML_MAX_OCCUR_LIMIT = "jdk.xml.maxOccurLimit"; /** * The System property name {@value}. * * @see jdk.xml.maxParameterEntitySizeLimit * @since 3.15.0 */ public static final String JDK_XML_MAX_PARAMETER_ENTITY_SIZE_LIMIT = "jdk.xml.maxParameterEntitySizeLimit"; /** * The System property name {@value}. * * @see jdk.xml.maxXMLNameLimit * @since 3.15.0 */ public static final String JDK_XML_MAX_XML_NAME_LIMIT = "jdk.xml.maxXMLNameLimit"; /** * The System property name {@value}. * * @see jdk.xml.overrideDefaultParser * @since 3.15.0 */ public static final String JDK_XML_OVERRIDE_DEFAULT_PARSER = "jdk.xml.overrideDefaultParser"; /** * The System property name {@value}. * * @see jdk.xml.resetSymbolTable * @since 3.15.0 */ public static final String JDK_XML_RESET_SYMBOL_TABLE = "jdk.xml.resetSymbolTable"; /** * The System property name {@value}. * * @see jdk.xml.totalEntitySizeLimit * @since 3.15.0 */ public static final String JDK_XML_TOTAL_ENTITY_SIZE_LIMIT = "jdk.xml.totalEntitySizeLimit"; /** * The System property name {@value}. * * @see jdk.xml.xsltcIsStandalone * @since 3.15.0 */ public static final String JDK_XML_XSLTC_IS_STANDALONE = "jdk.xml.xsltcIsStandalone"; /** * The System property name {@value}. */ public static final String LINE_SEPARATOR = "line.separator"; /** * The System property name {@value}. * * @see native.encoding * @since 3.15.0 */ public static final String NATIVE_ENCODING = "native.encoding"; /** * The System property name {@value}. * * @see networkaddress.cache.negative.ttl * @since 3.15.0 */ public static final String NETWORK_ADDRESS_CACHE_NEGATIVE_TTL = "networkaddress.cache.negative.ttl"; /** * The System property name {@value}. * * @see networkaddress.cache.stale.ttl * @since 3.15.0 */ public static final String NETWORK_ADDRESS_CACHE_STALE_TTL = "networkaddress.cache.stale.ttl"; /** * The System property name {@value}. * * @see networkaddress.cache.ttl * @since 3.15.0 */ public static final String NETWORK_ADDRESS_CACHE_TTL = "networkaddress.cache.ttl"; /** * The System property name {@value}. * * @see org.jcp.xml.dsig.securevalidation * @since 3.15.0 */ public static final String ORG_JCP_XML_DSIG_SECURE_VALIDATION = "org.jcp.xml.dsig.securevalidation"; /** * The System property name {@value}. * * @see org.openjdk.java.util.stream.tripwire * @since 3.15.0 */ public static final String ORG_OPENJDK_JAVA_UTIL_STREAM_TRIPWIRE = "org.openjdk.java.util.stream.tripwire"; /** * The System property name {@value}. */ public static final String OS_ARCH = "os.arch"; /** * The System property name {@value}. */ public static final String OS_NAME = "os.name"; /** * The System property name {@value}. */ public static final String OS_VERSION = "os.version"; /** * The System property name {@value}. */ public static final String PATH_SEPARATOR = "path.separator"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SOCKS_PROXY_HOST = "socksProxyHost"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SOCKS_PROXY_PORT = "socksProxyPort"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SOCKS_PROXY_VERSION = "socksProxyVersion"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String STDERR_ENCODING = "stderr.encoding"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String STDOUT_ENCODING = "stdout.encoding"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_NET_HTTP_SERVER_DRAIN_AMOUNT = "sun.net.httpserver.drainAmount"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_NET_HTTP_SERVER_IDLE_INTERVAL = "sun.net.httpserver.idleInterval"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_NET_HTTP_SERVER_MAX_IDLE_CONNECTIONS = "sun.net.httpserver.maxIdleConnections"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_NET_HTTP_SERVER_MAX_REQ_HEADERS = "sun.net.httpserver.maxReqHeaders"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_NET_HTTP_SERVER_MAX_REQ_TIME = "sun.net.httpserver.maxReqTime"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_NET_HTTP_SERVER_MAX_RSP_TIME = "sun.net.httpserver.maxRspTime"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_NET_HTTP_SERVER_NO_DELAY = "sun.net.httpserver.nodelay"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String SUN_SECURITY_KRB5_PRINCIPAL = "sun.security.krb5.principal"; /** * The System property name {@value}. */ public static final String USER_COUNTRY = "user.country"; /** * The System property name {@value}. */ public static final String USER_DIR = "user.dir"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String USER_EXTENSIONS = "user.extensions"; /** * The System property name {@value}. */ public static final String USER_HOME = "user.home"; /** * The System property name {@value}. */ public static final String USER_LANGUAGE = "user.language"; /** * The System property name {@value}. */ public static final String USER_NAME = "user.name"; /** * The System property name {@value}. */ public static final String USER_REGION = "user.region"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String USER_SCRIPT = "user.script"; /** * The System property name {@value}. */ public static final String USER_TIMEZONE = "user.timezone"; /** * The System property name {@value}. * * @see System Properties * @since 3.15.0 */ public static final String USER_VARIANT = "user.variant"; /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getAppleAwtEnableTemplateImages() { return getProperty(APPLE_AWT_ENABLE_TEMPLATE_IMAGES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getAwtToolkit() { return getProperty(AWT_TOOLKIT); } /** * Gets the current value for the property named {@code key} as an {@code boolean}. * * @param key The key * @param defaultIfAbsent The default value * @return an {@code boolean} or defaultIfAbsent */ public static boolean getBoolean(final String key, final BooleanSupplier defaultIfAbsent) { final String str = getProperty(key); return str == null ? defaultIfAbsent != null && defaultIfAbsent.getAsBoolean() : Boolean.parseBoolean(str); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getComSunJndiLdapObjectTrustSerialData() { return getProperty(COM_SUN_JNDI_LDAP_OBJECT_TRUST_SERIAL_DATA); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getComSunNetHttpServerHttpServerProvider() { return getProperty(COM_SUN_NET_HTTP_SERVER_HTTP_SERVER_PROVIDER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

*

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getFileEncoding() { return getProperty(FILE_ENCODING); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getFileSeparator() { return getProperty(FILE_SEPARATOR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getFtpNonProxyHost() { return getProperty(FTP_NON_PROXY_HOST); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getFtpProxyHost() { return getProperty(FTP_PROXY_HOST); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getFtpProxyPort() { return getProperty(FTP_PROXY_PORT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpAgent() { return getProperty(HTTP_AGENT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpAuthDigestCnonceRepeat() { return getProperty(HTTP_AUTH_DIGEST_CNONCE_REPEAT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpAuthDigestReenabledAlgorithms() { return getProperty(HTTP_AUTH_DIGEST_RE_ENABLED_ALGORITHMS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpAuthDigestValidateProxy() { return getProperty(HTTP_AUTH_DIGEST_VALIDATE_PROXY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpAuthDigestValidateServer() { return getProperty(HTTP_AUTH_DIGEST_VALIDATE_SERVER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpAuthNtlmDomain() { return getProperty(HTTP_AUTH_NTLM_DOMAIN); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpKeepAlive() { return getProperty(HTTP_KEEP_ALIVE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpKeepAliveTimeProxy() { return getProperty(HTTP_KEEP_ALIVE_TIME_PROXY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpKeepAliveTimeServer() { return getProperty(HTTP_KEEP_ALIVE_TIME_SERVER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpMaxConnections() { return getProperty(HTTP_MAX_CONNECTIONS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpMaxRedirects() { return getProperty(HTTP_MAX_REDIRECTS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpNonProxyHosts() { return getProperty(HTTP_NON_PROXY_HOSTS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpProxyHost() { return getProperty(HTTP_PROXY_HOST); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpProxyPort() { return getProperty(HTTP_PROXY_PORT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpsProxyHost() { return getProperty(HTTPS_PROXY_HOST); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getHttpsProxyPort() { return getProperty(HTTPS_PROXY_PORT); } /** * Gets the current value for the property named {@code key} as an {@code int}. * * @param key The key * @param defaultIfAbsent The default value * @return an {@code int} or defaultIfAbsent */ public static int getInt(final String key, final IntSupplier defaultIfAbsent) { final String str = getProperty(key); return str == null ? defaultIfAbsent != null ? defaultIfAbsent.getAsInt() : 0 : Integer.parseInt(str); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaAwtFonts() { return getProperty(JAVA_AWT_FONTS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaAwtGraphicsenv() { return getProperty(JAVA_AWT_GRAPHICSENV); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaAwtHeadless() { return getProperty(JAVA_AWT_HEADLESS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaAwtPrinterjob() { return getProperty(JAVA_AWT_PRINTERJOB); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaClassPath() { return getProperty(JAVA_CLASS_PATH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaClassVersion() { return getProperty(JAVA_CLASS_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaCompiler() { return getProperty(JAVA_COMPILER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaContentHandlerPkgs() { return getProperty(JAVA_CONTENT_HANDLER_PKGS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaEndorsedDirs() { return getProperty(JAVA_ENDORSED_DIRS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaExtDirs() { return getProperty(JAVA_EXT_DIRS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaHome() { return getProperty(JAVA_HOME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaIoTmpdir() { return getProperty(JAVA_IO_TMPDIR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaLibraryPath() { return getProperty(JAVA_LIBRARY_PATH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

*

* Java 9 and above. *

* * @return the current value from the system properties map. */ public static String getJavaLocaleProviders() { return getProperty(JAVA_LOCALE_PROVIDERS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaLocaleUseOldIsoCodes() { return getProperty(JAVA_LOCALE_USE_OLD_ISO_CODES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNetPreferIpv4Stack() { return getProperty(JAVA_NET_PREFER_IPV4_STACK); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNetPreferIpv6Addresses() { return getProperty(JAVA_NET_PREFER_IPV6_ADDRESSES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNetSocksPassword() { return getProperty(JAVA_NET_SOCKS_PASSWORD); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNetSocksUserName() { return getProperty(JAVA_NET_SOCKS_USER_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNetUseSystemProxies() { return getProperty(JAVA_NET_USE_SYSTEM_PROXIES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNioChannelsDefaultThreadPoolInitialSize() { return getProperty(JAVA_NIO_CHANNELS_DEFAULT_THREAD_POOL_INITIAL_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNioChannelsDefaultThreadPoolThreadFactory() { return getProperty(JAVA_NIO_CHANNELS_DEFAULT_THREAD_POOL_THREAD_FACTORY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNioChannelsSpiAsynchronousChannelProvider() { return getProperty(JAVA_NIO_CHANNELS_SPI_ASYNCHRONOUS_CHANNEL_PROVIDER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNioChannelsSpiSelectorProvider() { return getProperty(JAVA_NIO_CHANNELS_SPI_SELECTOR_PROVIDER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaNioFileSpiDefaultFileSystemProvider() { return getProperty(JAVA_NIO_FILE_SPI_DEFAULT_FILE_SYSTEM_PROVIDER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaPropertiesDate() { return getProperty(JAVA_PROPERTIES_DATE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaProtocolHandlerPkgs() { return getProperty(JAVA_PROTOCOL_HANDLER_PKGS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaRmiServerCodebase() { return getProperty(JAVA_RMI_SERVER_CODEBASE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaRmiServerHostName() { return getProperty(JAVA_RMI_SERVER_HOST_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaRmiServerRandomIds() { return getProperty(JAVA_RMI_SERVER_RANDOM_IDS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaRmiServerRmiClassLoaderSpi() { return getProperty(JAVA_RMI_SERVER_RMI_CLASS_LOADER_SPI); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaRuntimeName() { return getProperty(JAVA_RUNTIME_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaRuntimeVersion() { return getProperty(JAVA_RUNTIME_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaSecurityAuthLoginConfig() { return getProperty(JAVA_SECURITY_AUTH_LOGIN_CONFIG); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaSecurityManager() { return getProperty(JAVA_SECURITY_MANAGER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaSpecificationMaintenanceVersion() { return getProperty(JAVA_SPECIFICATION_MAINTENANCE_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaSpecificationName() { return getProperty(JAVA_SPECIFICATION_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaSpecificationVendor() { return getProperty(JAVA_SPECIFICATION_VENDOR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaSpecificationVersion() { return getProperty(JAVA_SPECIFICATION_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @param defaultValue get this Supplier when the property is empty or throws SecurityException. * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaSpecificationVersion(final String defaultValue) { return getProperty(JAVA_SPECIFICATION_VERSION, defaultValue); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaSystemClassLoader() { return getProperty(JAVA_SYSTEM_CLASS_LOADER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaTimeZoneDefaultZoneRulesProvider() { return getProperty(JAVA_TIME_ZONE_DEFAULT_ZONE_RULES_PROVIDER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilConcurrentForkJoinPoolCommonExceptionHandler() { return getProperty(JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_EXCEPTION_HANDLER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilConcurrentForkJoinPoolCommonMaximumSpares() { return getProperty(JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_MAXIMUM_SPARES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilConcurrentForkJoinPoolCommonParallelism() { return getProperty(JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_PARALLELISM); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilConcurrentForkJoinPoolCommonThreadFactory() { return getProperty(JAVA_UTIL_CONCURRENT_FORK_JOIN_POOL_COMMON_THREAD_FACTORY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilCurrencyData() { return getProperty(JAVA_UTIL_CURRENCY_DATA); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilLoggingConfigClass() { return getProperty(JAVA_UTIL_LOGGING_CONFIG_CLASS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilLoggingConfigFile() { return getProperty(JAVA_UTIL_LOGGING_CONFIG_FILE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilLoggingSimpleFormatterFormat() { return getProperty(JAVA_UTIL_LOGGING_SIMPLE_FORMATTER_FORMAT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaUtilPrefsPreferencesFactory() { return getProperty(JAVA_UTIL_PREFS_PREFERENCES_FACTORY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaUtilPropertyResourceBundleEncoding() { return getProperty(JAVA_UTIL_PROPERTY_RESOURCE_BUNDLE_ENCODING); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVendor() { return getProperty(JAVA_VENDOR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVendorUrl() { return getProperty(JAVA_VENDOR_URL); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaVendorVersion() { return getProperty(JAVA_VENDOR_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVersion() { return getProperty(JAVA_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaVersionDate() { return getProperty(JAVA_VERSION_DATE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVmInfo() { return getProperty(JAVA_VM_INFO); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVmName() { return getProperty(JAVA_VM_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVmSpecificationName() { return getProperty(JAVA_VM_SPECIFICATION_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVmSpecificationVendor() { return getProperty(JAVA_VM_SPECIFICATION_VENDOR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVmSpecificationVersion() { return getProperty(JAVA_VM_SPECIFICATION_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVmVendor() { return getProperty(JAVA_VM_VENDOR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getJavaVmVersion() { return getProperty(JAVA_VM_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaxAccessibilityAssistiveTechnologies() { return getProperty(JAVAX_ACCESSIBILITY_ASSISTIVE_TECHNOLOGIES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaXmlConfigFile() { return getProperty(JAVA_XML_CONFIG_FILE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaxNetSslSessionCacheSize() { return getProperty(JAVAX_NET_SSL_SESSION_CACHE_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaxRmiSslClientEnabledCipherSuites() { return getProperty(JAVAX_RMI_SSL_CLIENT_ENABLED_CIPHER_SUITES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaxRmiSslClientEnabledProtocols() { return getProperty(JAVAX_RMI_SSL_CLIENT_ENABLED_PROTOCOLS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaxSecurityAuthUseSubjectCredsOnly() { return getProperty(JAVAX_SECURITY_AUTH_USE_SUBJECT_CREDS_ONLY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJavaxSmartCardIoTerminalFactoryDefaultType() { return getProperty(JAVAX_SMART_CARD_IO_TERMINAL_FACTORY_DEFAULT_TYPE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdbcDrivers() { return getProperty(JDBC_DRIVERS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpAuthProxyingDisabledSchemes() { return getProperty(JDK_HTTP_AUTH_PROXYING_DISABLED_SCHEMES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpAuthTunnelingDisabledSchemes() { return getProperty(JDK_HTTP_AUTH_TUNNELING_DISABLED_SCHEMES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientAllowRestrictedHeaders() { return getProperty(JDK_HTTP_CLIENT_ALLOW_RESTRICTED_HEADERS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientAuthRetryLimit() { return getProperty(JDK_HTTP_CLIENT_AUTH_RETRY_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientBufSize() { return getProperty(JDK_HTTP_CLIENT_BUF_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientConnectionPoolSize() { return getProperty(JDK_HTTP_CLIENT_CONNECTION_POOL_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientConnectionWindowSize() { return getProperty(JDK_HTTP_CLIENT_CONNECTION_WINDOW_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientDisableRetryConnect() { return getProperty(JDK_HTTP_CLIENT_DISABLE_RETRY_CONNECT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientEnableAllMethodRetry() { return getProperty(JDK_HTTP_CLIENT_ENABLE_ALL_METHOD_RETRY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientEnablePush() { return getProperty(JDK_HTTP_CLIENT_ENABLE_PUSH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientHpackMaxHeaderTableSize() { return getProperty(JDK_HTTP_CLIENT_HPACK_MAX_HEADER_TABLE_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientHttpClientLog() { return getProperty(JDK_HTTP_CLIENT_HTTP_CLIENT_LOG); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientKeepAliveTimeout() { return getProperty(JDK_HTTP_CLIENT_KEEP_ALIVE_TIMEOUT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientKeepAliveTimeoutH2() { return getProperty(JDK_HTTP_CLIENT_KEEP_ALIVE_TIMEOUT_H2); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientMaxFrameSize() { return getProperty(JDK_HTTP_CLIENT_MAX_FRAME_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientMaxStreams() { return getProperty(JDK_HTTP_CLIENT_MAX_STREAMS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientReceiveBufferSize() { return getProperty(JDK_HTTP_CLIENT_RECEIVE_BUFFER_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientRedirectsRetryLimit() { return getProperty(JDK_HTTP_CLIENT_REDIRECTS_RETRY_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientSendBufferSize() { return getProperty(JDK_HTTP_CLIENT_SEND_BUFFER_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientWebSocketWriteBufferSize() { return getProperty(JDK_HTTP_CLIENT_WEB_SOCKET_WRITE_BUFFER_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpClientWindowSize() { return getProperty(JDK_HTTP_CLIENT_WINDOW_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpServerMaxConnections() { return getProperty(JDK_HTTP_SERVER_MAX_CONNECTIONS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkHttpsNegotiateCbt() { return getProperty(JDK_HTTPS_NEGOTIATE_CBT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkIncludeInExceptions() { return getProperty(JDK_INCLUDE_IN_EXCEPTIONS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkInternalHttpClientDisableHostNameVerification() { return getProperty(JDK_INTERNAL_HTTP_CLIENT_DISABLE_HOST_NAME_VERIFICATION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkIoPermissionsUseCanonicalPath() { return getProperty(JDK_IO_PERMISSIONS_USE_CANONICAL_PATH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkJndiLdapObjectFactoriesFilter() { return getProperty(JDK_JNDI_LDAP_OBJECT_FACTORIES_FILTER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkJndiObjectFactoriesFilter() { return getProperty(JDK_JNDI_OBJECT_FACTORIES_FILTER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkJndiRmiObjectFactoriesFilter() { return getProperty(JDK_JNDI_RMI_OBJECT_FACTORIES_FILTER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkModuleMain() { return getProperty(JDK_MODULE_MAIN); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkModuleMainClass() { return getProperty(JDK_MODULE_MAIN_CLASS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkModulePath() { return getProperty(JDK_MODULE_PATH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkModuleUpgradePath() { return getProperty(JDK_MODULE_UPGRADE_PATH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkNetUnixDomainTmpDir() { return getProperty(JDK_NET_UNIX_DOMAIN_TMPDIR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkNetUrlClassPathShowIgnoredClassPathEntries() { return getProperty(JDK_NET_URL_CLASS_PATH_SHOW_IGNORED_CLASS_PATH_ENTRIES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkSerialFilter() { return getProperty(JDK_SERIAL_FILTER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkSerialFilterFactory() { return getProperty(JDK_SERIAL_FILTER_FACTORY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkTlsClientSignatureSchemes() { return getProperty(JDK_TLS_CLIENT_SIGNATURE_SCHEMES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkTlsNamedGroups() { return getProperty(JDK_TLS_NAMED_GROUPS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkTlsServerSignatureSchemes() { return getProperty(JDK_TLS_SERVER_SIGNATURE_SCHEMES); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkVirtualThreadSchedulerMaxPoolSize() { return getProperty(JDK_VIRTUAL_THREAD_SCHEDULER_MAXPOOLSIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkVirtualThreadSchedulerParallelism() { return getProperty(JDK_VIRTUAL_THREAD_SCHEDULER_PARALLELISM); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlCdataChunkSize() { return getProperty(JDK_XML_CDATA_CHUNK_SIZE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlDtdSupport() { return getProperty(JDK_XML_DTD_SUPPORT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlElementAttributeLimit() { return getProperty(JDK_XML_ELEMENT_ATTRIBUTE_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlEnableExtensionFunctions() { return getProperty(JDK_XML_ENABLE_EXTENSION_FUNCTIONS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlEntityExpansionLimit() { return getProperty(JDK_XML_ENTITY_EXPANSION_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlEntityReplacementLimit() { return getProperty(JDK_XML_ENTITY_REPLACEMENT_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlIsStandalone() { return getProperty(JDK_XML_IS_STANDALONE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlJdkCatalogResolve() { return getProperty(JDK_XML_JDK_CATALOG_RESOLVE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlMaxElementDepth() { return getProperty(JDK_XML_MAX_ELEMENT_DEPTH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlMaxGeneralEntitySizeLimit() { return getProperty(JDK_XML_MAX_GENERAL_ENTITY_SIZE_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlMaxOccurLimit() { return getProperty(JDK_XML_MAX_OCCUR_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlMaxParameterEntitySizeLimit() { return getProperty(JDK_XML_MAX_PARAMETER_ENTITY_SIZE_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlMaxXmlNameLimit() { return getProperty(JDK_XML_MAX_XML_NAME_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlOverrideDefaultParser() { return getProperty(JDK_XML_OVERRIDE_DEFAULT_PARSER); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlResetSymbolTable() { return getProperty(JDK_XML_RESET_SYMBOL_TABLE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlTotalEntitySizeLimit() { return getProperty(JDK_XML_TOTAL_ENTITY_SIZE_LIMIT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getJdkXmlXsltcIsStandalone() { return getProperty(JDK_XML_XSLTC_IS_STANDALONE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getLineSeparator() { return getProperty(LINE_SEPARATOR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @param defaultIfAbsent get this Supplier when the property is empty or throws SecurityException. * @return the current value from the system properties map. * @since 3.15.0 */ public static String getLineSeparator(final Supplier defaultIfAbsent) { return getProperty(LINE_SEPARATOR, defaultIfAbsent); } /** * Gets the current value for the property named {@code key} as a {@code long}. * * @param key The key * @param defaultIfAbsent The default value * @return a {@code long} or defaultIfAbsent */ public static long getLong(final String key, final LongSupplier defaultIfAbsent) { final String str = getProperty(key); return str == null ? defaultIfAbsent != null ? defaultIfAbsent.getAsLong() : 0 : Long.parseLong(str); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getNativeEncoding() { return getProperty(NATIVE_ENCODING); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getNetworkAddressCacheNegativeTtl() { return getProperty(NETWORK_ADDRESS_CACHE_NEGATIVE_TTL); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getNetworkAddressCacheStaleTtl() { return getProperty(NETWORK_ADDRESS_CACHE_STALE_TTL); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getNetworkAddressCacheTtl() { return getProperty(NETWORK_ADDRESS_CACHE_TTL); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getOrgJcpXmlDsigSecureValidation() { return getProperty(ORG_JCP_XML_DSIG_SECURE_VALIDATION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getOrgOpenJdkJavaUtilStreamTripwire() { return getProperty(ORG_OPENJDK_JAVA_UTIL_STREAM_TRIPWIRE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getOsArch() { return getProperty(OS_ARCH); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getOsName() { return getProperty(OS_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getOsVersion() { return getProperty(OS_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getPathSeparator() { return getProperty(PATH_SEPARATOR); } /** * Gets a System property, defaulting to {@code null} if the property cannot be read. *

* If a {@link SecurityException} is caught, the return value is {@code null}. *

* * @param property the system property name * @return the system property value or {@code null} if a security problem occurs */ public static String getProperty(final String property) { return getProperty(property, Suppliers.nul()); } /** * Gets a System property, defaulting to {@code null} if the property cannot be read. *

* If a {@link SecurityException} is caught, the return value is {@code null}. *

* * @param property the system property name. * @param defaultIfAbsent use this value when the property is empty or throws SecurityException. * @return the system property value or {@code null} if a security problem occurs */ static String getProperty(final String property, final String defaultIfAbsent) { return getProperty(property, () -> defaultIfAbsent); } /** * Gets a System property, defaulting to {@code null} if the property cannot be read. *

* If a {@link SecurityException} is caught, the return value is {@code null}. *

* * @param property the system property name. * @param defaultIfAbsent get this Supplier when the property is empty or throws SecurityException. * @return the system property value or {@code null} if a security problem occurs */ static String getProperty(final String property, final Supplier defaultIfAbsent) { try { if (StringUtils.isEmpty(property)) { return Suppliers.get(defaultIfAbsent); } final String value = System.getProperty(property); return StringUtils.getIfEmpty(value, defaultIfAbsent); } catch (final SecurityException ignore) { // We are not allowed to look at this property. // // System.err.println("Caught a SecurityException reading the system property '" + property // + "'; the SystemUtils property value will default to null."); return defaultIfAbsent.get(); } } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSocksProxyHost() { return getProperty(SOCKS_PROXY_HOST); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSocksProxyPort() { return getProperty(SOCKS_PROXY_PORT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSocksProxyVersion() { return getProperty(SOCKS_PROXY_VERSION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getStdErrEncoding() { return getProperty(STDERR_ENCODING); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getStdOutEncoding() { return getProperty(STDOUT_ENCODING); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunNetHttpServerDrainAmount() { return getProperty(SUN_NET_HTTP_SERVER_DRAIN_AMOUNT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunNetHttpServerIdleInterval() { return getProperty(SUN_NET_HTTP_SERVER_IDLE_INTERVAL); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunNetHttpServerMaxIdleConnections() { return getProperty(SUN_NET_HTTP_SERVER_MAX_IDLE_CONNECTIONS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunNetHttpServerMaxReqHeaders() { return getProperty(SUN_NET_HTTP_SERVER_MAX_REQ_HEADERS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunNetHttpServerMaxReqTime() { return getProperty(SUN_NET_HTTP_SERVER_MAX_REQ_TIME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunNetHttpServerMaxRspTime() { return getProperty(SUN_NET_HTTP_SERVER_MAX_RSP_TIME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunNetHttpServerNoDelay() { return getProperty(SUN_NET_HTTP_SERVER_NO_DELAY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getSunSecurityKrb5Principal() { return getProperty(SUN_SECURITY_KRB5_PRINCIPAL); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getUserCountry() { return getProperty(USER_COUNTRY); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getUserDir() { return getProperty(USER_DIR); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getUserExtensions() { return getProperty(USER_EXTENSIONS); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getUserHome() { return getProperty(USER_HOME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getUserLanguage() { return getProperty(USER_LANGUAGE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getUserName() { return getProperty(USER_NAME); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @param defaultValue get this Supplier when the property is empty or throws SecurityException. * @return the current value from the system properties map. * @since 3.15.0 */ public static String getUserName(final String defaultValue) { return getProperty(USER_NAME, defaultValue); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getUserRegion() { return getProperty(USER_REGION); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getUserScript() { return getProperty(USER_SCRIPT); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. */ public static String getUserTimezone() { return getProperty(USER_TIMEZONE); } /** * Gets the current value from the system properties map. *

* Returns {@code null} if the property cannot be read due to a {@link SecurityException}. *

* * @return the current value from the system properties map. * @since 3.15.0 */ public static String getUserVariant() { return getProperty(USER_VARIANT); } /** * Make private in 4.0. * * @deprecated TODO Make private in 4.0. */ @Deprecated public SystemProperties() { // empty } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy