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 aURLsource.- Parameters:
url- A valid URL- Throws:
IllegalArgumentException-URLcan not be null
-
-
Method Details
-
openStream
Open theURLstream.- Specified by:
openStreamin interfaceAsset- Returns:
- A open stream with the content of the URL
-
getSource
Returns the loaded URL. -
toString
-