com.sun.syndication.fetcher.impl
Class AbstractFeedFetcher
java.lang.Object
|
+--com.sun.syndication.fetcher.impl.AbstractFeedFetcher
- All Implemented Interfaces:
- FeedFetcherI
- Direct Known Subclasses:
- HttpURLFeedFetcher
- public abstract class AbstractFeedFetcher
- extends java.lang.Object
- implements FeedFetcherI
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AbstractFeedFetcher
public AbstractFeedFetcher()
getUserAgent
public java.lang.String getUserAgent()
- Specified by:
getUserAgent
in interface FeedFetcherI
- Returns:
- the User-Agent currently being sent to servers
setUserAgent
public void setUserAgent(java.lang.String string)
- Specified by:
setUserAgent
in interface FeedFetcherI
- Parameters:
string
- The User-Agent to sent to servers
fireEvent
protected void fireEvent(java.lang.String eventType,
java.net.URLConnection connection)
- Parameters:
eventType
- The event type to fireconnection
- the current connection
addFetcherEventListener
public void addFetcherEventListener(com.sun.syndication.fetcher.FetcherListener listener)
- Description copied from interface:
FeedFetcherI
Add a FetcherListener.
The FetcherListener will receive an FetcherEvent when
a Fetcher event (feed polled, retrieved, etc) occurs
- Specified by:
addFetcherEventListener
in interface FeedFetcherI
- Parameters:
listener
- The FetcherListener to recieve the event- See Also:
FeedFetcherI.addFetcherEventListener(com.sun.syndication.fetcher.FetcherListener)
removeFetcherPolledListener
public void removeFetcherPolledListener(com.sun.syndication.fetcher.FetcherListener listener)
- Description copied from interface:
FeedFetcherI
Remove a FetcherListener
- Specified by:
removeFetcherPolledListener
in interface FeedFetcherI
- Parameters:
listener
- The FetcherListener to remove- See Also:
FeedFetcherI.removeFetcherPolledListener(com.sun.syndication.fetcher.FetcherListener)
Copyright © 2004 Sun Microsystems. All Rights Reserved.