Package org.apache.commons.chain.web
Class ChainResources
- java.lang.Object
-
- org.apache.commons.chain.web.ChainResources
-
final class ChainResources extends java.lang.Object
Utility methods for loading class loader and web application resources to configure a
Catalog
. These methods are shared betweenChainListener
andChainServlet
.
-
-
Constructor Summary
Constructors Constructor Description ChainResources()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description (package private) static java.lang.String[]
getResourcePaths(java.lang.String resources)
Parse the resource string into an array of paths.(package private) static void
parseClassResources(java.lang.String resources, ConfigParser parser)
Parse the specified class loader resources.(package private) static void
parseClassResources(Catalog catalog, java.lang.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 void
parseWebResources(javax.servlet.ServletContext context, java.lang.String resources, ConfigParser parser)
Parse the specified web application resources.(package private) static void
parseWebResources(Catalog catalog, javax.servlet.ServletContext context, java.lang.String resources, ConfigParser parser)
Deprecated.Use the variant that does not take a catalog, on a configuration resource containing "catalog" element(s)
-
-
-
Method Detail
-
parseClassResources
static void parseClassResources(java.lang.String resources, ConfigParser parser)
Parse the specified class loader resources.
- Parameters:
resources
- Comma-delimited list of resources (ornull
)parser
-ConfigParser
to use for parsing
-
parseClassResources
static void parseClassResources(Catalog catalog, java.lang.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 class loader resources.
- Parameters:
catalog
-Catalog
we are populatingresources
- Comma-delimited list of resources (ornull
)parser
-ConfigParser
to use for parsing
-
parseWebResources
static void parseWebResources(javax.servlet.ServletContext context, java.lang.String resources, ConfigParser parser)
Parse the specified web application resources.
- Parameters:
context
-ServletContext
for this web applicationresources
- Comma-delimited list of resources (ornull
)parser
-ConfigParser
to use for parsing
-
parseWebResources
static void parseWebResources(Catalog catalog, javax.servlet.ServletContext context, java.lang.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
-Catalog
we are populatingcontext
-ServletContext
for this web applicationresources
- Comma-delimited list of resources (ornull
)parser
-ConfigParser
to use for parsing
-
getResourcePaths
static java.lang.String[] getResourcePaths(java.lang.String resources)
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
-
-