Class LinkedResourceManager
java.lang.Object
com.aquima.interactions.portal.model.factory.LinkedResourceManager
- All Implemented Interfaces:
IResourceManager
Resource locator implementation that combines two resource locators.
- Since:
- 6.0
- Author:
- O. Kerpershoek
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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.getResource
(String path) Locates a resource specified by path.String[]
Returns the supported protocol types.
-
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
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 interfaceIResourceManager
- Parameters:
path
- the path to the resource.- Returns:
- A resource that will exist, exception otherwise.
-
getSupportedTypes
Description copied from interface:IResourceManager
Returns the supported protocol types.- Specified by:
getSupportedTypes
in interfaceIResourceManager
- Returns:
- a list of supported types, which should never be null.
-