project.biota.digir
Class DiGIRProcessor

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

public class DiGIRProcessor
extends Object

DiGIRProcessor is a static class that constructs a DiGIR response. Clients of this class call buildDiGIRResponse() method with the DiGIRRequestParser object that parses the DiGIR request and the JDOM element that contains the query result as arugments.

Author:
Jacob Asiedu, Kimmy Lin
See Also:
DiGIRRequestParser

Method Summary
static Element buildDiGIRResponse(DiGIRRequestParser requestParser, Element records)
          Create a DiGIR response based on a DiGIR request.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

buildDiGIRResponse

public static Element buildDiGIRResponse(DiGIRRequestParser requestParser,
                                         Element records)
Create a DiGIR response based on a DiGIR request. The parameter records is a JDOM element that has a list of child "record" elements, each of which holds a record for the DiGIR response.

Parameters:
requestParser - the DiGIRRequestParser that parses the DiGIR request
records - the records for the DiGIR response
Returns:
the response JDOM element for the DiGIR response
See Also:
DiGIRRequestHandler.processDiGIRQuery(HttpServletRequest, HttpServletResponse)


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