Class UrlAsset

  • All Implemented Interfaces:
    Asset

    public class UrlAsset
    extends Object
    implements Asset
    Implementation of an Asset backed by a URL. The URL may be of any backing protocol supported by the runtime (ie. has a handler registered).
    Author:
    Aslak Knutsen
    • Constructor Detail

      • UrlAsset

        public UrlAsset​(URL url)
        Create a new resource with a URL source.
        Parameters:
        url - A valid URL
        Throws:
        IllegalArgumentException - URL can not be null