Package org.jboss.shrinkwrap.api.asset
Class UrlAsset
java.lang.Object
org.jboss.shrinkwrap.api.asset.UrlAsset
- All Implemented Interfaces:
Asset
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
url
-
-
Constructor Details
-
UrlAsset
Create a new resource with aURL
source.- Parameters:
url
- A valid URL- Throws:
IllegalArgumentException
-URL
can not be null
-
-
Method Details
-
openStream
Open theURL
stream.- Specified by:
openStream
in interfaceAsset
- Returns:
- A open stream with the content of the URL
-
getSource
Returns the loaded URL. -
toString
-