Revision 1961 org.gvsig.raster.wmts/trunk/org.gvsig.raster.wmts/org.gvsig.raster.wmts.io/src/main/java/org/gvsig/raster/wmts/io/WMTSProvider.java

View differences:

WMTSProvider.java
269 269
	public WMTSConnector getConnector() throws WMTSException {
270 270
		if(connector == null) {
271 271
			WMTSDataParameters p = (WMTSDataParameters)parameters;
272
			connector = p.getConnector();
273
			if(connector != null)
274
				return connector;
275
			
272 276
			URL url = null;
273 277
			try {
274 278
				url = new URL(p.getURI());
......
277 281
			}
278 282
			try {
279 283
				connector = new WMTSConnector(url);
284
				connector.connect(true, new ICancellable() {
285
					
286
					public boolean isCanceled() {
287
						return false;
288
					}
289
					
290
					public Object getID() {
291
						return null;
292
					}
293
				});
280 294
			} catch (ConnectException e) {
281 295
				throw new WMTSException("Connect exception",e);
282 296
			} catch (IOException e) {

Also available in: Unified diff