Revision 3486 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/GazetteerClient.java

View differences:

GazetteerClient.java
40 40
*/
41 41
package es.gva.cit.gazetteer;
42 42

  
43
import es.gva.cit.catalogClient.utils.comboServer.ServerData;
43 44
import es.gva.cit.gazetteer.adl.drivers.ADLGazetteerServiceDriver;
44 45
import es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver;
45 46
import es.gva.cit.gazetteer.idec.drivers.IDECGazetteerServiceDriver;
......
86 87
        }
87 88
     
88 89
        //Casting to the respective driver
89
        if (protocol.equals(new String("WFS-G")) ||
90
                protocol.equals(new String("WFS"))) {
90
        if (protocol.equals(new String(ServerData.SERVER_SUBTYPE_GAZETTEER_WFSG)) ||
91
                protocol.equals(new String(ServerData.SERVER_SUBTYPE_GAZETTEER_WFS))) {
91 92
            lnkIGazetteerDriver = new WFSGazetteerServiceDriver();
92 93
        }
93 94

  
94
        if (protocol.equals(new String("ADL"))) {
95
        if (protocol.equals(new String(ServerData.SERVER_SUBTYPE_GAZETTEER_ADL))) {
95 96
            lnkIGazetteerDriver = new ADLGazetteerServiceDriver();
96 97
        }
97 98
        
98
        if (protocol.equals(new String("IDEC"))) {
99
        if (protocol.equals(new String(ServerData.SERVER_SUBTYPE_GAZETTEER_IDEC))) {
99 100
            lnkIGazetteerDriver = new IDECGazetteerServiceDriver();
100 101
        }
101 102
        

Also available in: Unified diff