From c4c410802565a27c9a2037d3c22f76ae384163da Mon Sep 17 00:00:00 2001 From: Eric van der Vlist Date: Fri, 20 Apr 2012 20:39:00 +0200 Subject: [PATCH] Starting to write pipeline actions that interact with an Heritrix server --- .../actions/heritrix-archive-set.xpl | 120 ++++++++++++++++++ archiver/pipelines/config.xml | 9 +- archiver/pipelines/default-log4j.xml | 37 ++++++ archiver/pipelines/post-archive-request.xpl | 2 +- archiver/pipelines/properties.xml | 34 +++++ 5 files changed, 198 insertions(+), 4 deletions(-) create mode 100644 archiver/pipelines/actions/heritrix-archive-set.xpl create mode 100644 archiver/pipelines/default-log4j.xml create mode 100644 archiver/pipelines/properties.xml diff --git a/archiver/pipelines/actions/heritrix-archive-set.xpl b/archiver/pipelines/actions/heritrix-archive-set.xpl new file mode 100644 index 0000000..b3693e4 --- /dev/null +++ b/archiver/pipelines/actions/heritrix-archive-set.xpl @@ -0,0 +1,120 @@ + + + + + + + + + + + + queue.xml + write + xquery + + + / + + + + .xml + + + + + + + + + + + + + + + + + + + + + + + + + + index.xml + + write + document + + + + + + + + + + + + + + + + + + + + Accept + application/xml + + + + + + create + + + + + + + + + + + + diff --git a/archiver/pipelines/config.xml b/archiver/pipelines/config.xml index 1060633..6894fe3 100644 --- a/archiver/pipelines/config.xml +++ b/archiver/pipelines/config.xml @@ -1,10 +1,13 @@ - http://admin@localhost:8080/orbeon/exist/rest/db/ + http://admin@localhost:8080/orbeon/exist/rest/db/ owark/ - + Mozilla/5.0 (compatible; owark/0.3; http://owark.org/) + + https://admin:envierse@localhost:8443/engine + - \ No newline at end of file + diff --git a/archiver/pipelines/default-log4j.xml b/archiver/pipelines/default-log4j.xml new file mode 100644 index 0000000..28dc26f --- /dev/null +++ b/archiver/pipelines/default-log4j.xml @@ -0,0 +1,37 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/archiver/pipelines/post-archive-request.xpl b/archiver/pipelines/post-archive-request.xpl index 41df24a..8ab966c 100644 --- a/archiver/pipelines/post-archive-request.xpl +++ b/archiver/pipelines/post-archive-request.xpl @@ -23,7 +23,7 @@ declare namespace util = "http://exist-db.org/xquery/util"; for $q in /queue return update - insert + insert into $q ]]> diff --git a/archiver/pipelines/properties.xml b/archiver/pipelines/properties.xml new file mode 100644 index 0000000..3dc77fc --- /dev/null +++ b/archiver/pipelines/properties.xml @@ -0,0 +1,34 @@ + + + + + + + + + + + + +