Revision 3073 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/drivers/Z3950CatalogServiceDriver.java
Z3950CatalogServiceDriver.java | ||
---|---|---|
40 | 40 |
*/ |
41 | 41 |
package es.gva.cit.catalogClient.drivers; |
42 | 42 |
|
43 |
import es.gva.cit.catalogClient.metadataXML.XMLNode; |
|
43 | 44 |
import es.gva.cit.catalogClient.metadataXML.XMLTree; |
44 | 45 |
import es.gva.cit.catalogClient.protocols.Z3950Protocol; |
45 | 46 |
import es.gva.cit.catalogClient.querys.Query; |
46 | 47 |
import es.gva.cit.catalogClient.querys.Z3950Query; |
47 | 48 |
|
48 |
import org.w3c.dom.Node; |
|
49 | 49 |
|
50 | 50 |
import java.io.ByteArrayInputStream; |
51 | 51 |
|
... | ... | |
61 | 61 |
/* (non-Javadoc) |
62 | 62 |
* @see ICatalogServerDriver#GetCapabilities(java.lang.String, java.lang.String) |
63 | 63 |
*/ |
64 |
public Node[] getCapabilities(URL url) { |
|
65 |
Node[] nodos = new Node[1];
|
|
64 |
public XMLNode[] getCapabilities(URL url) {
|
|
65 |
XMLNode[] nodos = new XMLNode[1];
|
|
66 | 66 |
|
67 | 67 |
String message = getMessageCapabilities(new Z3950Protocol().openConnection( |
68 | 68 |
url)); |
... | ... | |
76 | 76 |
/* (non-Javadoc) |
77 | 77 |
* @see ICatalogServerDriver#GetRecords(java.lang.String, java.lang.String, java.lang.String, int, int, java.lang.String, java.lang.String) |
78 | 78 |
*/ |
79 |
public Node[] getRecords(URL url, Query query, int firstRecord) { |
|
79 |
public XMLNode[] getRecords(URL url, Query query, int firstRecord) {
|
|
80 | 80 |
setQuery(query); |
81 | 81 |
|
82 | 82 |
String message = getMessageRecords(getQuery()); |
83 | 83 |
|
84 | 84 |
System.out.println(message); |
85 | 85 |
|
86 |
Node[] nodos = new Z3950Protocol().doQuery(url, message, firstRecord); |
|
86 |
XMLNode[] nodos = new Z3950Protocol().doQuery(url, message, firstRecord);
|
|
87 | 87 |
|
88 | 88 |
return nodos; |
89 | 89 |
} |
... | ... | |
113 | 113 |
/* (non-Javadoc) |
114 | 114 |
* @see catalogClient.ICatalogServerDriver#setParameters(java.util.Properties) |
115 | 115 |
*/ |
116 |
public boolean setParameters(Node[] nodes) { |
|
116 |
public boolean setParameters(XMLNode[] nodes) {
|
|
117 | 117 |
// TODO Auto-generated method stub |
118 | 118 |
setServerAnswerReady(XMLTree.searchNodeValue(nodes[0], "Servidor")); |
119 | 119 |
|
Also available in: Unified diff