Revision 34413 branches/v2_0_0_prep/libraries/libRemoteServices/src/org/gvsig/remoteclient/wmts/WMTSClient.java

View differences:

WMTSClient.java
24 24
import java.io.File;
25 25
import java.io.IOException;
26 26
import java.net.ConnectException;
27
import java.net.MalformedURLException;
28
import java.net.URL;
27 29
import java.util.ArrayList;
28 30

  
29 31
import org.gvsig.compat.net.ICancellable;
30 32
import org.gvsig.remoteclient.exceptions.ServerErrorException;
33
import org.gvsig.remoteclient.wmts.exception.DownloadException;
31 34
import org.gvsig.remoteclient.wmts.exception.WMTSException;
32 35
import org.gvsig.remoteclient.wmts.struct.WMTSLayer;
33 36
import org.gvsig.remoteclient.wmts.struct.WMTSServiceIdentification;
......
98 101
     */
99 102
    public synchronized File getTile(WMTSStatus status, ICancellable cancel) throws WMTSException, ServerErrorException {   
100 103
        return handler.getTile(status, cancel);
101
    } 
104
    }
105
    
106
    /**
107
     * Builds the URL to get a tile using a WMTSStatus object 
108
     * @throws ServerErrorException 
109
     */
110
    public synchronized URL getTileURL(WMTSStatus status) throws MalformedURLException {   
111
        return handler.getTileURL(status);
112
    }
113
    
114
    /**
115
     * Downloads a file
116
     * @throws DownloadException 
117
     * @throws ServerErrorException 
118
     */
119
    public synchronized File downloadFile(URL url, ICancellable cancel) throws DownloadException {   
120
        return handler.downloadFile(url, cancel);
121
    }
102 122
	
103 123
	/**
104 124
     * <p>One of the three interfaces defined by OGC WMS, it gets the service capabilities</p>

Also available in: Unified diff