- 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 boolean
equals(Object obj)
URI
getUrl()
Returns the URL valueint
hashCode()
String
toString()
-
-
-
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
-
-