Class UrlReference
- java.lang.Object
-
- com.rometools.modules.mediarss.types.UrlReference
-
- All Implemented Interfaces:
Reference,Serializable
public class UrlReference extends Object implements Reference, Serializable
Used to indicate a URL primary reference for a MediaContent object.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description UrlReference(String url)UrlReference(URI url)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)URIgetUrl()Returns the URL valueinthashCode()StringtoString()
-
-
-
Constructor Detail
-
UrlReference
public UrlReference(URI url)
- Parameters:
url- URL to the media source
-
UrlReference
public UrlReference(String url) throws URISyntaxException
- Parameters:
url- String value of a URL- Throws:
MalformedURLException- thrown on bad URLsURISyntaxException
-
-
Method Detail
-
getUrl
public URI getUrl()
Returns the URL value- Returns:
- Returns the URL value
-
-