Statistics
| Revision:

gvsig-osm / org.gvsig.raster.osm / trunk / org.gvsig.raster.osm / org.gvsig.raster.osm.io / src / main / java / org / gvsig / raster / osm / io / OSMServerExplorer.java @ 85

History | View | Annotate | Download (2.69 KB)

1
/* OSM layers for gvSIG. 
2
 * Geographic Information System of the Valencian Government
3
*
4
* Copyright (C) 2012 Nacho Brodin
5
* 
6
* This program is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU General Public License
8
* as published by the Free Software Foundation; either version 2
9
* of the License, or (at your option) any later version.
10
* 
11
* This program is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
* GNU General Public License for more details.
15
* 
16
* You should have received a copy of the GNU General Public License
17
* along with this program; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 
19
* MA  02110-1301, USA.
20
* 
21
*/
22

    
23
package org.gvsig.raster.osm.io;
24

    
25
import java.util.List;
26

    
27
import org.gvsig.compat.net.ICancellable;
28
import org.gvsig.fmap.dal.DataServerExplorerParameters;
29
import org.gvsig.fmap.dal.DataStoreParameters;
30
import org.gvsig.fmap.dal.NewDataStoreParameters;
31
import org.gvsig.fmap.dal.coverage.exception.ConnectException;
32
import org.gvsig.fmap.dal.coverage.store.RasterDataServerExplorer;
33
import org.gvsig.fmap.dal.exception.DataException;
34
import org.gvsig.fmap.dal.spi.DataServerExplorerProvider;
35
import org.gvsig.fmap.dal.spi.DataServerExplorerProviderServices;
36

    
37

    
38

    
39
public class OSMServerExplorer {
40
        public static final String NAME       = OSMProvider.NAME;
41

    
42
        public String getProviderName() {
43
                return OSMProvider.NAME;
44
        }
45

    
46
        public boolean canAdd() {
47
                return false;
48
        }
49

    
50
        public boolean canAdd(String storeName) throws DataException {
51
                return false;
52
        }
53

    
54
        public List<?> list() throws DataException {
55
                return null;
56
        }
57

    
58
        public List<?> list(int mode) throws DataException {
59
                return null;
60
        }
61

    
62
        public boolean add(String provider, NewDataStoreParameters parameters,
63
                        boolean overwrite) throws DataException {
64
                return false;
65
        }
66

    
67
        public void remove(DataStoreParameters parameters) throws DataException {
68
                
69
        }
70

    
71
        public NewDataStoreParameters getAddParameters(String storeName)
72
                        throws DataException {
73
                return null;
74
        }
75

    
76
        public DataServerExplorerParameters getParameters() {
77
                return null;
78
        }
79

    
80
        public List<?> getDataStoreProviderNames() {
81
                return null;
82
        }
83

    
84
        public void dispose() {
85
                
86
        }
87

    
88
        public DataServerExplorerProviderServices getServerExplorerProviderServices() {
89
                return null;
90
        }
91

    
92
        public DataStoreParameters getStoredParameters() {
93
                return null;
94
        }
95

    
96
        public void connect(ICancellable cancellable) throws ConnectException {
97
                
98
        }
99

    
100
        public boolean isHostReachable(int timeout) {
101
                return false;
102
        }
103

    
104
        public boolean isHostReachable() {
105
                return isHostReachable(RasterDataServerExplorer.TIME);
106
        }
107

    
108
}