mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
*) 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:
parent
7197f171d3
commit
6d73c6b481
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
13
htroot/QuickCrawlLink_p.xml
Normal file
13
htroot/QuickCrawlLink_p.xml
Normal 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>
|
Loading…
Reference in New Issue
Block a user