Class UrlAsset

java.lang.Object
org.jboss.shrinkwrap.api.asset.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).
  • Field Details

    • url

      private final URL url
  • Constructor Details

    • 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
  • Method Details