|
|||||||||||
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
project.biota.servlet.DiGIRProviderServlet
The servlet of the Biota DiGIR Provider. The servlet delegate all the work to DiGIRRequestHandler to process the DiGIR query.
To plug in a custom servlet to run this application, do the following:
- call BiotaUtils.initializeResources()
in the
contextInitialized()
method of the servet's ServletContextListner class
- invoke the DiGIRRequestHandler.processDiGIRQuery()
method whenever the
servlet's doPost()/doGet() methods are called during the lifetime of the servlet
DiGIRRequestHandler
,
Serialized FormConstructor Summary | |
DiGIRProviderServlet()
|
Method Summary | |
void |
destroy()
Called by the servlet container to indicate to a servlet that the servlet is being taken out of service. |
void |
doGet(HttpServletRequest request,
HttpServletResponse response)
Called by the server (via the service method) to allow a servlet to handle a GET request. |
void |
doPost(HttpServletRequest request,
HttpServletResponse response)
Called by the server (via the service method) to allow a servlet to handle a POST request. |
void |
init()
Called by the servlet container to indicate to a servlet that the servlet is being placed into service. |
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 DiGIRProviderServlet()
Method Detail |
public void init() throws ServletException
ServletException
- if an exception has occurred that interferes with
the servlet's normal operationpublic void destroy()
public void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
request
- the HttpServletRequest received by the servletresponse
- the HttpServletResponse of the servlet
ServletException
- if the request for the GET could not be handled
IOException
- if an input or output error is detected when the
servlet handles the GET requestdoPost(HttpServletRequest, HttpServletResponse)
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
DiGIRRequestHandler.processDiGIRQuery()
to do the work.
request
- the HttpServletRequest received by the servletresponse
- the HttpServletResponse of the servlet
ServletException
- if the request for the POST could not be handled
IOException
- if an input or output error is detected when the
servlet handles the POST request
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |