Java Doc for EnginePrefs.java in  » Search-Engine » BDDBot » bdd » search » 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 » BDDBot » bdd.search 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   bdd.search.EnginePrefs

EnginePrefs
public class EnginePrefs (Code)
Written by Tim Macinta 1997
Distributed under the GNU Public License (a copy of which is enclosed with the source).

Encapsulates the preferences for the crawler and the search engine.


Field Summary
 Stringemail_address
    
 Vectorexcluded
    
 booleanfilter_cgi
    
 Filefooter
    
 Fileheader
    
 Hashtablehosts
    
 Vectorincluded
    
 Filemain_dir
    
 Filemain_index
    
 Monitormonitor
    
 Filenotfound
    
public  intpause_time
     The time to pause between URL fetches (in seconds).
public static  intport
    
 Filerules
    
 Fileurl_list
    
 Stringuser_agent
    
 Fileworking_dir
    

Constructor Summary
public  EnginePrefs()
    

Method Summary
public  booleanURLAllowed(URL url)
     Returns true if "url" is allowed to be indexed and false otherwise.
public  booleanURLNotIndexable(URL url)
     Returns true if this URL represents a file type that is not indexable.
public  StringgetEmailAddress()
    
public  FilegetFooterFile()
    
public  FilegetHeaderFile()
    
public  FilegetMainDir()
    
public  FilegetMainIndex()
    
public  MonitorgetMonitor()
    
public  FilegetNotFoundFile()
    
public  FilegetRulesFile()
     The rules file contains rules which determine what URLs are allowed and what URLs whould be excluded.
public  FilegetStartingFile()
    
public  StringgetUserAgent()
    
public  FilegetWorkingDir()
     Returns the working directory for use by a crawler.
public  voidpauseBetweenURLs()
     Pauses for the amount of time that has been specified for pausing between URL fetches.
public  voidreadRobotsDotText(String host, int port)
     Reads the "robots.txt" file on the given host and uses the results to determine what files on "host" are crawlable.
public  voidreadRulesFile()
     Causes the inclusion/exclusion rules to be read.

Field Detail
email_address
String email_address(Code)



excluded
Vector excluded(Code)



filter_cgi
boolean filter_cgi(Code)



footer
File footer(Code)



header
File header(Code)



hosts
Hashtable hosts(Code)



included
Vector included(Code)



main_dir
File main_dir(Code)



main_index
File main_index(Code)



monitor
Monitor monitor(Code)



notfound
File notfound(Code)



pause_time
public int pause_time(Code)
The time to pause between URL fetches (in seconds).



port
public static int port(Code)



rules
File rules(Code)



url_list
File url_list(Code)



user_agent
String user_agent(Code)



working_dir
File working_dir(Code)




Constructor Detail
EnginePrefs
public EnginePrefs()(Code)




Method Detail
URLAllowed
public boolean URLAllowed(URL url)(Code)
Returns true if "url" is allowed to be indexed and false otherwise.



URLNotIndexable
public boolean URLNotIndexable(URL url)(Code)
Returns true if this URL represents a file type that is not indexable.



getEmailAddress
public String getEmailAddress()(Code)



getFooterFile
public File getFooterFile()(Code)



getHeaderFile
public File getHeaderFile()(Code)



getMainDir
public File getMainDir()(Code)



getMainIndex
public File getMainIndex()(Code)



getMonitor
public Monitor getMonitor()(Code)



getNotFoundFile
public File getNotFoundFile()(Code)



getRulesFile
public File getRulesFile()(Code)
The rules file contains rules which determine what URLs are allowed and what URLs whould be excluded. A line that is in the form:
 include http://gsd.mit.edu/
 
will cause all URLs that start with "http://gsd.mit.edu/" to be included. Similarly, to exclude URLs, use the keyword "exclude" instead of "include". Blank lines and lines starting with "#" are ignored.

When an URL is checked against the inclusion/exclusion rules the exclusion rules are checked first and if the URL matches an exclusion rule it is not included. If an URL is not covered by either rule it is not included, unless it is a "file://" URL in which case it is included by default.




getStartingFile
public File getStartingFile()(Code)



getUserAgent
public String getUserAgent()(Code)



getWorkingDir
public File getWorkingDir()(Code)
Returns the working directory for use by a crawler. If more than one crawler is running at the same time they should be given different working directories.



pauseBetweenURLs
public void pauseBetweenURLs()(Code)
Pauses for the amount of time that has been specified for pausing between URL fetches.



readRobotsDotText
public void readRobotsDotText(String host, int port)(Code)
Reads the "robots.txt" file on the given host and uses the results to determine what files on "host" are crawlable.



readRulesFile
public void readRulesFile() throws IOException(Code)
Causes the inclusion/exclusion rules to be read. This method should be called if the rules file is changed.



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.