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 URLmakeRelativeURL(String uri, String query) voidsetSourceUrl(URL sourceUrl) protected URLvalidateRelativeURL(URL relativeUrl)
-
Constructor Details
-
DefaultResourceLocator
public DefaultResourceLocator()
-
-
Method Details
-
setSourceUrl
-
locateResource
Description copied from interface:ResourceLocatorLocate the specified resource.- Specified by:
locateResourcein 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
-