1 package com.sun.syndication.fetcher; 2 3 import java.util.EventObject ; 4 5 import com.sun.syndication.feed.synd.SyndFeed; 6 7 11 public class FetcherEvent extends EventObject { 12 public static final String EVENT_TYPE_FEED_POLLED = "FEED_POLLED"; 13 public static final String EVENT_TYPE_FEED_RETRIEVED = "FEED_RETRIEVED"; 14 public static final String EVENT_TYPE_FEED_UNCHANGED = "FEED_UNCHANGED"; 15 16 private String eventType; 17 private String urlString; 18 private SyndFeed feed; 19 20 public FetcherEvent(Object source) { 21 super(source); 22 } 23 24 25 public FetcherEvent(Object source, String urlStr, String eventType) { 26 this(source); 27 setUrlString(urlStr); 28 setEventType(eventType); 29 } 30 31 public FetcherEvent(Object source, String urlStr, String eventType, SyndFeed feed) { 32 this(source, urlStr, eventType); 33 setFeed(feed); 34 } 35 36 37 42 public SyndFeed getFeed() { 43 return feed; 44 } 45 46 51 public void setFeed(SyndFeed feed) { 52 this.feed = feed; 53 } 54 55 58 public String getEventType() { 59 return eventType; 60 } 61 64 public void setEventType(String eventType) { 65 this.eventType = eventType; 66 } 67 70 public String getUrlString() { 71 return urlString; 72 } 73 76 public void setUrlString(String urlString) { 77 this.urlString = urlString; 78 } 79 } 80 | Popular Tags |