Revision 101 org.gvsig.wfs.app/trunk/org.gvsig.wfs.app/org.gvsig.wfs.app.mainplugin/src/main/java/org/gvsig/fmap/dal/store/wfs/WFSStoreProvider.java

View differences:

WFSStoreProvider.java
151 151
            WFSStoreParameters wfsParameters = getWFSParameters();
152 152
            try {
153 153
                if (wfsParameters.getVersion() == null){
154
                    wfsClient = new WFSClient(wfsParameters.getUrl());
154
                    wfsClient = new WFSClient(wfsParameters.getUrl(), wfsParameters.getIgnoreCache());
155 155
                    wfsParameters.setVersion(wfsClient.getVersion());
156 156
                }else{
157
                    wfsClient = new WFSClient(wfsParameters.getUrl(), wfsParameters.getVersion());
157
                    wfsClient = new WFSClient(wfsParameters.getUrl(), wfsParameters.getVersion(), wfsParameters.getIgnoreCache());
158 158
                }
159 159
            } catch (IOException e) {
160 160
                throw new InitializeException(e);
......
429 429
            if (!hasFilterByArea){
430 430
                wfsStatus.removeFilterByArea();
431 431
            }
432
            return wfsClient.getFeature(wfsStatus, true, null);
432
            return wfsClient.getFeature(wfsStatus, getWFSParameters().getIgnoreCache(), null);
433 433
        } catch (WFSException e) {
434 434
            throw new InitializeException("Impossible to retrieve the file", e);
435 435
        }
......
481 481
            wfsStatus.setProtocol(OGCClientOperation.PROTOCOL_POST);
482 482
            //If it is not possible to calculate the 
483 483
            wfsStatus.setResultType(WFSStatus.RESULTYPE_RESULTS);
484
            return wfsClient.getFeature(wfsStatus, true, null);
484
            return wfsClient.getFeature(wfsStatus, getWFSParameters().getIgnoreCache(), null);
485 485
        } catch (WFSException e) {
486 486
            throw new InitializeException("Impossible to retrieve the file", e);
487 487
        }
......
516 516
                }else{
517 517
                    wfsStatus.setProtocol(OGCClientOperation.PROTOCOL_GET);
518 518
                }
519
                File file = wfsClient.getFeature(wfsStatus, true, null);
519
                File file = wfsClient.getFeature(wfsStatus, getWFSParameters().getIgnoreCache(), null);
520 520
                featureCount = ((WFSGetFeatureRequestInformation)wfsClient.getLastWfsRequestInformation()).getNumberOfFeatures();
521 521
                //If the service doesn't support RESULTTYPE_HITS, parse the file and get the FeatureCount
522 522
                if (featureCount == -1){

Also available in: Unified diff