Package com.openhtmltopdf.util
Class SystemPropertiesUtil
java.lang.Object
com.openhtmltopdf.util.SystemPropertiesUtil
public class SystemPropertiesUtil extends Object
Utility methods for working with System properties.
-
Constructor Summary
Constructors Constructor Description SystemPropertiesUtil() -
Method Summary
Modifier and Type Method Description static StringgetPropertyOrDefaultSandbox(String propertyName, String defaultVal)Attempts to retrieve a system property; if the property is not found, or if a SecurityException is thrown (for example, in a sandbox environment) will return the default value.
-
Constructor Details
-
SystemPropertiesUtil
public SystemPropertiesUtil()
-
-
Method Details
-
getPropertyOrDefaultSandbox
Attempts to retrieve a system property; if the property is not found, or if a SecurityException is thrown (for example, in a sandbox environment) will return the default value. Will swallow stack traces and any SecurityExceptions, and will not log any output to the console.- Parameters:
propertyName- property to retrievedefaultVal- value to use if not found, or not allowed to use the property- Returns:
-