Revision 3073 trunk/applications/appCatalogYNomenclatorClient/src/es/gva/cit/gazetteer/drivers/WFSGazetteerServiceDriver.java

View differences:

WFSGazetteerServiceDriver.java
43 43
import java.net.URL;
44 44

  
45 45
import org.apache.commons.httpclient.NameValuePair;
46
import org.w3c.dom.Node;
47 46

  
47
import es.gva.cit.catalogClient.metadataXML.XMLNode;
48 48
import es.gva.cit.catalogClient.protocols.HTTPGetProtocol;
49 49
import es.gva.cit.gazetteer.parsers.wfsg.WfsgCapabilitiesParser;
50 50
import es.gva.cit.gazetteer.parsers.wfsg.WfsgFeatureParser;
......
65 65
public class WFSGazetteerServiceDriver extends AsbtractGazetteerServiceDriver{
66 66
    private WfsgProtocolsOperations operations = null;
67 67
    
68
    public Node[] getCapabilities(URL url) {
69
        Node[] nodes = null;
68
    public XMLNode[] getCapabilities(URL url) {
69
        XMLNode[] nodes = null;
70 70

  
71 71
        System.out.println("**************GET*************");
72 72
        nodes = new HTTPGetProtocol().doQuery(url, getMessageCapabilities(), 0);
......
111 111
     
112 112

  
113 113
    
114
     public Node[] getFeature(URL url, Query query) {
115
         Node[] nodes = null;
114
     public XMLNode[] getFeature(URL url, Query query) {
115
         XMLNode[] nodes = null;
116 116
         setQuery(query);
117 117
         
118 118
         for (int i=0 ; i<getOperations().getGetFeature().length; i++){
......
265 265
     }
266 266
     
267 267
      
268
    public Node[] describeFeatureType(URL url, String feature) {
269
        Node[] nodes = null;
268
    public XMLNode[] describeFeatureType(URL url, String feature) {
269
        XMLNode[] nodes = null;
270 270
                
271 271
        for (int i=0 ; i<getOperations().getDescribeFeatureType().length; i++){
272 272
            
......
357 357
    /* (non-Javadoc)
358 358
     * @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#setParameters(org.w3c.dom.Node[])
359 359
     */
360
    public boolean setParameters(Node[] nodes) {
360
    public boolean setParameters(XMLNode[] nodes) {
361 361
        return new WfsgCapabilitiesParser(this).parse(nodes[0]);
362 362
    }
363 363
    
......
378 378
    /* (non-Javadoc)
379 379
     * @see es.gva.cit.gazetteer.drivers.IGazetteerServiceDriver#parseFeatures(org.w3c.dom.Node)
380 380
     */
381
    public Feature[] parseFeatures(Node node,ThesaurusName currentFeature,String attribute) {
381
    public Feature[] parseFeatures(XMLNode node,ThesaurusName currentFeature,String attribute) {
382 382
        return new WfsgFeatureParser().parse(node,currentFeature,attribute);
383 383
    }
384 384
}

Also available in: Unified diff