1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.sun.syndication.fetcher.impl;
18
19 import com.sun.syndication.common.ObjectBean;
20 import com.sun.syndication.feed.synd.SyndFeed;
21
22 import java.net.URL;
23
24 /***
25 * <p>A class to represent a {@link com.sun.syndication.feed.synd.SyndFeed}
26 * and some useful information about it.</p>
27 *
28 * @author Nick Lothian
29 */
30 public class SyndFeedInfo extends ObjectBean {
31 private String id;
32 private URL url;
33 private Object lastModified;
34 private String eTag;
35 private SyndFeed syndFeed;
36
37 public SyndFeedInfo() {
38 super(SyndFeedInfo.class);
39 }
40
41 /***
42 * @return the ETag the feed was last retrieved with
43 */
44 public String getETag() {
45 return eTag;
46 }
47
48 /***
49 * @return the last modified date for the feed
50 */
51 public Object getLastModified() {
52 return lastModified;
53 }
54
55 /***
56 * @return the URL the feed was served from
57 */
58 public URL getUrl() {
59 return url;
60 }
61
62 public void setETag(String string) {
63 eTag = string;
64 }
65
66 public void setLastModified(Object o) {
67 lastModified = o;
68 }
69
70 public void setUrl(URL url) {
71 this.url = url;
72 }
73
74 public SyndFeed getSyndFeed() {
75 return syndFeed;
76 }
77
78 public void setSyndFeed(SyndFeed feed) {
79 syndFeed = feed;
80 }
81
82 /***
83 * @return A unique ID to identify the feed
84 */
85 public String getId() {
86 return id;
87 }
88
89 /***
90 * @param string A unique ID to identify the feed. Note that if the URL of the feed
91 * changes this will remain the same
92 */
93 public void setId(String string) {
94 id = string;
95 }
96
97 }