*) adding xml version for QuickCrawlLink_p.java (used by yacybar)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1465 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
theli 2006-01-27 15:36:42 +00:00
parent 7197f171d3
commit 6d73c6b481
2 changed files with 17 additions and 0 deletions

View File

@ -135,6 +135,7 @@ public class QuickCrawlLink_p {
crawlingStartURL = new URL(crawlingStart);
} catch (MalformedURLException e) {
prop.put("mode_status", 1);
prop.put("mode_code", "1");
return prop;
}
@ -165,6 +166,7 @@ public class QuickCrawlLink_p {
} catch (Exception e) {
// mist
prop.put("mode_status", 2);//Error with url
prop.put("mode_code","2");
prop.put("mode_status_error", e.getMessage());
return prop;
}
@ -183,8 +185,10 @@ public class QuickCrawlLink_p {
// validate rejection reason
if (reasonString == null) {
prop.put("mode_status", 0);//start msg
prop.put("mode_code","0");
} else {
prop.put("mode_status", 3);//start msg
prop.put("mode_code","3");
prop.put("mode_status_error", reasonString);
}

View File

@ -0,0 +1,13 @@
<?xml version="1.0"?>
<QuickCrawlLink>
#(mode)#::
<title>#[title]#</title>
<url>#[url]#</url>
<status code="#[code]#">#(status)#URL successfully added to Crawler Queue
::Malformed URL
::Unable to create new crawling profile for URL: #[error]#
::Unable to add URL to crawler queue: #[error]#
#(/status)#
</status>
#(/mode)#
</QuickCrawlLink>