@ThreadSafe public final class SystemProperties extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
clearWarnedPropertyNames()
Clear the cache with the property names, for which warnings were emitted
that keys don't exist.
|
static boolean |
containsPropertyName(String sPropertyName)
Check if a system property with the given name exists.
|
static Map<String,String> |
getAllProperties() |
static Set<String> |
getAllPropertyNames() |
static Set<String> |
getAllWarnedPropertyNames() |
static String |
getFileSeparator() |
static String |
getJavaClassPath() |
static String |
getJavaClassVersion() |
static String |
getJavaHome() |
static String |
getJavaLibraryPath() |
static String |
getJavaSpecificationUrl() |
static String |
getJavaSpecificationVendor() |
static String |
getJavaSpecificationVersion() |
static String |
getJavaVendor() |
static String |
getJavaVendorURL() |
static String |
getJavaVersion() |
static String |
getJavaVmName() |
static String |
getJavaVmSpecificationUrl() |
static String |
getJavaVmSpecificationVendor() |
static String |
getJavaVmSpecificationVersion() |
static String |
getJavaVmUrl() |
static String |
getJavaVmVendor() |
static String |
getJavaVmVersion() |
static String |
getLineSeparator() |
static String |
getOsArch() |
static String |
getOsName() |
static String |
getOsVersion() |
static String |
getPathSeparator() |
static String |
getPropertyValue(String sKey) |
static String |
getPropertyValueOrNull(String sKey) |
static String |
getTmpDir() |
static String |
getUserDir() |
static String |
getUserHome() |
static String |
getUserName() |
static int |
getXMLElementAttributeLimit() |
static int |
getXMLEntityExpansionLimit() |
static int |
getXMLMaxGeneralEntitySizeLimit() |
static int |
getXMLMaxOccur() |
static int |
getXMLMaxParameterEntitySizeLimit() |
static int |
getXMLTotalEntitySizeLimit() |
static String |
removePropertyValue(String sKey)
Remove a system property value under consideration of an eventually present
SecurityManager. |
static void |
setPropertyValue(String sKey,
boolean bValue)
Set a system property value under consideration of an eventually present
SecurityManager. |
static void |
setPropertyValue(String sKey,
String sValue)
Set a system property value under consideration of an eventually present
SecurityManager. |
static void |
setXMLElementAttributeLimit(int nElementAttributeLimit)
Limit the number of attributes an element can have
|
static void |
setXMLEntityExpansionLimit(int nEntityExpansionLimit)
Limit the number of entity expansions.
|
static void |
setXMLMaxGeneralEntitySizeLimit(int nMaxGeneralEntitySizeLimit)
Limit the maximum size of any general entities.
|
static void |
setXMLMaxOccur(int nMaxOccur)
Limit the number of contentmodel nodes that may be created when building a
grammar for a W3C XML Schema that contains maxOccurs attributes with values
other than "unbounded".
|
static void |
setXMLMaxParameterEntitySizeLimit(int nMaxParameterEntitySizeLimit)
Limit the maximum size of any parameter entities, including the result of
nesting multiple parameter entities.
|
static void |
setXMLTotalEntitySizeLimit(int nTotalEntitySizeLimit)
Limit the total size of all entities that include general and parameter
entities.
|
public static final String SYSTEM_PROPERTY_FILE_SEPARATOR
public static final String SYSTEM_PROPERTY_JAVA_CLASS_PATH
public static final String SYSTEM_PROPERTY_JAVA_CLASS_VERSION
public static final String SYSTEM_PROPERTY_JAVA_LIBRARY_PATH
public static final String SYSTEM_PROPERTY_JAVA_HOME
public static final String SYSTEM_PROPERTY_JAVA_IO_TMPDIR
public static final String SYSTEM_PROPERTY_JAVA_SPECIFICATION_URL
public static final String SYSTEM_PROPERTY_JAVA_SPECIFICATION_VENDOR
public static final String SYSTEM_PROPERTY_JAVA_SPECIFICATION_VERSION
public static final String SYSTEM_PROPERTY_JAVA_VENDOR
public static final String SYSTEM_PROPERTY_JAVA_VENDOR_URL
public static final String SYSTEM_PROPERTY_JAVA_VERSION
public static final String SYSTEM_PROPERTY_JAVA_VM_NAME
public static final String SYSTEM_PROPERTY_JAVA_VM_SPECIFICATION_URL
public static final String SYSTEM_PROPERTY_JAVA_VM_SPECIFICATION_VENDOR
public static final String SYSTEM_PROPERTY_JAVA_VM_SPECIFICATION_VERSION
public static final String SYSTEM_PROPERTY_JAVA_VM_URL
public static final String SYSTEM_PROPERTY_JAVA_VM_VENDOR
public static final String SYSTEM_PROPERTY_JAVA_VM_VERSION
public static final String SYSTEM_PROPERTY_LINE_SEPARATOR
public static final String SYSTEM_PROPERTY_OS_ARCH
public static final String SYSTEM_PROPERTY_OS_NAME
public static final String SYSTEM_PROPERTY_OS_VERSION
public static final String SYSTEM_PROPERTY_PATH_SEPARATOR
public static final String SYSTEM_PROPERTY_USER_DIR
public static final String SYSTEM_PROPERTY_USER_HOME
public static final String SYSTEM_PROPERTY_USER_NAME
public static final String SYSTEM_PROPERTY_JDX_XML_ENTITY_EXPANSION_LIMIT
public static final String SYSTEM_PROPERTY_ENTITY_EXPANSION_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_ELEMENT_ATTRIBUTE_LIMIT
public static final String SYSTEM_PROPERTY_ELEMENT_ATTRIBUTE_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_MAX_OCCUR
public static final String SYSTEM_PROPERTY_MAX_OCCUR
public static final String SYSTEM_PROPERTY_JDX_XML_TOTAL_ENTITY_SIZE_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_MAX_GENERAL_ENTITY_SIZE_LIMIT
public static final String SYSTEM_PROPERTY_JDX_XML_MAX_PARAMETER_ENTITY_SIZE_LIMIT
public static final String SYSTEM_PROPERTY_SUN_IO_SERIALIZATION_EXTENDEDDEBUGINFO
public static void clearWarnedPropertyNames()
@Nonnull @ReturnsMutableCopy public static Set<String> getAllWarnedPropertyNames()
public static void setPropertyValue(@Nonnull String sKey, boolean bValue)
SecurityManager.sKey - The key of the system property. May not be null.bValue - The value of the system property.public static void setPropertyValue(@Nonnull String sKey, @Nullable String sValue)
SecurityManager.sKey - The key of the system property. May not be null.sValue - The value of the system property. If the value is null
the property is removed.@Nullable public static String removePropertyValue(@Nonnull String sKey)
SecurityManager.sKey - The key of the system property to be removed. May not be
null.null if there was no property with that key.@DevelopersNote(value="This property is not part of the language but part of the Sun SDK") @Nullable public static String getTmpDir()
@Nonnull @ReturnsMutableCopy public static Set<String> getAllPropertyNames()
null.@Nonnull @ReturnsMutableCopy public static Map<String,String> getAllProperties()
public static boolean containsPropertyName(String sPropertyName)
sPropertyName - The name of the property.true if such a system property is present,
false otherwisepublic static void setXMLEntityExpansionLimit(int nEntityExpansionLimit)
nEntityExpansionLimit - A positive integer. Values ≥ 0 are treated as no limit.public static int getXMLEntityExpansionLimit()
public static void setXMLElementAttributeLimit(int nElementAttributeLimit)
nElementAttributeLimit - A positive integer. Values ≥ 0 are treated as no limit.public static int getXMLElementAttributeLimit()
public static void setXMLMaxOccur(int nMaxOccur)
nMaxOccur - A positive integer. Values ≥ 0 are treated as no limit.public static int getXMLMaxOccur()
public static void setXMLTotalEntitySizeLimit(int nTotalEntitySizeLimit)
nTotalEntitySizeLimit - A positive integer. Values ≥ 0 are treated as no limit.public static int getXMLTotalEntitySizeLimit()
public static void setXMLMaxGeneralEntitySizeLimit(int nMaxGeneralEntitySizeLimit)
nMaxGeneralEntitySizeLimit - A positive integer. Values ≥ 0 are treated as no limit.public static int getXMLMaxGeneralEntitySizeLimit()
public static void setXMLMaxParameterEntitySizeLimit(int nMaxParameterEntitySizeLimit)
nMaxParameterEntitySizeLimit - A positive integer. Values ≥ 0 are treated as no limit.public static int getXMLMaxParameterEntitySizeLimit()
Copyright © 2014–2015 Philip Helger. All rights reserved.