org.rometools.fetcher.impl
Class SyndFeedInfo

java.lang.Object
  extended by org.rometools.fetcher.impl.SyndFeedInfo
All Implemented Interfaces:
Serializable, Cloneable

public class SyndFeedInfo
extends Object
implements Cloneable, Serializable

A class to represent a SyndFeed and some useful information about it.

This class is thread safe, as expected by the different feed fetcher implementations.

Author:
Nick Lothian
See Also:
Serialized Form

Constructor Summary
SyndFeedInfo()
           
 
Method Summary
 Object clone()
          Creates a deep 'bean' clone of the object.
 boolean equals(Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 String getETag()
           
 String getId()
           
 Object getLastModified()
           
 com.sun.syndication.feed.synd.SyndFeed getSyndFeed()
           
 URL getUrl()
           
 int hashCode()
          Returns a hashcode value for the object.
 void setETag(String string)
           
 void setId(String string)
           
 void setLastModified(Object o)
           
 void setSyndFeed(com.sun.syndication.feed.synd.SyndFeed feed)
           
 void setUrl(URL url)
           
 String toString()
          Returns the String representation for the object.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SyndFeedInfo

public SyndFeedInfo()
Method Detail

clone

public Object clone()
             throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.

Overrides:
clone in class Object
Returns:
a clone of the object.
Throws:
CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.

Overrides:
equals in class Object
Parameters:
other - he reference object with which to compare.
Returns:
true if 'this' object is equal to the 'other' object.

hashCode

public int hashCode()
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

Overrides:
hashCode in class Object
Returns:
the hashcode of the bean object.

toString

public String toString()
Returns the String representation for the object.

Overrides:
toString in class Object
Returns:
String representation for the object.

getETag

public String getETag()
Returns:
the ETag the feed was last retrieved with

getLastModified

public Object getLastModified()
Returns:
the last modified date for the feed

getUrl

public URL getUrl()
Returns:
the URL the feed was served from

setETag

public void setETag(String string)

setLastModified

public void setLastModified(Object o)

setUrl

public void setUrl(URL url)

getSyndFeed

public com.sun.syndication.feed.synd.SyndFeed getSyndFeed()

setSyndFeed

public void setSyndFeed(com.sun.syndication.feed.synd.SyndFeed feed)

getId

public String getId()
Returns:
A unique ID to identify the feed

setId

public void setId(String string)
Parameters:
string - A unique ID to identify the feed. Note that if the URL of the feed changes this will remain the same


Copyright © 2004-2013 ROME Project. All Rights Reserved.