org.cruxframework.crux.tools.crawling
Class CrawlingTool
java.lang.Object
org.cruxframework.crux.tools.crawling.CrawlingTool
public class CrawlingTool
- extends Object
Creates a static version for DHTML pages, to serve to search engines. Follows the specification described here
https://developers.google.com/webmasters/ajax-crawling/
- Author:
- Thiago da Rosa de Bustamante
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CrawlingTool
public CrawlingTool(File outputDir,
int javascriptTime,
String applicationBaseURL)
- Constructor
- Parameters:
outputDir - javascriptTime - applicationBaseURL -
isStopOnErrors
public boolean isStopOnErrors()
- Returns:
setStopOnErrors
public void setStopOnErrors(boolean stopOnErrors)
- Parameters:
stopOnErrors -
createSnapshot
public void createSnapshot(String page,
String escapedFragment)
- Parameters:
page - escapedFragment - path -
createSnapshots
public void createSnapshots()
addSnaphot
public void addSnaphot(String page,
String escapedFragment)
- Parameters:
page - escapedFragment -
loadUrls
public void loadUrls(File urls)
throws IOException
- Parameters:
urls -
- Throws:
IOException
loadURL
protected void loadURL(String line)
createParametersProcessor
protected static ConsoleParametersProcessor createParametersProcessor()
- Returns:
main
public static void main(String[] args)
Copyright © 2014. All rights reserved.