|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.GenericServlet
javax.servlet.http.HttpServlet
org.vectorbase.gdav.GdavServlet
public class GdavServlet
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:
Model
-
places bean in context (attribute: 'model') - model.jsp Model
objects with minimal info (attribute: 'models') - models.jsp Model
objects in DB with minimal info (context: models) - models.jsp Submission
(context:submission)
and all models in summary with minimal info (context: models) - submission.jsp Submission
objects (context: submissions) - submissions.jsp DBConnection
ServletInfo
,
Serialized FormConstructor 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 |
---|
public GdavServlet()
Method Detail |
---|
public void init()
ServletInfo
(DB urls and basic config details)
and ConfigInfo
(column links and display configuration),
creates DBConnection
init
in class javax.servlet.GenericServlet
public void destroy()
DBConnection
destroy
in interface javax.servlet.Servlet
destroy
in class javax.servlet.GenericServlet
public void doGet(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doGet
in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException
public void doPost(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response) throws java.io.IOException, javax.servlet.ServletException
doPost
in class javax.servlet.http.HttpServlet
java.io.IOException
javax.servlet.ServletException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |