project.biota.digir
Class DiGIRRequestHandler

java.lang.Object
  extended byproject.biota.digir.DiGIRRequestHandler

public class DiGIRRequestHandler
extends Object

DiGIRRequestHandler is a static class that handles all the DiGIR query passed in by the servlet. It dispatches the request to an appropriate handler and writes the response to the HttpServletResponse object.

Author:
Kimmy Lin

Method Summary
static void processDiGIRQuery(HttpServletRequest request, HttpServletResponse response)
          Processes the DiGIR request passed in by the servlet.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

processDiGIRQuery

public static void processDiGIRQuery(HttpServletRequest request,
                                     HttpServletResponse response)
                              throws ServletException,
                                     IOException
Processes the DiGIR request passed in by the servlet. It gets the value of parameter "doc" from the HTTP request as the DiGIR request and dispatches the task to the corresponding class depending on the type of the DiGIR request. If it's a metadata request, it calls the BiotaMetadataHandler.updateMetadata() method to update the resource's information. Otherwise, it calls the BiotaHandlerFactory.getRequestHandler() to get the appropriate BiotaRequestHandler object to find the records that meets the argument in the request's filter element from the resource. It then calls DiGIRProcessor.buildDiGIRResponse() method to build the DiGIR response.

Parameters:
request - the HttpServletRequest received by the servlet
response - the HttpServletResponse of the servlet
Throws:
ServletException
IOExcetion
IOException
See Also:
BiotaMetadataHandler.updateMetadata(DiGIRRequestParser), BiotaHandlerFactory.getRequestHandler(DiGIRRequestParser), DiGIRProcessor.buildDiGIRResponse(DiGIRRequestParser, Element)


Copyright © 2004 University of Massachusetts at Boston. All Rights Reserved.