com.sun.syndication.feed.module.mediarss.types
Class UrlReference

java.lang.Object
  extended by com.sun.syndication.feed.module.mediarss.types.UrlReference
All Implemented Interfaces:
Reference, java.io.Serializable

public class UrlReference
extends java.lang.Object
implements Reference, java.io.Serializable

Used to indicate a URL primary reference for a MediaContent object.

Author:
cooper
See Also:
Serialized Form

Constructor Summary
UrlReference(java.lang.String url)
          Creates a new instance of UrlReference
UrlReference(java.net.URI url)
          Creates a new UrlReference.
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 java.net.URI getUrl()
          Returns the URL value
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

UrlReference

public UrlReference(java.net.URI url)
Creates a new UrlReference.

Parameters:
url - URL to the media source

UrlReference

public UrlReference(java.lang.String url)
             throws java.net.URISyntaxException
Creates a new instance of UrlReference

Parameters:
url - String value of a URL
Throws:
java.net.MalformedURLException - thrown on bad URLs
java.net.URISyntaxException
Method Detail

getUrl

public java.net.URI getUrl()
Returns the URL value

Returns:
Returns the URL value

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006-2009. All Rights Reserved.