Class AbsolutePathResolver

java.lang.Object
org.codice.ddf.configuration.AbsolutePathResolver

public class AbsolutePathResolver extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    This method will attempt to convert the already given path into an absolute path: first using the system property ddf.home and then using Path's toAbsolutePath's method
    getPath(String rootPath)
    This method will attempt to convert the already given path into an absolute path: first by appending the given rootPath, then by using Path's toAbsolutePath's method

    Methods inherited from class java.lang.Object

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

    • AbsolutePathResolver

      public AbsolutePathResolver(@Nullable String path)
  • Method Details

    • getPath

      public String getPath()
      This method will attempt to convert the already given path into an absolute path: first using the system property ddf.home and then using Path's toAbsolutePath's method
      Returns:
      Absolute path as a String
    • getPath

      public String getPath(String rootPath)
      This method will attempt to convert the already given path into an absolute path: first by appending the given rootPath, then by using Path's toAbsolutePath's method
      Parameters:
      rootPath - String to append to path
      Returns:
      Absolute path as a String