org.vectorbase.gdav
Class GdavServlet

java.lang.Object
  extended by javax.servlet.GenericServlet
      extended by javax.servlet.http.HttpServlet
          extended by org.vectorbase.gdav.GdavServlet
All Implemented Interfaces:
java.io.Serializable, javax.servlet.Servlet, javax.servlet.ServletConfig

public class GdavServlet
extends javax.servlet.http.HttpServlet

the main servlet, receives initial request from user, sets up connections to the DB and provides a simple search function.
by default handles get requests as follows:

Author:
seth.redmond@imperial.ac.uk Seth Redmond
See Also:
ServletInfo, Serialized Form

Constructor Summary
GdavServlet()
           
 
Method Summary
 void destroy()
          severs DBConnection, calls parent destroy method DBConnection
 void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          handles get calls (see intro)
 void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response)
          handle post calls (returns default welcome page)
 void init()
          reads in configFiles: ServletInfo (DB urls and basic config details) and ConfigInfo (column links and display configuration), creates DBConnection
prints errors, if any, to log
 
Methods inherited from class javax.servlet.http.HttpServlet
doDelete, doHead, doOptions, doPut, doTrace, getLastModified, service, service
 
Methods inherited from class javax.servlet.GenericServlet
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

GdavServlet

public GdavServlet()
Method Detail

init

public void init()
reads in configFiles: ServletInfo (DB urls and basic config details) and ConfigInfo (column links and display configuration), creates DBConnection
prints errors, if any, to log

Overrides:
init in class javax.servlet.GenericServlet

destroy

public void destroy()
severs DBConnection, calls parent destroy method DBConnection

Specified by:
destroy in interface javax.servlet.Servlet
Overrides:
destroy in class javax.servlet.GenericServlet

doGet

public void doGet(javax.servlet.http.HttpServletRequest request,
                  javax.servlet.http.HttpServletResponse response)
           throws java.io.IOException,
                  javax.servlet.ServletException
handles get calls (see intro)

Overrides:
doGet in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException

doPost

public void doPost(javax.servlet.http.HttpServletRequest request,
                   javax.servlet.http.HttpServletResponse response)
            throws java.io.IOException,
                   javax.servlet.ServletException
handle post calls (returns default welcome page)

Overrides:
doPost in class javax.servlet.http.HttpServlet
Throws:
java.io.IOException
javax.servlet.ServletException