|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectde.agilecoders.wicket.webjars.util.WebJarAssetLocator
public class WebJarAssetLocator
Locate WebJar assets. The class is thread safe.
| Nested Class Summary | |
|---|---|
static class |
WebJarAssetLocator.ResourceException
resource exception without stacktrace. |
| Constructor Summary | |
|---|---|
WebJarAssetLocator(IWebjarsSettings settings)
Convenience constructor that will form a locator for all resources on the current class path. |
|
| Method Summary | |
|---|---|
String |
getFullPath(String partialPath)
Given a distinct path within the WebJar index passed in return the full path of the resource. |
SortedMap<String,String> |
getFullPathIndex()
|
Set<String> |
listAssets(String folderPath)
List assets within a folder. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WebJarAssetLocator(IWebjarsSettings settings)
| Method Detail |
|---|
public String getFullPath(String partialPath)
IFullPathProvider
getFullPath in interface IFullPathProviderpartialPath - the path to return e.g. "jquery.js" or "abc/someother.js". This must be a distinct path within the index passed in.
public SortedMap<String,String> getFullPathIndex()
getFullPathIndex in interface IAssetProviderpublic Set<String> listAssets(String folderPath)
IAssetProvider
listAssets in interface IAssetProviderfolderPath - the root path to the folder. Must begin with '/'.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||