Class TempDirHelper

java.lang.Object
org.apache.camel.support.TempDirHelper

public final class TempDirHelper extends Object
Helper for resolving temp directory.
  • Field Details

  • Method Details

    • resolveDefaultTempDir

      public static String resolveDefaultTempDir(org.apache.camel.CamelContext camelContext, String path)
      Resolves a temp dir using the default pattern.
      Parameters:
      camelContext - the camel context
      path - the sub-dir for the temp dir
      Returns:
      the resolved temp dir
    • resolveTempDir

      public static String resolveTempDir(org.apache.camel.CamelContext camelContext, String pattern, String path)
      Resolves a temp dir
      Parameters:
      camelContext - the camel context
      pattern - pattern for the base path of the temp dir
      path - the sub-dir for the temp dir
      Returns:
      the resolved temp dir