Package org.gvsig.catalog.srw.drivers
Class SRWCatalogServiceDriver
java.lang.Object
org.gvsig.catalog.drivers.AbstractDiscoveryServiceDriver
org.gvsig.catalog.drivers.AbstractCatalogServiceDriver
org.gvsig.catalog.srw.drivers.SRWCatalogServiceDriver
- All Implemented Interfaces:
ICatalogServiceDriver,IDiscoveryServiceDriver
This class implements the CSW 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.voidsetRecordXPath(String recordXPath) voidsetResultSetTTL(String resultSetTTL) voidsetVersion(String version) 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
-
SRWCatalogServiceDriver
public SRWCatalogServiceDriver()
-
-
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
-
getRecordXPath
- Returns:
- Returns the recordXPath.
-
setRecordXPath
- Parameters:
recordXPath- The recordXPath to set.
-
getResultSetTTL
- Returns:
- Returns the resultSetTTL.
-
setResultSetTTL
- Parameters:
resultSetTTL- The resultSetTTL to set.
-
getVersion
- Returns:
- Returns the version.
-
setVersion
- Parameters:
version- The version to set.
-
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
-
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
-