Package org.apache.camel.support
Class TempDirHelper
java.lang.Object
org.apache.camel.support.TempDirHelper
Helper for resolving temp directory.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic String
resolveDefaultTempDir
(org.apache.camel.CamelContext camelContext, String path) Resolves a temp dir using the default pattern.static String
resolveTempDir
(org.apache.camel.CamelContext camelContext, String pattern, String path) Resolves a temp dir
-
Field Details
-
DEFAULT_PATTERN
- See Also:
-
-
Method Details
-
resolveDefaultTempDir
Resolves a temp dir using the default pattern.- Parameters:
camelContext
- the camel contextpath
- 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 contextpattern
- pattern for the base path of the temp dirpath
- the sub-dir for the temp dir- Returns:
- the resolved temp dir
-