Revision 12733 branches/CatalogYNomenclator_v1_1_0_1005/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/z3950/drivers/Z3950CatalogServiceDriver.java
Z3950CatalogServiceDriver.java | ||
---|---|---|
49 | 49 |
|
50 | 50 |
import es.gva.cit.catalogClient.drivers.AbstractCatalogServiceDriver; |
51 | 51 |
import es.gva.cit.catalogClient.drivers.CatalogCapabilities; |
52 |
import es.gva.cit.catalogClient.drivers.GetRecordsReply; |
|
52 | 53 |
import es.gva.cit.catalogClient.metadataxml.XMLNode; |
53 | 54 |
import es.gva.cit.catalogClient.metadataxml.XMLTree; |
54 | 55 |
import es.gva.cit.catalogClient.protocols.Z3950Protocol; |
55 | 56 |
import es.gva.cit.catalogClient.querys.Query; |
56 |
import es.gva.cit.catalogClient.schemas.discoverer.Record; |
|
57 |
import es.gva.cit.catalogClient.schemas.records.Record; |
|
58 |
import es.gva.cit.catalogClient.schemas.records.RecordFactory; |
|
57 | 59 |
|
58 | 60 |
/** |
59 | 61 |
* This class implements the Z39.50 protocol. |
... | ... | |
86 | 88 |
* (non-Javadoc) |
87 | 89 |
* @see es.gva.cit.catalogClient.drivers.ICatalogServiceDriver#getRecords(java.net.URI, es.gva.cit.catalogClient.querys.Query, int) |
88 | 90 |
*/ |
89 |
public Record[] getRecords(URI uri, Query query, int firstRecord) { |
|
90 |
Collection nodes = null; |
|
91 |
public GetRecordsReply getRecords(URI uri, Query query, int firstRecord) { |
|
91 | 92 |
setQuery(query); |
92 | 93 |
Z3950Messages messages = new Z3950Messages(this); |
93 |
|
|
94 | 94 |
String message = messages.getRecords(getQuery(),Z3950Protocol.getDatabase(uri)); |
95 | 95 |
System.out.println(message); |
96 |
nodes = new Z3950Protocol().doQuery(uri, message, firstRecord);
|
|
97 |
return null;
|
|
96 |
new Z3950Protocol().doQuery(getRecordsReply(), uri, message, firstRecord);
|
|
97 |
return getRecordsReply();
|
|
98 | 98 |
} |
99 | 99 |
|
100 | 100 |
/* |
Also available in: Unified diff