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.
  • 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