dods.servlet
Class ServiceInitializer

java.lang.Object
  |
  +--javax.servlet.GenericServlet
        |
        +--javax.servlet.http.HttpServlet
              |
              +--dods.servlet.ServiceInitializer
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class ServiceInitializer
extends javax.servlet.http.HttpServlet

This servlet serves as container for any initialization parameters required by the service dispatcher. Currently only two parameters, DDScache and DAScache, is required. Make the following entry in the SOAP web.xml file:

   <:servlet>
     <servlet-name>serviceinitializer</servlet-name>
     <display-name>OPeNDAP Services Initializer</display-name>
     <description>Stores parameters used by the service dispatcher.</description>
     <servlet-class>dods.servlet.ServiceInitializer</servlet-class>
     <init-param>
        <param-name>DDScache</param-name>
        <param-value>/Java-DODS/sdds-testsuite/dds/</param-value>
     </init-param>
     <init-param>
        <param-name>DAScache</param-name>
        <param-value>/Java-DODS/sdds-testsuite/das/</param-value>
     </init-param>
     <load-on-startup> 1 </load-on-startup>
   </servlet>
 
The actual values of the parameter will depend on your particular file system.

See Also:
Serialized Form

Constructor Summary
ServiceInitializer()
           
 
Method Summary
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          currently does nothing
static java.lang.String getDAScache()
           
static java.lang.String getDDScache()
           
 void init()
           
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPost, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletInfo, getServletName, init, log, log
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ServiceInitializer

public ServiceInitializer()
Method Detail

init

public void init()
          throws javax.servlet.ServletException
Overrides:
init in class javax.servlet.GenericServlet
javax.servlet.ServletException

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws javax.servlet.ServletException
currently does nothing

Overrides:
doGet in class javax.servlet.http.HttpServlet
javax.servlet.ServletException

getDDScache

public static java.lang.String getDDScache()

getDAScache

public static java.lang.String getDAScache()