Class HapiSystemProperties

java.lang.Object
ca.uhn.fhir.system.HapiSystemProperties

public final class HapiSystemProperties extends Object
  • Method Details

    • enableHapiClientKeepResponses

      public static void enableHapiClientKeepResponses()
      This property is used by unit tests - do not rely on it in production code as it may change at any time. If you want to capture responses in a reliable way in your own code, just use client interceptors
    • disableHapiClientKeepResponses

      public static void disableHapiClientKeepResponses()
    • isHapiClientKeepResponsesEnabled

      public static boolean isHapiClientKeepResponsesEnabled()
      This property is used by unit tests - do not rely on it in production code as it may change at any time. If you want to capture responses in a reliable way in your own code, just use client interceptors
    • setStackFilterPattern

      public static void setStackFilterPattern(String thePattern)
      This property gets used in the logback.xml file. It causes logged stack traces to skip a number of packages that are just noise.
    • setTestValidationResourceCachesMs

      public static void setTestValidationResourceCachesMs(long theMillis)
      Set the validation resource cache expireAfterWrite timeout in milliseconds
      Parameters:
      theMillis -
    • getTestValidationResourceCachesMs

      public static long getTestValidationResourceCachesMs()
      Get the validation resource cache expireAfterWrite timeout in milliseconds. If it has not been set, the default value is 10 seconds.
    • enableTestMode

      public static void enableTestMode()
      When this property is primarily used to control application shutdown behavior
    • isTestModeEnabled

      public static boolean isTestModeEnabled()
    • enableUnitTestMode

      public static void enableUnitTestMode()
      This property is used to ensure unit test behaviour is deterministic. It is also used to add extra logging for unit tests.
    • disableUnitTestMode

      public static void disableUnitTestMode()
    • isUnitTestModeEnabled

      public static boolean isUnitTestModeEnabled()
    • enableUnitTestCaptureStack

      public static void enableUnitTestCaptureStack()
      This property prevents stack traces from getting truncated and includes the full stack trace in failed search responses.
    • disableUnitTestCaptureStack

      public static void disableUnitTestCaptureStack()
    • isUnitTestCaptureStackEnabled

      public static boolean isUnitTestCaptureStackEnabled()
    • isDisableStatusBasedReindex

      public static boolean isDisableStatusBasedReindex()
    • disableStatusBasedReindex

      public static void disableStatusBasedReindex()
    • enableStatusBasedReindex

      public static void enableStatusBasedReindex()
      This property sets DaoConfig#setStatusBasedReindexingDisabled(Boolean) to true when the system starts up.
    • enableSuppressHapiFhirVersionLog

      public static void enableSuppressHapiFhirVersionLog()
      This property is used to suppress the logging of the HAPI FHIR version on startup.
    • isSuppressHapiFhirVersionLogEnabled

      public static boolean isSuppressHapiFhirVersionLogEnabled()