Package org.geotools.styling
Class DefaultResourceLocator
Object
DefaultResourceLocator
- All Implemented Interfaces:
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 -
Method Summary
Modifier and TypeMethodDescriptionlocateResource
(String uri) Locate the specified resource.protected URL
makeRelativeURL
(String uri, String query) void
setSourceUrl
(URL sourceUrl) protected URL
validateRelativeURL
(URL relativeUrl)
-
Constructor Details
-
DefaultResourceLocator
public DefaultResourceLocator()
-
-
Method Details
-
setSourceUrl
-
locateResource
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.
-
validateRelativeURL
-
makeRelativeURL
-