public class WebJarAssetLocator extends Object implements IAssetProvider, IFullPathProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
WebJarAssetLocator.ResourceException
resource exception without stacktrace.
|
| Constructor and Description |
|---|
WebJarAssetLocator(IWebjarsSettings settings)
Convenience constructor that will form a locator for all resources on the current class path.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public WebJarAssetLocator(IWebjarsSettings settings)
public String getFullPath(String partialPath)
IFullPathProvidergetFullPath 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)
IAssetProviderlistAssets in interface IAssetProviderfolderPath - the root path to the folder. Must begin with '/'.Copyright © 2015 agilecoders.de. All Rights Reserved.