public class RegexResourceLoader extends ResourceLoader
Constructor and Description |
---|
RegexResourceLoader()
Creates a new RegexResourceLoader.
|
Modifier and Type | Method and Description |
---|---|
protected void |
deregister(String regex)
Deregisters a resource loader by regular expression.
|
protected URL |
findResource(String path)
Finds the resource with the given name.
|
protected void |
register(String regex,
ResourceLoader loader)
Registers a resource loader by regular expression.
|
getContentType, getContentType, getNullResourceLoader, getParent, getResource, isCachable, toString
public RegexResourceLoader()
protected URL findResource(String path) throws IOException
ResourceLoader
findResource
in class ResourceLoader
path
- The resource nameIOException
protected void register(String regex, ResourceLoader loader)
regex
- the regular expression to matchloader
- the resource loader to use for matching pathsprotected void deregister(String regex)
regex
- the regular expression to removeCopyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.