Class FileSystemResourceManager

java.lang.Object
com.aquima.interactions.foundation.io.ResourceManagerBase
com.aquima.interactions.foundation.io.FileSystemResourceManager
All Implemented Interfaces:
IResourceManager

public class FileSystemResourceManager extends ResourceManagerBase
Resource manager implementation that uses a file system to locate the resources.
Since:
10.0
Author:
R. Bokhorst
  • Field Details Link icon

    • DEFAULT_PROTOCOL Link icon

      public static final String DEFAULT_PROTOCOL
      This member denotates the default protocol name of this resource manager.
      See Also:
  • Constructor Details Link icon

    • FileSystemResourceManager Link icon

      public FileSystemResourceManager()
      Construct FileSystemResourceManager with protocol "file"
    • FileSystemResourceManager Link icon

      public FileSystemResourceManager(String protocol)
  • Method Details Link icon

    • getResource Link icon

      public IResource getResource(String path)
      Description copied from interface: IResourceManager
      Locates a resource specified by path. Path may contain a protocol prefix to specify that the resource should be located from a specific resource manager. This method will only return a result when the resource is available. When the resource manager can not locate the requested resource, an UnknownResourceException will be thrown.
      Parameters:
      path - the path to the resource.
      Returns:
      A resource that will exist, exception otherwise.
    • getSupportedTypes Link icon

      public String[] getSupportedTypes()
      Description copied from interface: IResourceManager
      Returns the supported protocol types.
      Returns:
      a list of supported types, which should never be null.
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object