public class SRWCatalogServiceDriver extends AbstractCatalogServiceDriver
http://www.loc.gov/z3950/agency/zing/srw/
Constructor and Description |
---|
SRWCatalogServiceDriver() |
Modifier and Type | Method and Description |
---|---|
DiscoveryServiceCapabilities |
getCapabilities(URI uri)
It try to discover the server capabilities.
|
int |
getDefaultPort() |
String |
getDefaultSchema() |
GetRecordsReply |
getRecords(URI uri,
CatalogQuery query,
int firstRecord)
It send a request with a query to retrieve the server records
|
String |
getRecordXPath() |
String |
getResultSetTTL() |
String |
getServiceName() |
String |
getVersion() |
boolean |
isProtocolSupported(URI uri)
It have to prove if the specified protocol is supported.
|
void |
setRecordXPath(String recordXPath) |
void |
setResultSetTTL(String resultSetTTL) |
void |
setVersion(String version) |
createQuery, getMaxRecords, getNumberOfRecords, getOutputFormat, getOutputSchema, getProfile, getQuery, getRecordsReply, getServerData, getSortBy, getStartPosition, setMaxRecords, setOutputFormat, setOutputSchema, setOutputSchema, setQuery, setServerData, setSortBy, setStartPosition
getAditionalSearchPanel, getOneServer, getServerAnswerReady, setServerAnswerReady, toString
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getAditionalSearchPanel, getOneServer, getServerAnswerReady, setServerAnswerReady, toString
public DiscoveryServiceCapabilities getCapabilities(URI uri)
IDiscoveryServiceDriver
uri
- Server URIpublic GetRecordsReply getRecords(URI uri, CatalogQuery query, int firstRecord)
ICatalogServiceDriver
uri
- Server URIquery
- It contains the values to do the query (title="XXX",abstract="YYY",...)firstRecord
- Number of the first record to retrievepublic String getRecordXPath()
public void setRecordXPath(String recordXPath)
recordXPath
- The recordXPath to set.public String getResultSetTTL()
public void setResultSetTTL(String resultSetTTL)
resultSetTTL
- The resultSetTTL to set.public String getVersion()
public void setVersion(String version)
version
- The version to set.public boolean isProtocolSupported(URI uri)
IDiscoveryServiceDriver
isProtocolSupported
in interface IDiscoveryServiceDriver
isProtocolSupported
in class AbstractDiscoveryServiceDriver
uri
- Server URIpublic String getServiceName()
public int getDefaultPort()
getDefaultPort
in interface IDiscoveryServiceDriver
getDefaultPort
in class AbstractDiscoveryServiceDriver
public String getDefaultSchema()
getDefaultSchema
in interface IDiscoveryServiceDriver
getDefaultSchema
in class AbstractDiscoveryServiceDriver