Interface ResourceLocator
-
- All Known Implementing Classes:
ApplicationServlet
,RenderingHelper.CLResourceLocator
,WebEngine
,WebEngineServlet
public interface ResourceLocator
Resource locators are used to resolve resource names to resource URLs- Author:
- Bogdan Stefanescu
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description File
getResourceFile(String key)
Get a file resource given a keyURL
getResourceURL(String key)
Gets an URL resource given a key
-
-
-
Method Detail
-
getResourceURL
URL getResourceURL(String key)
Gets an URL resource given a key- Parameters:
key
- the resource key- Returns:
- the resource URL or null if no such result was found
-
getResourceFile
File getResourceFile(String key)
Get a file resource given a key
-
-