|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sun.syndication.fetcher.impl.AbstractFeedFetcher
| Field Summary | |
private Set |
fetcherEventListeners
|
private String |
userAgent
|
private boolean |
usingDeltaEncoding
|
| Fields inherited from interface com.sun.syndication.fetcher.FeedFetcher |
DEFAULT_USER_AGENT |
| Constructor Summary | |
AbstractFeedFetcher()
|
|
| Method Summary | |
void |
addFetcherEventListener(FetcherListener listener)
Add a FetcherListener. |
static SyndFeed |
combineFeeds(SyndFeed originalFeed,
SyndFeed newFeed)
Combine the entries in two feeds into a single feed. |
protected void |
fireEvent(String eventType,
String urlStr)
|
protected void |
fireEvent(String eventType,
String urlStr,
SyndFeed feed)
|
protected void |
fireEvent(String eventType,
URLConnection connection)
|
protected void |
fireEvent(String eventType,
URLConnection connection,
SyndFeed feed)
|
String |
getUserAgent()
|
protected void |
handleErrorCodes(int responseCode)
Handles HTTP error codes. |
boolean |
isUsingDeltaEncoding()
Is this fetcher using rfc3229 delta encoding? |
void |
removeFetcherEventListener(FetcherListener listener)
Remove a FetcherListener |
void |
setUserAgent(String string)
|
void |
setUsingDeltaEncoding(boolean useDeltaEncoding)
Turn on or off rfc3229 delta encoding See http://www.ietf.org/rfc/rfc3229.txt and http://bobwyman.pubsub.com/main/2004/09/using_rfc3229_w.html NOTE: This is experimental and feedback is welcome! |
protected void |
throw4XXError(int responseCode)
|
protected void |
throwAuthenticationError(int responseCode)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.sun.syndication.fetcher.FeedFetcher |
retrieveFeed |
| Field Detail |
private Set fetcherEventListeners
private String userAgent
private boolean usingDeltaEncoding
| Constructor Detail |
public AbstractFeedFetcher()
| Method Detail |
public String getUserAgent()
getUserAgent in interface FeedFetcherpublic void setUserAgent(String string)
setUserAgent in interface FeedFetcherstring - The User-Agent to sent to servers
protected void fireEvent(String eventType,
URLConnection connection)
eventType - The event type to fireconnection - the current connection
protected void fireEvent(String eventType,
URLConnection connection,
SyndFeed feed)
eventType - The event type to fireconnection - the current connectionfeed - The feed to pass to the event
protected void fireEvent(String eventType,
String urlStr)
eventType - The event type to fireurlStr - the current url as a string
protected void fireEvent(String eventType,
String urlStr,
SyndFeed feed)
eventType - The event type to fireurlStr - the current url as a stringfeed - The feed to pass to the eventpublic void addFetcherEventListener(FetcherListener listener)
FeedFetcherAdd a FetcherListener.
The FetcherListener will receive an FetcherEvent when a Fetcher event (feed polled, retrieved, etc) occurs
addFetcherEventListener in interface FeedFetcherlistener - The FetcherListener to recieve the eventFeedFetcher.addFetcherEventListener(com.sun.syndication.fetcher.FetcherListener)public void removeFetcherEventListener(FetcherListener listener)
FeedFetcherRemove a FetcherListener
removeFetcherEventListener in interface FeedFetcherlistener - The FetcherListener to removeFeedFetcher.removeFetcherEventListener(com.sun.syndication.fetcher.FetcherListener)public boolean isUsingDeltaEncoding()
FeedFetcherIs this fetcher using rfc3229 delta encoding?
isUsingDeltaEncoding in interface FeedFetcherpublic void setUsingDeltaEncoding(boolean useDeltaEncoding)
FeedFetcherTurn on or off rfc3229 delta encoding
See http://www.ietf.org/rfc/rfc3229.txt and http://bobwyman.pubsub.com/main/2004/09/using_rfc3229_w.html
NOTE: This is experimental and feedback is welcome!
setUsingDeltaEncoding in interface FeedFetcheruseDeltaEncoding - The useDeltaEncoding to set.
protected void handleErrorCodes(int responseCode)
throws FetcherException
Handles HTTP error codes.
responseCode - the HTTP response code
FetcherException - if response code is in the range 400 to 599 inclusive
protected void throw4XXError(int responseCode)
throws FetcherException
FetcherException
protected void throwAuthenticationError(int responseCode)
throws FetcherException
FetcherException
public static SyndFeed combineFeeds(SyndFeed originalFeed,
SyndFeed newFeed)
Combine the entries in two feeds into a single feed.
The returned feed will have the same data as the newFeed parameter, with the entries from originalFeed appended to the end of its entries.
originalFeed - newFeed -
SyndFeed
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||