Changeset 29687 for main/trunk

Show
Ignore:
Timestamp:
16.01.2015 13:24:57 (5 years ago)
Author:
jts21
Message:

Split greenstone servlets into another file (servlets.xml) which is included in web.xml as an XML entity

Location:
main/trunk/greenstone3/web/WEB-INF
Files:
1 added
1 modified

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/WEB-INF/web.xml

    r28296 r29687  
    11<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?> 
     2<!DOCTYPE web-xml [ 
     3    <!ENTITY servlets-config SYSTEM "servlets.xml"> 
     4]> 
    25<!-- this is based on a sample web.xml file provided by  
    36http://jakarta.apache.org/tomcat/tomcat-4.0-doc/appdev/web.xml.txt 
     
    8487    </servlet> 
    8588   
    86    
    87     <servlet> 
    88         <servlet-name>library</servlet-name> 
    89         <description>The standard gsdl3 library program</description> 
    90         <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    91         <init-param> 
    92             <param-name>library_name</param-name> 
    93             <param-value>library</param-value> 
    94         </init-param> 
    95         <init-param> 
    96             <param-name>site_name</param-name> 
    97             <param-value>localsite</param-value> 
    98         </init-param> 
    99         <init-param> 
    100             <param-name>interface_name</param-name> 
    101             <param-value>default</param-value> 
    102         </init-param> 
    103         <init-param> 
    104             <param-name>receptionist_class</param-name> 
    105             <param-value>DefaultReceptionist</param-value> 
    106         </init-param> 
    107         <init-param> 
    108             <param-name>default_lang</param-name> 
    109             <param-value>en</param-value> 
    110         </init-param> 
    111     </servlet> 
    112    
    113     <servlet> 
    114         <servlet-name>gs2-library</servlet-name> 
    115         <description>Greenstone 2 lookalike library program: uses localsite with the gs2 interface</description> 
    116         <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    117         <init-param> 
    118             <param-name>library_name</param-name> 
    119             <param-value>gs2-library</param-value> 
    120         </init-param> 
    121         <init-param> 
    122             <param-name>site_name</param-name> 
    123             <param-value>localsite</param-value> 
    124         </init-param> 
    125         <init-param> 
    126             <param-name>interface_name</param-name> 
    127             <param-value>gs2</param-value> 
    128         </init-param> 
    129         <init-param> 
    130             <param-name>default_lang</param-name> 
    131             <param-value>en</param-value> 
    132         </init-param> 
    133         <init-param> 
    134             <param-name>session_expiration</param-name> 
    135             <param-value>1800</param-value> 
    136         </init-param> 
    137         <init-param> 
    138             <param-name>params_class</param-name> 
    139             <param-value>GS2Params</param-value> 
    140         </init-param> 
    141     </servlet> 
    142    
    143     <servlet> 
    144         <servlet-name>nzdl-library</servlet-name> 
    145         <description>gsdl3 library program</description> 
    146         <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    147         <init-param> 
    148             <param-name>library_name</param-name> 
    149             <param-value>nzdl</param-value> 
    150         </init-param> 
    151         <init-param> 
    152             <param-name>site_name</param-name> 
    153             <param-value>nzdl</param-value> 
    154         </init-param> 
    155         <init-param> 
    156             <param-name>interface_name</param-name> 
    157             <param-value>nzdl</param-value> 
    158         </init-param> 
    159         <init-param> 
    160             <param-name>default_lang</param-name> 
    161             <param-value>en</param-value> 
    162         </init-param> 
    163         <init-param> 
    164             <param-name>params_class</param-name> 
    165             <param-value>NZDLParams</param-value> 
    166         </init-param> 
    167         <init-param> 
    168             <param-name>session_expiration</param-name> 
    169             <param-value>600</param-value> 
    170         </init-param> 
    171   </servlet> 
    172  
    173     <servlet> 
    174         <servlet-name>gateway</servlet-name> 
    175         <description>gsdl3 library based on gateway site and basic interface. It uses SOAP to talk to localsite</description> 
    176         <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    177         <init-param> 
    178             <param-name>library_name</param-name> 
    179             <param-value>gateway</param-value> 
    180         </init-param> 
    181         <init-param> 
    182             <param-name>site_name</param-name> 
    183             <param-value>gateway</param-value> 
    184         </init-param> 
    185         <init-param> 
    186             <param-name>interface_name</param-name> 
    187             <param-value>basic</param-value> 
    188         </init-param> 
    189         <init-param> 
    190             <param-name>default_lang</param-name> 
    191             <param-value>en</param-value> 
    192         </init-param> 
    193     </servlet> 
    194    
    195     <servlet> 
    196         <servlet-name>basic-library</servlet-name> 
    197         <description>basic gsdl3 library program: uses localsite and the basic interface</description> 
    198         <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class> 
    199         <init-param> 
    200             <param-name>library_name</param-name> 
    201             <param-value>basic-library</param-value> 
    202         </init-param> 
    203         <init-param> 
    204             <param-name>site_name</param-name> 
    205             <param-value>localsite</param-value> 
    206         </init-param> 
    207         <init-param> 
    208             <param-name>interface_name</param-name> 
    209             <param-value>basic</param-value> 
    210         </init-param> 
    211         <init-param> 
    212             <param-name>default_lang</param-name> 
    213             <param-value>en</param-value> 
    214         </init-param> 
    215         <!--<init-param> 
    216             <param-name>allow_client_side_xslt</param-name> 
    217             <param-value>true</param-value> 
    218         </init-param>--> 
    219     </servlet> 
     89    <!-- See servlets.xml --> 
     90    &servlets-config; 
    22091 
    22192    <!-- axis servlets --> 
     
    313184 
    314185    <servlet-mapping> 
    315         <servlet-name>nzdl-library</servlet-name> 
    316         <url-pattern>/nzdl</url-pattern> 
    317     </servlet-mapping> 
    318     <servlet-mapping> 
    319186        <servlet-name>tester</servlet-name> 
    320187        <url-pattern>/testing</url-pattern> 
    321188    </servlet-mapping> 
    322189   
    323     <servlet-mapping> 
    324         <servlet-name>library</servlet-name> 
    325         <url-pattern>/library/*</url-pattern> 
    326     </servlet-mapping> 
    327  
    328     <servlet-mapping> 
    329         <servlet-name>gs2-library</servlet-name> 
    330         <url-pattern>/gs2-library</url-pattern> 
    331     </servlet-mapping> 
    332    
    333     <servlet-mapping> 
    334         <servlet-name>gateway</servlet-name> 
    335         <url-pattern>/gateway</url-pattern> 
    336     </servlet-mapping> 
    337    
    338     <servlet-mapping> 
    339         <servlet-name>basic-library</servlet-name> 
    340         <url-pattern>/basic-library</url-pattern> 
    341     </servlet-mapping> 
    342  
    343190    <servlet-mapping> 
    344191        <servlet-name>grabtext</servlet-name>