[Schmitzm-commits] r1320 - trunk/src/skrueger
scm-commit@wald.intevation.org
scm-commit at wald.intevation.org
Wed Dec 1 02:15:00 CET 2010
Author: alfonx
Date: 2010-12-01 02:14:59 +0100 (Wed, 01 Dec 2010)
New Revision: 1320
Modified:
trunk/src/skrueger/Sitemap.java
Log:
Modified: trunk/src/skrueger/Sitemap.java
===================================================================
--- trunk/src/skrueger/Sitemap.java 2010-12-01 01:09:52 UTC (rev 1319)
+++ trunk/src/skrueger/Sitemap.java 2010-12-01 01:14:59 UTC (rev 1320)
@@ -33,7 +33,13 @@
*/
public class Sitemap {
- static String[] SEARCHENGINES = new String[] { "http://www.sitemapwriter.com/notify.php?crawler=all&url=" };
+ static String[] SEARCHENGINES = new String[] {
+ "http://www.sitemapwriter.com/notify.php?crawler=all&url=",
+ "http://submissions.ask.com/ping?sitemap=",
+ "http://www.google.com/webmasters/tools/ping?sitemap=",
+ "http://api.moreover.com/ping?u=",
+ "http://www.bing.com/webmaster/ping.aspx?siteMap=",
+ "http://search.yahooapis.com/SiteExplorerService/V1/ping?sitemap=" };
final static Logger log = Logger.getLogger(Sitemap.class);
@@ -181,14 +187,14 @@
return size;
}
- public static void submitToSearchEngines(String urlToSitemap) {
+ public static void submitToSearchEngines(String urlToSitemap) {
for (String se : SEARCHENGINES) {
log.info("Submitting " + urlToSitemap + " to " + se);
try {
URL url = new URL(se + urlToSitemap);
-
+
url.openConnection().connect();
-
+
} catch (Exception e) {
log.error("failed to submit " + urlToSitemap + " to " + se, e);
}
More information about the Schmitzm-commits
mailing list