Package ro.isdc.wro.extensions.locator
Class WebjarUriLocator
java.lang.Object
ro.isdc.wro.extensions.locator.WebjarUriLocator
- All Implemented Interfaces:
UriLocator
Locator responsible for locating webjar resources. A webjar resource is a classpath resource respecting a certain standard. Read more about webjars.
This locator uses the following prefix to identify a locator capable of handling webjar resources:
webjar:- Since:
- 1.6.2
- Author:
- Alex Objelean
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringAlias used to register this locator withLocatorProvider.static final StringPrefix of the resource uri used to check if the resource can be read by thisUriLocatorimplementation. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ALIAS
Alias used to register this locator withLocatorProvider.- See Also:
-
PREFIX
Prefix of the resource uri used to check if the resource can be read by thisUriLocatorimplementation.- See Also:
-
-
Constructor Details
-
WebjarUriLocator
public WebjarUriLocator()
-
-
Method Details
-
createUri
- Returns:
- the uri which is acceptable by this locator.
-
locate
- Specified by:
locatein interfaceUriLocator- Throws:
IOException
-
accept
- Specified by:
acceptin interfaceUriLocator
-