Package org.gvsig.catalog.csw.drivers
Class CSWCatalogServiceDriver
java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
org.gvsig.catalog.drivers.AbstractCatalogServiceDriver
org.gvsig.catalog.csw.drivers.CSWCatalogServiceDriver
- All Implemented Interfaces:
ICatalogServiceDriver,IDiscoveryServiceDriver
- Direct Known Subclasses:
CSWebRIMCatalogServiceDriver,CSWISO19115CatalogServiceDriver
This class implements the CSW protocol.
- Author:
- Jorge Piera Llodra (piera_jor@gva.es)
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCapabilities(URI uri) It try to discover the server capabilities.intprotected intgetNumberOfRecords(XMLNode node) This function returns the number of records that have been retrieved.getRecords(URI uri, CatalogQuery query, int firstRecord) It send a request with a query to retrieve the server recordsbooleanisProtocolSupported(URI uri) It have to prove if the specified protocol is supported.protected abstract XMLNode[]retrieveResults(XMLNode root) Retrieve and parse the resultsMethods inherited from class org.gvsig.catalog.drivers.AbstractCatalogServiceDriver
createQuery, getMaxRecords, getNumberOfRecords, getOutputFormat, getOutputSchema, getProfile, getQuery, getRecordsReply, getServerData, getSortBy, getStartPosition, setMaxRecords, setOutputFormat, setOutputSchema, setOutputSchema, setQuery, setServerData, setSortBy, setStartPositionMethods inherited from class org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
getAditionalSearchPanel, getOneServer, getServerAnswerReady, setServerAnswerReady, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.gvsig.catalog.drivers.IDiscoveryServiceDriver
getAditionalSearchPanel, getOneServer, getServerAnswerReady, getServiceName, setServerAnswerReady, toString
-
Field Details
-
capabilities
-
profile
-
-
Constructor Details
-
CSWCatalogServiceDriver
public CSWCatalogServiceDriver()
-
-
Method Details
-
getCapabilities
Description copied from interface:IDiscoveryServiceDriverIt try to discover the server capabilities.- Parameters:
uri- Server URIurl-- Returns:
- Throws:
NotSupportedVersionException
-
getRecords
Description copied from interface:ICatalogServiceDriverIt send a request with a query to retrieve the server records- Parameters:
uri- Server URIquery- It contains the values to do the query (title="XXX",abstract="YYY",...)firstRecord- Number of the first record to retrieve- Returns:
- RecordsAnswer Contains the records and additional info
-
retrieveResults
Retrieve and parse the results- Parameters:
root- XML root node- Returns:
-
getNumberOfRecords
This function returns the number of records that have been retrieved. It Reads a Node value.- Parameters:
node- The answer tree- Returns:
- The number of records
-
getDefaultPort
public int getDefaultPort()- Specified by:
getDefaultPortin interfaceIDiscoveryServiceDriver- Overrides:
getDefaultPortin classAbstractDiscoveryServiceDriver- Returns:
- the dafault port for an specific service
-
getDefaultSchema
- Specified by:
getDefaultSchemain interfaceIDiscoveryServiceDriver- Overrides:
getDefaultSchemain classAbstractDiscoveryServiceDriver- Returns:
- the dafault schema for an specific service
-
isProtocolSupported
Description copied from interface:IDiscoveryServiceDriverIt have to prove if the specified protocol is supported.- Specified by:
isProtocolSupportedin interfaceIDiscoveryServiceDriver- Overrides:
isProtocolSupportedin classAbstractDiscoveryServiceDriver- Parameters:
uri- Server URI- Returns:
- true if is supported, false if it isn't supported
-