Class ChainResources
java.lang.Object
org.apache.commons.chain.web.ChainResources
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) static String[]getResourcePaths(String resources) Parse the resource string into an array of paths.(package private) static voidparseClassResources(String resources, ConfigParser parser) Parse the specified class loader resources.(package private) static voidparseClassResources(Catalog catalog, String resources, ConfigParser parser) Deprecated.Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)(package private) static voidparseWebResources(javax.servlet.ServletContext context, String resources, ConfigParser parser) Parse the specified web application resources.(package private) static voidparseWebResources(Catalog catalog, javax.servlet.ServletContext context, String resources, ConfigParser parser) Deprecated.Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)
-
Constructor Details
-
ChainResources
ChainResources()
-
-
Method Details
-
parseClassResources
Parse the specified class loader resources.
- Parameters:
resources- Comma-delimited list of resources (ornull)parser-ConfigParserto use for parsing
-
parseClassResources
Deprecated.Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)Parse the specified class loader resources.
- Parameters:
catalog-Catalogwe are populatingresources- Comma-delimited list of resources (ornull)parser-ConfigParserto use for parsing
-
parseWebResources
static void parseWebResources(javax.servlet.ServletContext context, String resources, ConfigParser parser) Parse the specified web application resources.
- Parameters:
context-ServletContextfor this web applicationresources- Comma-delimited list of resources (ornull)parser-ConfigParserto use for parsing
-
parseWebResources
static void parseWebResources(Catalog catalog, javax.servlet.ServletContext context, String resources, ConfigParser parser) Deprecated.Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)Parse the specified web application resources.
- Parameters:
catalog-Catalogwe are populatingcontext-ServletContextfor this web applicationresources- Comma-delimited list of resources (ornull)parser-ConfigParserto use for parsing
-
getResourcePaths
Parse the resource string into an array of paths. Empty entries will be skipped. (That is, all entries in the array are non-empty paths.)
- Parameters:
resources- A comma-delimited list of resource paths (ornull).- Returns:
- An array of non-empty paths. The array itself may be empty.
- Since:
- Chain 1.1
-