public class WebJar extends Object
| Constructor and Description |
|---|
WebJar(org.springframework.core.io.Resource resource) |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.core.io.Resource |
createRelative(String relativePath)
Returns a resource given its relative path.
|
org.springframework.core.io.Resource |
findResource(org.springframework.core.io.support.ResourcePatternResolver resourceLoader,
String... extensions)
Finds the first web jar resource that matches one of the specified file extensions.
|
String |
getAbsolutePath()
Returns the absolute path of this web jar.
|
protected com.fasterxml.jackson.databind.node.ObjectNode |
getConfig()
Returns the configuration for this webjar, after normalization.
|
String |
getName()
Returns the unique name for this web jar.
|
String |
getRootPath()
Returns the relative root path of this web jar.
|
String |
getVersion()
Returns the version of this web jar.
|
protected void |
setConfig(com.fasterxml.jackson.databind.node.ObjectNode config)
Sets the configuration for this web jar.
|
String |
toString() |
protected com.fasterxml.jackson.databind.node.ObjectNode getConfig()
protected void setConfig(com.fasterxml.jackson.databind.node.ObjectNode config)
config - The root node of the configuration.public String getAbsolutePath()
public String getRootPath()
public String getName()
public String getVersion()
public org.springframework.core.io.Resource createRelative(String relativePath)
relativePath - The relative path.public org.springframework.core.io.Resource findResource(org.springframework.core.io.support.ResourcePatternResolver resourceLoader,
String... extensions)
resourceLoader - The resource loader that will perform the search.extensions - The file extensions to match.Copyright © 2017 Regenstrief Center for Biomedical Informatics. All rights reserved.