Class FlexibleLocation

java.lang.Object
org.apache.ofbiz.base.location.FlexibleLocation

public final class FlexibleLocation extends Object
A special location resolver that uses Strings like URLs, but with more options.
  • Method Details

    • resolveLocation

      public static URL resolveLocation(String location) throws MalformedURLException
      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

      public static URL resolveLocation(String location, ClassLoader loader) throws MalformedURLException
      Throws:
      MalformedURLException