1 /***
2 Copyright (C) 2005 The Java Community
3
4 This program is free software; you can redistribute it and/or modify it under
5 the terms of the GNU General Public License as published by the Free Software
6 Foundation; either version 2 of the License, or (at your option) any later
7 version.
8
9 This program is distributed in the hope that it will be useful, but WITHOUT
10 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
11 FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
12
13 You should have received a copy of the GNU General Public License along with
14 this program; if not, write to the Free Software Foundation, Inc., 59 Temple
15 Place, Suite 330, Boston, MA 02111-1307 USA.
16 */
17 package org.bejug.javacareers.feeder;
18
19 /***
20 * The FeederDaemon config container.
21 *
22 * @author Stephan Janssen (last modified by $Author: shally $)
23 * @version $Revision: 1.3 $ - $Date: 2005/12/20 15:36:45 $
24 */
25 public class FeederDaemonConfig {
26
27 /***
28 * Proxy enabled.
29 */
30 private boolean isProxyEnabled;
31
32 /***
33 * Proxy host address.
34 */
35 private String proxyHost;
36
37 /***
38 * Proxy port.
39 */
40 private String proxyPort;
41
42 /***
43 * Number of seconds to wait for feed rescan.
44 */
45 private int scanCycle;
46
47 /***
48 * Number of seconds to wait for feed generation.
49 */
50 private int generateCycle;
51
52 /***
53 * Description to use for RSS feed.
54 */
55 private String channelDescription;
56
57 /***
58 * Link to use for RSS feed.
59 */
60 private String channelLink;
61
62 /***
63 * Title to use for RSS feed.
64 */
65 private String channelTitle;
66
67 /***
68 * Image to use for RSS feed.
69 */
70 private String channelImage;
71 /***
72 * Copyright to use for RSS feed.
73 */
74 private String channelCopyright;
75
76 /***
77 * Editor to use for RSS feed.
78 */
79 private String channelEditor;
80
81 /***
82 * Webmaster to use for RSS feed.
83 */
84 private String channelWebmaster;
85
86 /***
87 * Filepath to write RSS feed to.
88 */
89 private String rssFilepath;
90
91
92
93 /***
94 * List of keywords to filter feeds with
95 */
96 private String keywords;
97
98 /***
99 * Gets number of seconds to wait for regeneration of RSS file.
100 *
101 * @return number of seconds to wait for regeneration of RSS file
102 */
103 public int getGenerateCycle() {
104 return generateCycle;
105 }
106
107 /***
108 * Sets number of seconds to wait for regeneration of RSS file.
109 *
110 * @param generateCycle number of seconds to wait for regeneration of RSS
111 * file
112 */
113 public void setGenerateCycle(int generateCycle) {
114 this.generateCycle = generateCycle;
115 }
116
117 /***
118 * Gets channel description for RSS file.
119 *
120 * @return channel description for RSS file
121 */
122 public String getChannelDescription() {
123 return channelDescription;
124 }
125
126 /***
127 * Sets channel description for RSS file.
128 *
129 * @param channelDescription Description for RSS file
130 */
131 public void setChannelDescription(String channelDescription) {
132 this.channelDescription = channelDescription;
133 }
134
135 /***
136 * Gets link for RSS file.
137 *
138 * @return Link for RSS file
139 */
140 public String getChannelLink() {
141 return channelLink;
142 }
143
144 /***
145 * Sets link for RSS file.
146 *
147 * @param channelLink Link for RSS file
148 */
149 public void setChannelLink(String channelLink) {
150 this.channelLink = channelLink;
151 }
152
153 /***
154 * Gets title for RSS file.
155 *
156 * @return title for RSS file
157 */
158 public String getChannelTitle() {
159 return channelTitle;
160 }
161
162 /***
163 * Sets title for RSS file.
164 *
165 * @param channelTitle title for RSS file
166 */
167 public void setChannelTitle(String channelTitle) {
168 this.channelTitle = channelTitle;
169 }
170
171 /***
172 * Gets copyright ozner for RSS file.
173 *
174 * @return copyright owner for RSS file
175 */
176 public String getChannelCopyright() {
177 return channelCopyright;
178 }
179
180 /***
181 * Sets copyright owner for RSS file.
182 *
183 * @param channelCopyright Copyright owner for RSS file
184 */
185 public void setChannelCopyright(String channelCopyright) {
186 this.channelCopyright = channelCopyright;
187 }
188
189 /***
190 * Gets editor for RSS file.
191 *
192 * @return Gets editor for RSS file
193 */
194 public String getChannelEditor() {
195 return channelEditor;
196 }
197
198 /***
199 * Sets channel editor for RSS file.
200 *
201 * @param channelEditor Editor for RSS file
202 */
203 public void setChannelEditor(String channelEditor) {
204 this.channelEditor = channelEditor;
205 }
206
207 /***
208 * Gets webmaster for RSS file.
209 *
210 * @return webmaster for RSS file
211 */
212 public String getChannelWebmaster() {
213 return channelWebmaster;
214 }
215
216 /***
217 * Sets webmaster for RSS file.
218 *
219 * @param channelWebmaster Webmaster for RSS file
220 */
221 public void setChannelWebmaster(String channelWebmaster) {
222 this.channelWebmaster = channelWebmaster;
223 }
224
225 /***
226 * @return Returns the proxyHost.
227 */
228 public String getProxyHost() {
229 return proxyHost;
230 }
231
232 /***
233 * @param proxyHost The proxyHost to set.
234 */
235 public void setProxyHost(String proxyHost) {
236 this.proxyHost = proxyHost;
237 }
238
239 /***
240 * @return Returns the proxyPort.
241 */
242 public String getProxyPort() {
243 return proxyPort;
244 }
245
246 /***
247 * @param proxyPort The proxyPort to set.
248 */
249 public void setProxyPort(String proxyPort) {
250 this.proxyPort = proxyPort;
251 }
252
253 /***
254 * @return Returns the scanCycle.
255 */
256 public int getScanCycle() {
257 return scanCycle;
258 }
259
260 /***
261 * @param scanCycle The scanCycle to set.
262 */
263 public void setScanCycle(int scanCycle) {
264 this.scanCycle = scanCycle;
265 }
266
267 /***
268 * @return Returns the isProxyEnabled.
269 */
270 public boolean isProxyEnabled() {
271 return isProxyEnabled;
272 }
273
274 /***
275 * @param isProxyEnabled The isProxyEnabled to set.
276 */
277 public void setProxyEnabled(boolean isProxyEnabled) {
278 this.isProxyEnabled = isProxyEnabled;
279 }
280
281 /***
282 * Gets path to write the generated RSS to.
283 *
284 * @return path to write RSS file to
285 */
286 public String getRssFilepath() {
287 return rssFilepath;
288 }
289
290 /***
291 * Sets path to write the generated RSS to.
292 *
293 * @param rssFilepath to write RSS file to
294 */
295 public void setRssFilepath(String rssFilepath) {
296 this.rssFilepath = rssFilepath;
297
298 }
299
300
301
302 /***
303 * @return keywords
304 */
305 public String getKeywords() {
306 return keywords;
307 }
308
309 /***
310 * @param keywords String
311 */
312 public void setKeywords(String keywords) {
313 this.keywords = keywords;
314 }
315
316 /***
317 *
318 * @return ChannelImage
319 */
320 public String getChannelImage() {
321 return channelImage;
322 }
323 /***
324 *
325 * @param channelImage is the channelImage to be set
326 */
327 public void setChannelImage(String channelImage) {
328 this.channelImage = channelImage;
329 }
330 }
331
332 /***
333 * $Log: FeederDaemonConfig.java,v $
334 * Revision 1.3 2005/12/20 15:36:45 shally
335 * CheckStyle and PMD changes.
336 *
337 * Revision 1.2 2005/09/01 09:38:55 bavo_jcs
338 * Added logo
339 *
340 * Revision 1.1 2005/08/26 07:58:29 ge0ffrey
341 * split up the sources in service, serviceimpl and webclient
342 *
343 * Revision 1.4 2005/08/17 09:09:31 schauwvliege
344 * Fixed all unit tests
345 *
346 * Revision 1.3 2005/06/14 12:05:52 schauwvliege
347 * CheckStyle and fixing tests
348 *
349 * Revision 1.2 2005/06/09 08:18:43 bejug_cc
350 * Fix initial import
351 *
352 * Revision 1.3 2005/06/07 13:03:10 bbr
353 * Keyword filtering
354 *
355 * Revision 1.2 2005/05/24 11:52:39 bbr
356 * Using spring sheduling
357 *
358 * Revision 1.1 2005/05/23 17:04:57 sja
359 * Moved to org.bejug.javacareers.feeder package.
360 *
361 * Revision 1.1 2005/05/23 08:46:33 PSONG09
362 * added feeder source files to project
363 *
364 * Revision 1.3 2005/05/23 07:15:49 stephan_janssen
365 * Code cleanup.
366 *
367 * Revision 1.2 2005/05/20 14:41:46 bavo_jcs
368 * minor changes
369 *
370 * Revision 1.1 2005/05/11 14:25:23 bavo_jcs
371 * - renamed main files
372 *
373 * Revision 1.5 2005/05/11 11:53:25 bavo_jcs
374 * refactored
375 * - conform to conventions
376 * - some javadoc
377 * - Added FeederTask design
378 *
379 * Revision 1.4 2005/05/10 16:04:01 bavo_jcs
380 * cleanup
381 *
382 * Revision 1.3 2005/05/10 11:32:49 bavo_jcs
383 * integrated with services from JavaCareers Web
384 *
385 * Revision 1.2 2005/05/09 15:48:44 bavo_jcs
386 * added RSS generator
387 * cleanup/javadoc TODO
388 *
389 * Revision 1.1.1.1 2005/04/26 14:13:48 stephan_janssen
390 * Initial import
391 *
392 * Revision 1.1.1.1 2005/04/26 12:58:26 sja
393 * Initial Release
394 *
395 * Revision 1.1.1.1 2005/04/26 12:51:21 sja
396 * Initial Release
397 *
398 */