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 Type
    Method
    Description
    static String
    Gets the HTTP address of the search engine.
    static String
    Masks sensitive values for logging purposes.

    Methods inherited from class org.codelibs.core.lang.SystemUtil

    currentTimeMillis, getEnv, getEnv, getProperty, getProperty, setTimeProvider

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • getSearchEngineHttpAddress

      public static String getSearchEngineHttpAddress()
      Gets the HTTP address of the search engine.
      Returns:
      The search engine HTTP address.
    • maskSensitiveValue

      public static String maskSensitiveValue(String key, String value)
      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 check
      value - The value to potentially mask
      Returns:
      The masked value if the key matches a sensitive pattern, otherwise the original value