|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectproject.biota.biotaInterface.BiotaRequestHandler
project.biota.biotaInterface.BiotaWebRequestHandler
BiotaWebRequestHandler handles requests for resources served via a Biota onboard Web Server.
BiotaRequestHandler
Field Summary |
Fields inherited from class project.biota.biotaInterface.BiotaRequestHandler |
conceptualSchemaNamespace, conceptualSchemaURI, formatter, left_index, logger, maxDepth, maxlevel, requestParser, requiredConcepts, requiredTablesFields, responseRecords, right_index, rscObject |
Constructor Summary | |
BiotaWebRequestHandler(DiGIRRequestParser parser)
Constructs a BiotaWebRequestHandler to handle a DiGIR request. |
Method Summary | |
protected void |
buildDiGIRResult(String filterString)
Makes database queries to a Biota onboard Web Server via a HTTP connection and processes the response returned by the database to build the records for the DiGIR response. |
protected String |
getConceptValue(String conceptName,
Object fieldsValues)
Constructs the value for a schema concept from the fieldsValues object. |
protected void |
updateResourceMetadata(ResourceObject rscObj)
Updates the metadata for the resource specified by the ResourceObject object. |
Methods inherited from class project.biota.biotaInterface.BiotaRequestHandler |
addRecordConceptElem, buildResult, createInventoryResponseElem, findRequiredTablesFields, getQueryString, parseValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public BiotaWebRequestHandler(DiGIRRequestParser parser)
parser
- the DiGIRRequestParser that parses the DiGIR requestMethod Detail |
protected void buildDiGIRResult(String filterString)
buildDiGIRResult
in class BiotaRequestHandler
filterString
- the string representation of the filter in the DiGIR requestprotected void updateResourceMetadata(ResourceObject rscObj)
ResourceObject.setNumberOfRecords()
method and the
ResourceObject.setDateLastUpdated()
method of the specified
ResourceObject object.
updateResourceMetadata
in class BiotaRequestHandler
rscObj
- the ResourceObject object that represents a resourceResourceObject.setNumberOfRecords(int)
,
ResourceObject.setDateLastUpdated(String)
protected String getConceptValue(String conceptName, Object fieldsValues)
fieldsValues
object.
The parameter fieldsValues
object is a java.util.List that holds the
values for the required fields. The order of the list is the same as the order of
fields in the parameters to the HTTP POST method. Therefore, it is important to keep
it in a java.util.List instead of a java.util.Set.
It calls the parseValue()
method when a field needs parsing.
getConceptValue
in class BiotaRequestHandler
conceptName
- the name for the schema conceptfieldsValues
- a collection of field values for one record
BiotaRequestHandler.parseValue(Field, String)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |