Package org.codelibs.fess.util
Class SystemUtil
java.lang.Object
org.codelibs.core.lang.SystemUtil
org.codelibs.fess.util.SystemUtil
public class SystemUtil
extends org.codelibs.core.lang.SystemUtil
This class provides system-related utility methods.
It extends
SystemUtil and adds
methods specific to the Fess application.-
Field Summary
Fields inherited from class org.codelibs.core.lang.SystemUtil
FILE_ENCODING, JAVA_IO_TMPDIR, LINE_SEPARATOR, OS_NAME, PATH_SEPARATOR, USER_DIR, USER_HOME -
Method Summary
Modifier and TypeMethodDescriptionstatic StringGets the HTTP address of the search engine.static StringmaskSensitiveValue(String key, String value) Masks sensitive values for logging purposes.Methods inherited from class org.codelibs.core.lang.SystemUtil
currentTimeMillis, getEnv, getEnv, getProperty, getProperty, setTimeProvider
-
Method Details
-
getSearchEngineHttpAddress
Gets the HTTP address of the search engine.- Returns:
- The search engine HTTP address.
-
maskSensitiveValue
Masks sensitive values for logging purposes. Keys matching the pattern defined in 'app.log.sensitive.property.pattern' system property will have their values replaced with "********".- Parameters:
key- The key name to checkvalue- The value to potentially mask- Returns:
- The masked value if the key matches a sensitive pattern, otherwise the original value
-