public class WebjarsUriLocator extends Object implements UriLocator
WebjarUriLocator, but uses "/webjars/" prefix to identify a webjar resource. Useful when resources
are located using build-time solution (maven plugin). The only disadvantage of this locator, is that it will not make
it possible to use resources located inside a folder named "webjars" (inside the application context).| Modifier and Type | Field and Description |
|---|---|
static String |
ALIAS
Alias used to register this locator with
LocatorProvider. |
| Constructor and Description |
|---|
WebjarsUriLocator() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(String uri) |
static String |
createUri(String path) |
InputStream |
locate(String uri) |
public static final String ALIAS
LocatorProvider.public static String createUri(String path)
public InputStream locate(String uri) throws IOException
locate in interface UriLocatorIOExceptionpublic boolean accept(String uri)
accept in interface UriLocatorCopyright © 2008-2016. All Rights Reserved.