Changeset 15036


Ignore:
Timestamp:
2008-03-04T12:23:18+13:00 (14 years ago)
Author:
xiao
Message:

add servlet/mappings for flax web service

File:
1 edited

Legend:

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

    r14555 r15036  
    99-->
    1010<web-app>
    11 
    12 
    1311  <!-- General description of your web application -->
    14  
    15   <display-name>GSDL3</display-name>
     12  <display-name>Flax</display-name>
    1613  <description>
    17     Greenstone digital library version 3.
    18   </description>
    19  
    20  
     14    Flaxible Language Acquisition Project version 1.0
     15  </description> 
    2116  <!-- Context initialization parameters that define shared
    2217  String constants used within your application, which
     
    4540  </context-param>
    4641 
    47 
    4842  <!-- Servlet definitions for the servlets that make up
    4943  your web application, including initialization
     
    7064  You can define any number of servlets, including zero.
    7165  -->
    72 
    7366  <servlet>
    74     <servlet-name>tester</servlet-name>
    75     <description>a test servlet</description>
    76     <servlet-class>TestServlet</servlet-class>
    77   </servlet>
    78  
    79   <servlet>
    80     <servlet-name>library</servlet-name>
    81     <description>standard gsdl3 library program: uses localsite and the default interface</description>
    82     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
     67    <servlet-name>flax</servlet-name>
     68    <description></description>
     69    <servlet-class>org.greenstone.gsdl3.flax.FlaxServlet</servlet-class>
    8370    <init-param>
    8471      <param-name>library_name</param-name>
    85       <param-value>library</param-value>
     72      <param-value>flax</param-value>
    8673    </init-param>
    8774    <init-param>
    8875      <param-name>site_name</param-name>
    89       <param-value>localsite</param-value>
     76      <param-value>flax</param-value>
    9077    </init-param>
    9178    <init-param>
    9279      <param-name>interface_name</param-name>
    93       <param-value>classic</param-value>
     80      <param-value>flax</param-value>
    9481    </init-param>
    9582    <init-param>
     
    10188      <param-value>1800</param-value>
    10289    </init-param>
    103   </servlet>
    104   <servlet>
    105     <servlet-name>gateway</servlet-name>
    106     <description>gsdl3 library based on gateway site and default interface. It uses SOAP to talk to localsite</description>
    107     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
    108     <init-param>
    109       <param-name>library_name</param-name>
    110       <param-value>gateway</param-value>
    111     </init-param>
    112     <init-param>
    113       <param-name>site_name</param-name>
    114       <param-value>gateway</param-value>
    115     </init-param>
    116     <init-param>
    117       <param-name>interface_name</param-name>
    118       <param-value>default</param-value>
    119     </init-param>
    120     <init-param>
    121       <param-name>default_lang</param-name>
    122       <param-value>en</param-value>
    123     </init-param>
    124   </servlet>
    125  
    126   <servlet>
    127     <servlet-name>classic-library</servlet-name>
    128     <description>Greenstone 2 lookalike library program: uses localsite with the classic interface</description>
    129     <servlet-class>org.greenstone.gsdl3.LibraryServlet</servlet-class>
    130     <init-param>
    131       <param-name>library_name</param-name>
    132       <param-value>classic</param-value>
    133     </init-param>
    134     <init-param>
    135       <param-name>site_name</param-name>
    136       <param-value>localsite</param-value>
    137     </init-param>
    138     <init-param>
    139       <param-name>interface_name</param-name>
    140       <param-value>classic</param-value>
    141     </init-param>
    142     <init-param>
    143       <param-name>default_lang</param-name>
    144       <param-value>en</param-value>
    145     </init-param>
    146     <init-param>
    147       <param-name>params_class</param-name>
    148       <param-value>NZDLParams</param-value>
    149     </init-param>
    150   </servlet>
    151 
    152   <!-- axis servlets -->
    153   <servlet>
    154     <servlet-name>AxisServlet</servlet-name>
    155     <display-name>Apache-Axis Servlet</display-name>
    156     <servlet-class>
    157         org.apache.axis.transport.http.AxisServlet
    158     </servlet-class>
    159   </servlet>
    160 
    161   <servlet>
    162     <servlet-name>AdminServlet</servlet-name>
    163     <display-name>Axis Admin Servlet</display-name>
    164     <servlet-class>
    165         org.apache.axis.transport.http.AdminServlet
    166     </servlet-class>
    167     <load-on-startup>100</load-on-startup>
    168   </servlet>
    169 
    170   <servlet>
    171     <servlet-name>SOAPMonitorService</servlet-name>
    172     <display-name>SOAPMonitorService</display-name>
    173     <servlet-class>
    174         org.apache.axis.monitor.SOAPMonitorService
    175     </servlet-class>
    176     <init-param>
    177       <param-name>SOAPMonitorPort</param-name>
    178       <param-value>5001</param-value>
    179     </init-param>
    180     <load-on-startup>100</load-on-startup>
    181   </servlet>
    182 <servlet>
    183          <servlet-name>oaiserver</servlet-name>
    184      <description>an oai servlet</description>
    185          <servlet-class>org.greenstone.gsdl3.OAIServer</servlet-class>
    186          <init-param>
    187            <param-name>default_lang</param-name>
    188            <param-value>en</param-value>
    189          </init-param>
    190          <init-param>
    191            <param-name>site_name</param-name>
    192            <!-- More than one site name can be specified using the comma separation style: localsite1,localsite2 -->
    193            <param-value>localsite</param-value>
    194          </init-param>
    195 </servlet>
    196 <!--
    197 --> 
     90  </servlet> 
    19891    <!-- Define mappings that are used by the servlet container to
    19992         translate a particular request URI (context-relative) to a
     
    215108         servlet, if you wish to.
    216109    -->
    217     <!--
    218    
    219     <servlet-mapping>
    220       <servlet-name>controller</servlet-name>
    221       <url-pattern>*.do</url-pattern>
    222     </servlet-mapping>
    223 
    224     <servlet-mapping>
    225       <servlet-name>graph</servlet-name>
    226       <url-pattern>/graph</url-pattern>
    227     </servlet-mapping>
    228     -->
    229    
    230 
    231110<servlet-mapping>
    232       <servlet-name>oaiserver</servlet-name>
    233       <url-pattern>/oaiserver</url-pattern>
     111      <servlet-name>flax</servlet-name>
     112      <url-pattern>/flax</url-pattern>
    234113</servlet-mapping>
    235114
    236   <servlet-mapping>
    237     <servlet-name>tester</servlet-name>
    238     <url-pattern>/testing</url-pattern>
    239   </servlet-mapping>
    240  
    241   <servlet-mapping>
    242     <servlet-name>library</servlet-name>
    243     <url-pattern>/library</url-pattern>
    244   </servlet-mapping>
    245  
    246   <servlet-mapping>
    247     <servlet-name>gateway</servlet-name>
    248     <url-pattern>/gateway</url-pattern>
    249   </servlet-mapping>
    250  
    251   <servlet-mapping>
    252     <servlet-name>classic-library</servlet-name>
    253     <url-pattern>/classic</url-pattern>
    254   </servlet-mapping>
    255  
    256   <!-- axis mappings -->
     115<!--********servlets/mappings used by the Flax web service (especially the first one - copied from packages/axis/webapps/axis/WEB-INF/web.xml ****-->
     116  <servlet>
     117    <servlet-name>AxisServlet</servlet-name>
     118    <display-name>Apache-Axis Servlet</display-name>
     119    <servlet-class>
     120        org.apache.axis.transport.http.AxisServlet
     121    </servlet-class>
     122  </servlet>
     123  <servlet>
     124    <servlet-name>AdminServlet</servlet-name>
     125    <display-name>Axis Admin Servlet</display-name>
     126    <servlet-class>
     127        org.apache.axis.transport.http.AdminServlet
     128    </servlet-class>
     129    <load-on-startup>100</load-on-startup>
     130  </servlet>
     131  <servlet>
     132    <servlet-name>SOAPMonitorService</servlet-name>
     133    <display-name>SOAPMonitorService</display-name>
     134    <servlet-class>
     135        org.apache.axis.monitor.SOAPMonitorService
     136    </servlet-class>
     137    <init-param>
     138      <param-name>SOAPMonitorPort</param-name>
     139      <param-value>5001</param-value>
     140    </init-param>
     141    <load-on-startup>100</load-on-startup>
     142  </servlet>
    257143  <servlet-mapping>
    258144    <servlet-name>AxisServlet</servlet-name>
    259145    <url-pattern>/servlet/AxisServlet</url-pattern>
    260146  </servlet-mapping>
    261 
    262147  <servlet-mapping>
    263148    <servlet-name>AxisServlet</servlet-name>
    264149    <url-pattern>*.jws</url-pattern>
    265150  </servlet-mapping>
    266 
    267151  <servlet-mapping>
    268152    <servlet-name>AxisServlet</servlet-name>
    269153    <url-pattern>/services/*</url-pattern>
    270154  </servlet-mapping>
    271 
    272   <!-- uncomment this if you want to use the SOAPMonitorService. You will also
    273   need to copy the SOAPMonitorApplet*.class files from
    274   gsdl3/comms/soap/axis/web/WEB-INF/classes to the gsdl3/web directory. See the
    275   comms/soap/axis/docs/install.html Appendix for details about how to use this -->
    276   <!--
    277155  <servlet-mapping>
    278156    <servlet-name>SOAPMonitorService</servlet-name>
    279157    <url-pattern>/SOAPMonitor</url-pattern>
    280158  </servlet-mapping>
    281   -->
    282   <!-- uncomment this if you want the admin servlet -->
    283   <!--
     159 
    284160  <servlet-mapping>
    285     <servlet-name>AdminServlet</servlet-name>
    286     <url-pattern>/servlet/AdminServlet</url-pattern>
     161    <servlet-name>AxisServlet</servlet-name>
     162    <url-pattern>/flax/*</url-pattern>
    287163  </servlet-mapping>
    288   -->
    289 
     164  <!--********end of Servlet mappings used by Flax web service ***************************-->
     165 
    290166  <!-- Define the default session timeout for your application,
    291167  in minutes.  From a servlet or JSP page, you can modify
Note: See TracChangeset for help on using the changeset viewer.