Source Code Cross Referenced for CrawlerJob.java in  » Search-Engine » regain » net » sf » regain » crawler » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Search Engine » regain » net.sf.regain.crawler 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /*
002:         * regain - A file search engine providing plenty of formats
003:         * Copyright (C) 2004  Til Schneider
004:         *
005:         * This library is free software; you can redistribute it and/or
006:         * modify it under the terms of the GNU Lesser General Public
007:         * License as published by the Free Software Foundation; either
008:         * version 2.1 of the License, or (at your option) any later version.
009:         *
010:         * This library is distributed in the hope that it will be useful,
011:         * but WITHOUT ANY WARRANTY; without even the implied warranty of
012:         * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
013:         * Lesser General Public License for more details.
014:         *
015:         * You should have received a copy of the GNU Lesser General Public
016:         * License along with this library; if not, write to the Free Software
017:         * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
018:         *
019:         * Contact: Til Schneider, info@murfman.de
020:         *
021:         * CVS information:
022:         *  $RCSfile$
023:         *   $Source$
024:         *     $Date: 2004-11-10 16:08:52 +0100 (Mi, 10 Nov 2004) $
025:         *   $Author: til132 $
026:         * $Revision: 10 $
027:         */
028:        package net.sf.regain.crawler;
029:
030:        /**
031:         * Hilfsklasse für den Crawler.
032:         * <p>
033:         * Enthält alle Daten, die für die Bearbeitung einer URL nötig sind.
034:         * <p>
035:         * Der Crawler erzeugt für jede akzeptierte URL eine CrawlerJob-Instanz, die dann
036:         * nacheinander abgearbeitet werden.
037:         *
038:         * @author Til Schneider, www.murfman.de
039:         */
040:        public class CrawlerJob {
041:
042:            /** Die URL des zu bearbeitenden Dokuments. */
043:            private String mUrl;
044:            /**
045:             * Die URL des Dokuments, in dem die URL des zu bearbeitenden Dokuments
046:             * gefunden wurde.
047:             */
048:            private String mSourceUrl;
049:            /**
050:             * Der Text des Links in dem die URL gefunden wurde. Ist <code>null</code>,
051:             * falls die URL nicht in einem Link (also einem a-Tag) gefunden wurde oder
052:             * wenn aus sonstigen Gründen kein Link-Text vorhanden ist.
053:             */
054:            private String mSourceLinkText;
055:            /** Gibt an, ob das Dokument nach weiteren URLs durchsucht werden soll. */
056:            private boolean mShouldBeParsed;
057:            /** Gibt an, ob das Dokument indiziert werden soll. */
058:            private boolean mShouldBeIndexed;
059:
060:            /**
061:             * Erzeugt eine neue CrawlerJob-Instanz.
062:             *
063:             * @param url Die URL des zu bearbeitenden Dokuments.
064:             * @param sourceUrl Die URL des Dokuments, in dem die URL des zu bearbeitenden
065:             *        Dokuments gefunden wurde.
066:             * @param sourceLinkText Der Text des Links in dem die URL gefunden wurde. Ist
067:             *        <code>null</code>, falls die URL nicht in einem Link (also einem
068:             *        a-Tag) gefunden wurde oder wenn aus sonstigen Gründen kein Link-Text
069:             *        vorhanden ist.
070:             * @param shouldBeParsed Gibt an, ob das Dokument nach weiteren URLs
071:             *        durchsucht werden soll.
072:             * @param shouldBeIndexed Gibt an, ob das Dokument indiziert werden soll.
073:             */
074:            public CrawlerJob(String url, String sourceUrl,
075:                    String sourceLinkText, boolean shouldBeParsed,
076:                    boolean shouldBeIndexed) {
077:                mUrl = url;
078:                mSourceUrl = sourceUrl;
079:                mSourceLinkText = sourceLinkText;
080:                mShouldBeParsed = shouldBeParsed;
081:                mShouldBeIndexed = shouldBeIndexed;
082:            }
083:
084:            /**
085:             * Gibt die URL des zu bearbeitenden Dokuments zurück.
086:             *
087:             * @return Die URL des zu bearbeitenden Dokuments.
088:             */
089:            public String getUrl() {
090:                return mUrl;
091:            }
092:
093:            /**
094:             * Gibt Die URL des Dokuments zurück, in dem die URL des zu bearbeitenden
095:             * Dokuments gefunden wurde.
096:             *
097:             * @return Die URL des Dokuments, in dem die URL des zu bearbeitenden
098:             *         Dokuments gefunden wurde.
099:             */
100:            public String getSourceUrl() {
101:                return mSourceUrl;
102:            }
103:
104:            /**
105:             * Gibt den Text des Links zurück in dem die URL gefunden wurde.
106:             * <p>
107:             * Ist <code>null</code>, falls die URL nicht in einem Link (also einem a-Tag)
108:             * gefunden wurde oder wenn aus sonstigen Gründen kein Link-Text vorhanden ist.
109:             *
110:             * @return Der Text des Links zurück in dem die URL gefunden wurde.
111:             */
112:            public String getSourceLinkText() {
113:                return mSourceLinkText;
114:            }
115:
116:            /**
117:             * Gibt zurück, ob das Dokument nach weiteren URLs durchsucht werden soll.
118:             *
119:             * @return Ob das Dokument nach weiteren URLs durchsucht werden soll.
120:             */
121:            public boolean shouldBeParsed() {
122:                return mShouldBeParsed;
123:            }
124:
125:            /**
126:             * Gibt zurück, ob das Dokument indiziert werden soll.
127:             *
128:             * @return Ob das Dokument indiziert werden soll.
129:             */
130:            public boolean shouldBeIndexed() {
131:                return mShouldBeIndexed;
132:            }
133:
134:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.