Package org.geotools.styling
Class DefaultResourceLocator
- Object
-
- DefaultResourceLocator
-
- All Implemented Interfaces:
ResourceLocator
public class DefaultResourceLocator extends Object implements ResourceLocator
Default locator for online resources. Searches by absolute URL, relative path w.r.t. to SLD document or classpath.- Author:
- Jan De Moerloose
-
-
Constructor Summary
Constructors Constructor Description DefaultResourceLocator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description URL
locateResource(String uri)
Locate the specified resource.protected URL
makeRelativeURL(String uri, String query)
void
setSourceUrl(URL sourceUrl)
protected URL
validateRelativeURL(URL relativeUrl)
-
-
-
Method Detail
-
setSourceUrl
public void setSourceUrl(URL sourceUrl)
-
locateResource
public URL locateResource(String uri)
Description copied from interface:ResourceLocator
Locate the specified resource.- Specified by:
locateResource
in interfaceResourceLocator
- Parameters:
uri
- uri of the resource- Returns:
- the fully resolved URL of the resource or null, if the resource cannot be located.
-
-