01: /*
02: * regain - A file search engine providing plenty of formats
03: * Copyright (C) 2004 Til Schneider
04: *
05: * This library is free software; you can redistribute it and/or
06: * modify it under the terms of the GNU Lesser General Public
07: * License as published by the Free Software Foundation; either
08: * version 2.1 of the License, or (at your option) any later version.
09: *
10: * This library is distributed in the hope that it will be useful,
11: * but WITHOUT ANY WARRANTY; without even the implied warranty of
12: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13: * Lesser General Public License for more details.
14: *
15: * You should have received a copy of the GNU Lesser General Public
16: * License along with this library; if not, write to the Free Software
17: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18: *
19: * Contact: Til Schneider, info@murfman.de
20: *
21: * CVS information:
22: * $RCSfile$
23: * $Source$
24: * $Date: 2004-11-10 16:08:52 +0100 (Mi, 10 Nov 2004) $
25: * $Author: til132 $
26: * $Revision: 10 $
27: */
28: package net.sf.regain.crawler.config;
29:
30: /**
31: * Enthält die Daten einer Start-URL.
32: * <p>
33: * Eine Start-URL ist ein Startpunkt an dem der Crawler-Prozeß beginnt.
34: *
35: * @author Til Schneider, www.murfman.de
36: */
37: public class StartUrl {
38:
39: /** Die URL des zu bearbeitenden Dokuments. */
40: private String mUrl;
41: /** Gibt an, ob das Dokument nach weiteren URLs durchsucht werden soll. */
42: private boolean mShouldBeParsed;
43: /** Gibt an, ob das Dokument indiziert werden soll. */
44: private boolean mShouldBeIndexed;
45:
46: /**
47: * Creates a new instance of StartUrl.
48: *
49: * @param url Die URL des zu bearbeitenden Dokuments.
50: * @param shouldBeParsed Gibt an, ob das Dokument nach weiteren URLs
51: * durchsucht werden soll.
52: * @param shouldBeIndexed Gibt an, ob das Dokument indiziert werden soll.
53: */
54: public StartUrl(String url, boolean shouldBeParsed,
55: boolean shouldBeIndexed) {
56: mUrl = url;
57: mShouldBeParsed = shouldBeParsed;
58: mShouldBeIndexed = shouldBeIndexed;
59: }
60:
61: /**
62: * Gibt die URL des zu bearbeitenden Dokuments zurück.
63: *
64: * @return Die URL des zu bearbeitenden Dokuments.
65: */
66: public String getUrl() {
67: return mUrl;
68: }
69:
70: /**
71: * Gibt zurück, ob das Dokument nach weiteren URLs durchsucht werden soll.
72: *
73: * @return Ob das Dokument nach weiteren URLs durchsucht werden soll.
74: */
75: public boolean getShouldBeParsed() {
76: return mShouldBeParsed;
77: }
78:
79: /**
80: * Gibt zurück, ob das Dokument indiziert werden soll.
81: *
82: * @return Ob das Dokument indiziert werden soll.
83: */
84: public boolean getShouldBeIndexed() {
85: return mShouldBeIndexed;
86: }
87:
88: }
|