deegree 2.3 (2010/04/09 10:10 build-4-official)

org.deegree.framework.util
Class WebappResourceResolver

java.lang.Object
  extended by org.deegree.framework.util.WebappResourceResolver

public class WebappResourceResolver
extends Object

Utility class for resolving of references in webapp config files to URLs.

Version:
$Revision: 18195 $, $Date: 2009-06-18 17:55:39 +0200 (Do, 18. Jun 2009) $
Author:
Markus Schneider, last edited by: $Author: mschneider $

Constructor Summary
WebappResourceResolver()
           
 
Method Summary
static URL resolveFileLocation(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
 

Constructor Detail

WebappResourceResolver

public WebappResourceResolver()
Method Detail

resolveFileLocation

public static URL resolveFileLocation(String location,
                                      javax.servlet.ServletContext context,
                                      ILogger log)
                               throws MalformedURLException
'Heuristical' method to retrieve the URL for a file referenced from an init-param of a webapp config file which may be:

Parameters:
location -
context -
log - the log where errors are logged
Returns:
the full (and whitespace-escaped) URL
Throws:
MalformedURLException

deegree 2.3 (2010/04/09 10:10 build-4-official)

an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org