deegree 2.5 (2011/06/29 09:44 build-8-official)

org.deegree.framework.util
Class WebappResourceResolver

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

public class WebappResourceResolver
extends java.lang.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 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
 

Constructor Detail

WebappResourceResolver

public WebappResourceResolver()
Method Detail

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:

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

deegree 2.5 (2011/06/29 09:44 build-8-official)

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