Package org.gvsig.catalog.z3950.drivers
Class Z3950CatalogServiceDriver
java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
org.gvsig.catalog.drivers.AbstractCatalogServiceDriver
org.gvsig.catalog.z3950.drivers.Z3950CatalogServiceDriver
- All Implemented Interfaces:
ICatalogServiceDriver,IDiscoveryServiceDriver
This class implements the Z39.50 protocol.
- Author:
- Jorge Piera Llodra (piera_jor@gva.es)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetCapabilities(URI uri) It try to discover the server capabilities.intgetRecords(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.Methods 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, setServerAnswerReady, toString
-
Constructor Details
-
Z3950CatalogServiceDriver
public Z3950CatalogServiceDriver()
-
-
Method Details
-
getCapabilities
Description copied from interface:IDiscoveryServiceDriverIt try to discover the server capabilities.- Parameters:
uri- Server URI- Returns:
- Node with the server answer.
-
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
-
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
-
getQueryProfile
- Returns:
-
getServiceName
- Returns:
- the service name that will be showed in the user interface
-
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
-