Package org.apache.ofbiz.base.location
Class FlexibleLocation
java.lang.Object
org.apache.ofbiz.base.location.FlexibleLocation
A special location resolver that uses Strings like URLs, but with more options.
-
Method Summary
Modifier and TypeMethodDescriptionstatic URL
resolveLocation
(String location) Resolves the gives location into a URL object for use in various ways.static URL
resolveLocation
(String location, ClassLoader loader)
-
Method Details
-
resolveLocation
Resolves the gives location into a URL object for use in various ways. The general format of the location is like a URL: {locationType}://location/path/file.ext Supports standard locationTypes like http, https, ftp, jar and file Supports a classpath location type for when desired to be used like any other URL Supports OFBiz specific location types like ofbizhome and component Supports additional locationTypes specified in the locationresolvers.properties file- Parameters:
location
- The location String to parse and create a URL from- Returns:
- URL object corresponding to the location String passed in
- Throws:
MalformedURLException
-
resolveLocation
- Throws:
MalformedURLException
-