org.deegree.framework.util
Class WebappResourceResolver
java.lang.Object
org.deegree.framework.util.WebappResourceResolver
public class WebappResourceResolver
- extends java.lang.Object
Utility class for resolving of references in webapp config files to URL
s.
- Version:
- $Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18 Jun 2009) $
- Author:
- Markus Schneider, last edited by: $Author: mschneider $
Method Summary |
static java.net.URL |
resolveFileLocation(java.lang.String location,
javax.servlet.ServletContext context,
ILogger log)
'Heuristical' method to retrieve the URL for a file referenced from an init-param of
a webapp config file which may be:
a (absolute) URL
a file location
a (relative) URL which in turn is resolved using ServletContext.getRealPath
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WebappResourceResolver
public WebappResourceResolver()
resolveFileLocation
public static java.net.URL resolveFileLocation(java.lang.String location,
javax.servlet.ServletContext context,
ILogger log)
throws java.net.MalformedURLException
- 'Heuristical' method to retrieve the
URL
for a file referenced from an init-param of
a webapp config file which may be:
- a (absolute)
URL
- a file location
- a (relative) URL which in turn is resolved using
ServletContext.getRealPath
- Parameters:
location
- context
- log
- the log where errors are logged
- Returns:
- the full (and whitespace-escaped) URL
- Throws:
java.net.MalformedURLException
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org