Revision 3486 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/catalogClient/CatalogClient.java
CatalogClient.java | ||
---|---|---|
43 | 43 |
import es.gva.cit.catalogClient.csw.drivers.CSWCatalogServiceDriver; |
44 | 44 |
import es.gva.cit.catalogClient.drivers.ICatalogServiceDriver; |
45 | 45 |
import es.gva.cit.catalogClient.srw.drivers.SRWCatalogServiceDriver; |
46 |
import es.gva.cit.catalogClient.utils.comboServer.ServerData; |
|
46 | 47 |
import es.gva.cit.catalogClient.z3950.drivers.Z3950CatalogServiceDriver; |
47 | 48 |
|
48 | 49 |
import java.io.IOException; |
... | ... | |
86 | 87 |
this.setUrl(new URL(url)); |
87 | 88 |
|
88 | 89 |
//if protocol is z39.50 we have to add the database to the URL |
89 |
if (!(protocol.equals(new String("Z3950")))) {
|
|
90 |
if (!(protocol.equals(new String(ServerData.SERVER_SUBTYPE_CATALOG_Z3950)))) {
|
|
90 | 91 |
database = getUrl().getPath(); |
91 | 92 |
} |
92 | 93 |
|
... | ... | |
103 | 104 |
} |
104 | 105 |
|
105 | 106 |
//Casting to the respective driver |
106 |
if (protocol.equals(new String("SRW"))) {
|
|
107 |
if (protocol.equals(new String(ServerData.SERVER_SUBTYPE_CATALOG_SRW))) {
|
|
107 | 108 |
lnkICatalogServerDriver = new SRWCatalogServiceDriver(); |
108 | 109 |
} |
109 | 110 |
|
110 |
if (protocol.equals(new String("CSW"))) {
|
|
111 |
if (protocol.equals(new String(ServerData.SERVER_SUBTYPE_CATALOG_CSW))) {
|
|
111 | 112 |
lnkICatalogServerDriver = new CSWCatalogServiceDriver(); |
112 | 113 |
} |
113 | 114 |
|
114 |
if (protocol.equals(new String("Z3950"))) {
|
|
115 |
if (protocol.equals(new String(ServerData.SERVER_SUBTYPE_CATALOG_Z3950))) {
|
|
115 | 116 |
lnkICatalogServerDriver = new Z3950CatalogServiceDriver(); |
116 | 117 |
} |
117 | 118 |
} |
Also available in: Unified diff