source: nutchez-0.1/plugins/response-json/plugin.xml @ 177

Last change on this file since 177 was 66, checked in by waue, 15 years ago

NutchEz - an easy way to nutch

File size: 2.4 KB
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!--
3 Licensed to the Apache Software Foundation (ASF) under one or more
4 contributor license agreements.  See the NOTICE file distributed with
5 this work for additional information regarding copyright ownership.
6 The ASF licenses this file to You under the Apache License, Version 2.0
7 (the "License"); you may not use this file except in compliance with
8 the License.  You may obtain a copy of the License at
9
10     http://www.apache.org/licenses/LICENSE-2.0
11
12 Unless required by applicable law or agreed to in writing, software
13 distributed under the License is distributed on an "AS IS" BASIS,
14 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 See the License for the specific language governing permissions and
16 limitations under the License.
17-->
18<!--
19 ! JSON-lib is a java library for transforming beans, maps, collections, java
20 ! arrays and XML to JSON and back again.  EZMorph is one of its dependencies.
21 ! Both are licensed under the apache license.
22 !
23 ! JSON-lib Project: http://json-lib.sourceforge.net/index.html
24 ! JSON-lib Download: http://sourceforge.net/project/showfiles.php?group_id=171425
25 ! License: http://json-lib.sourceforge.net/license.html
26 !
27 ! EZMorph Project: http://ezmorph.sourceforge.net/license.html
28 ! EZMorph Download: http://sourceforge.net/project/showfiles.php?group_id=174866
29 ! License: http://ezmorph.sourceforge.net/license.html
30 !-->
31<plugin
32   id="response-json"
33   name="JSON Response Writer Plug-in"
34   version="1.0.0"
35   provider-name="nutch.org">
36
37   <runtime>
38      <library name="response-json.jar">
39         <export name="*"/>
40      </library>
41      <library name="ezmorph-1.0.6.jar"/>
42      <library name="json-lib-2.2.2-jdk15.jar"/>
43   </runtime>
44
45   <requires>
46      <import plugin="nutch-extensionpoints"/>
47   </requires>
48
49   <extension id="org.apache.nutch.searcher.response"
50              name="ResponseWriter"
51              point="org.apache.nutch.searcher.response.ResponseWriter">
52
53      <implementation id="org.apache.nutch.searcher.response.json.JSONResponseWriter"
54        class="org.apache.nutch.searcher.response.json.JSONResponseWriter">
55        <parameter name="responseType" value="json"/>
56        <!--<parameter name="contentType" value="application/json"/>-->
57        <parameter name="contentType" value="text/plain"/>
58      </implementation>
59
60   </extension>
61
62</plugin>
Note: See TracBrowser for help on using the repository browser.