| Modifier and Type | Class and Description |
|---|---|
| public static class |
| Modifier and Type | Field and Description |
|---|---|
| protected final Map | |
| private static final Pattern | |
| public static final String | WEBJARS_PACKAGE
The webjar package name. |
| public static final String | WEBJARS_PATH_PREFIX
The path to where webjar resources live. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public | |
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| private static Optional | |
| protected static Map | |
| public Map | |
| public String | Returns: a fully qualified path to the resource.the path to return e.g. "jquery.js" or "abc/someother.js". This must be a distinct path within the index passed in (not partialPath)null or empty).Given a distinct path within the WebJar index passed in return the full path of the resource. |
| public String | Returns: a fully qualified path to the resourceThe id of the WebJar to search (not webjar, final String nullThe partial path to look for (not partialPath)nullReturns the full path of an asset within a specific WebJar |
| public String | Returns: a fully qualified path to the resource ofnull if WebJar not foundThe id of the WebJar to search (must not be webJarName, final String nullThe exact path of the file within the WebJar (may be exactPath)null for legacy reasons)Returns the full path of an asset within a specific WebJar |
| public static Map. | Returns: A WebJar tuple (Entry) with key = id and value = version ornull if not a legal WebJar file formatThe full WebJar path (not path)null)
|
| public Map | Returns: A map of the WebJars based on the files in the CLASSPATH where the key is the artifactId and the value is the version
|
| public String | |
| private static boolean | |
| public Set | |
| public Set | Returns: a set of folder paths that match.the root path to the folder. folderPath)List assets within a folder. |
| private static Map | |
| private static void | |
| private static void | |
| protected static ResourceList | |
| protected static String |
| allWebJars | back to summary |
|---|---|
| protected final Map<String, WebJarAssetLocator. | |
| WEBJAR_EXTRACTOR_PATTERN | back to summary |
|---|---|
| private static final Pattern WEBJAR_EXTRACTOR_PATTERN | |
| WEBJARS_PACKAGE | back to summary |
|---|---|
| public static final String WEBJARS_PACKAGE The webjar package name. | |
| WEBJARS_PATH_PREFIX | back to summary |
|---|---|
| public static final String WEBJARS_PATH_PREFIX The path to where webjar resources live. | |
| WebJarAssetLocator | back to summary |
|---|---|
| public WebJarAssetLocator() | |
| WebJarAssetLocator | back to summary |
|---|---|
| public WebJarAssetLocator(final ClassLoader classLoader) | |
| WebJarAssetLocator | back to summary |
|---|---|
| public WebJarAssetLocator(final String... whitelistPaths) | |
| WebJarAssetLocator | back to summary |
|---|---|
| public WebJarAssetLocator(final ClassLoader classLoader, final String... whitelistPaths) | |
| WebJarAssetLocator | back to summary |
|---|---|
| public WebJarAssetLocator(ClassGraph classGraph) | |
| WebJarAssetLocator | back to summary |
|---|---|
| public WebJarAssetLocator(final Map<String, WebJarAssetLocator. | |
| findMavenInfo | back to summary |
|---|---|
| private static Optional | |
| findWebJars | back to summary |
|---|---|
protected static Map
| |
| getAllWebJars | back to summary |
|---|---|
| public Map | |
| getFullPath | back to summary |
|---|---|
| public String getFullPath(final String partialPath) Given a distinct path within the WebJar index passed in return the full path of the resource. | |
| getFullPath | back to summary |
|---|---|
| public String getFullPath(final String webjar, final String partialPath) Returns the full path of an asset within a specific WebJar
| |
| getFullPathExact | back to summary |
|---|---|
| public String getFullPathExact(final String webJarName, final String exactPath) Returns the full path of an asset within a specific WebJar | |
| getWebJar | back to summary |
|---|---|
| public static Map. | |
| getWebJars | back to summary |
|---|---|
| public Map | |
| groupId | back to summary |
|---|---|
| public String groupId(final String fullPath) Gets the Group ID given a fullPath | |
| isEmpty | back to summary |
|---|---|
| private static boolean isEmpty(String str) | |
| listAssets | back to summary |
|---|---|
public Set
| |
| listAssets | back to summary |
|---|---|
| public Set List assets within a folder. | |
| scanForWebJars | back to summary |
|---|---|
private static Map
| |
| throwMultipleMatchesException | back to summary |
|---|---|
| private static void throwMultipleMatchesException(final String partialPath, final List<String> matches) | |
| throwNotFoundException | back to summary |
|---|---|
| private static void throwNotFoundException(final String partialPath) | |
| webJarResources | back to summary |
|---|---|
protected static ResourceList webJarResources(final String webJarName, final ResourceList resources)
| |
| webJarVersion | back to summary |
|---|---|
protected static String webJarVersion(final String webJarName, final ResourceList resources)
| |
| Modifier and Type | Field and Description |
|---|---|
| pack-priv final String | |
| pack-priv final Collection | |
| pack-priv final String | |
| pack-priv final URI | |
| pack-priv final String |
| Access | Constructor and Description |
|---|---|
| pack-priv | WebJarInfo(final String version, Optional<MavenProperties> mavenProperties, final URI uri, final Collection<String> contents)
|
| Modifier and Type | Method and Description |
|---|---|
| public String | |
| public Collection | |
| public String | |
| public URI | |
| public String |
| artifactId | back to summary |
|---|---|
| pack-priv final String artifactId | |
| contents | back to summary |
|---|---|
| pack-priv final Collection<String> contents | |
| groupId | back to summary |
|---|---|
| pack-priv final String groupId | |
| uri | back to summary |
|---|---|
| pack-priv final URI uri | |
| version | back to summary |
|---|---|
| pack-priv final String version | |
| WebJarInfo | back to summary |
|---|---|
| pack-priv WebJarInfo(final String version, Optional<MavenProperties> mavenProperties, final URI uri, final Collection<String> contents) | |
| getArtifactId | back to summary |
|---|---|
public String getArtifactId()
| |
| getContents | back to summary |
|---|---|
public Collection
| |
| getGroupId | back to summary |
|---|---|
public String getGroupId()
| |
| getUri | back to summary |
|---|---|
| public URI getUri() | |
| getVersion | back to summary |
|---|---|
public String getVersion()
| |