Class LinkedResourceManager

java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedResourceManager
All Implemented Interfaces:
IResourceManager

public final class LinkedResourceManager extends Object implements IResourceManager
Resource locator implementation that combines two resource locators.
Since:
6.0
Author:
O. Kerpershoek
  • Method Details

    • createFor

      public static IResourceManager createFor(IResourceManager resources, IResourceManager defaultResources)
      This method returns a resource locator implementation that combines both the resource locators that are passed to this method.
      Parameters:
      resources - The resource locator that should be used first (optional).
      defaultResources - The resource locator that should be used when the first did yield a result (mandatory).
      Returns:
      a resource locator implementation that combines both the resource locators that are passed to this method.
    • getResource

      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.
      Specified by:
      getResource in interface IResourceManager
      Parameters:
      path - the path to the resource.
      Returns:
      A resource that will exist, exception otherwise.
    • getSupportedTypes

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