|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.resource.ResourceLoader
org.apache.myfaces.trinidad.resource.RegexResourceLoader
public class RegexResourceLoader
A resource loader implementation which loads resources by pattern matching the requested resource path to a registered resource loader. Change history 2006-08-01: -= Simon Lessard =- Changed to use a list of entry rather than a dual typed one to add more type safety with minimal memory overhaul and get a really small performance gain.
| Constructor Summary | |
|---|---|
RegexResourceLoader()
Creates a new RegexResourceLoader. |
|
| Method Summary | |
|---|---|
protected void |
deregister(java.lang.String regex)
Deregisters a resource loader by regular expression. |
protected java.net.URL |
findResource(java.lang.String path)
Finds the resource with the given name. |
protected void |
register(java.lang.String regex,
ResourceLoader loader)
Registers a resource loader by regular expression. |
| Methods inherited from class org.apache.myfaces.trinidad.resource.ResourceLoader |
|---|
getContentType, getNullResourceLoader, getParent, getResource |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RegexResourceLoader()
| Method Detail |
|---|
protected java.net.URL findResource(java.lang.String path)
throws java.io.IOException
ResourceLoader
findResource in class ResourceLoaderpath - The resource name
java.io.IOException
protected void register(java.lang.String regex,
ResourceLoader loader)
regex - the regular expression to matchloader - the resource loader to use for matching pathsprotected void deregister(java.lang.String regex)
regex - the regular expression to remove
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||