project.biota.biotaInterface
Class BiotaHandlerFactory
java.lang.Object
project.biota.biotaInterface.BiotaHandlerFactory
- public class BiotaHandlerFactory
- extends Object
BiotaHandlerFactory creates a BiotaRequestHandler
depending on the type of
the resource requested. It creates a BiotaWebRequestHandler
when the resource
is served via a Biota onboard Web Server, or a BiotaServerRequestHandler
if
the resource is served via a 4D Server. If the resource's type is not recognized by
the provider, it returns a BiotaDefaultHandler
that does nothing.
Developers who implement a new BiotaRequestHandler
for a different type
of resources need to add codes in this class to create an instance of the new handler
when the type matches.
- Author:
- Kimmy Lin
- See Also:
BiotaRequestHandler
,
BiotaDefaultHandler
,
BiotaServerRequestHandler
,
BiotaWebRequestHandler
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
getRequestHandler
public static BiotaRequestHandler getRequestHandler(DiGIRRequestParser parser)
- Produces a query handler according to the type of the requested resource. This method
is called in
DiGIRRequestHandler.processDiGIRQuery()
method.
- Parameters:
parser
- the DiGIRRequestParser that parses the DiGIR request
- Returns:
- a BiotaRequestHandler object that builds a DiGIR response
- See Also:
DiGIRRequestHandler.processDiGIRQuery(HttpServletRequest, HttpServletResponse)
Copyright © 2004 University of Massachusetts at Boston. All Rights Reserved.