Revision 10626 trunk/extensions/extWFS2/src/com/iver/cit/gvsig/fmap/drivers/wfs/FMapWFSDriverFactory.java
FMapWFSDriverFactory.java | ||
---|---|---|
5 | 5 |
import java.net.URL; |
6 | 6 |
import java.util.Hashtable; |
7 | 7 |
|
8 |
import com.iver.cit.gvsig.fmap.drivers.WFSException;
|
|
8 |
import com.iver.cit.gvsig.exceptions.layers.LoadLayerException;
|
|
9 | 9 |
|
10 |
|
|
10 | 11 |
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana |
11 | 12 |
* |
12 | 13 |
* Copyright (C) 2004 IVER T.I. and Generalitat Valenciana. |
... | ... | |
51 | 52 |
* |
52 | 53 |
* $Id$ |
53 | 54 |
* $Log$ |
54 |
* Revision 1.2 2006-11-16 13:30:36 jorpiell |
|
55 |
* Revision 1.3 2007-03-06 16:54:14 caballero |
|
56 |
* Exceptions |
|
57 |
* |
|
58 |
* Revision 1.2 2006/11/16 13:30:36 jorpiell |
|
55 | 59 |
* Se crea siempre un driver nuevo. Sino hay problemas al recuperar un gvp con muchos wfs's |
56 | 60 |
* |
57 | 61 |
* Revision 1.1 2006/09/05 15:41:52 jorpiell |
... | ... | |
64 | 68 |
*/ |
65 | 69 |
public class FMapWFSDriverFactory { |
66 | 70 |
private static Hashtable drivers = new Hashtable(); |
67 |
|
|
71 |
|
|
68 | 72 |
private FMapWFSDriverFactory() { } |
69 |
|
|
70 |
static public final FMapWFSDriver getFMapDriverForURL(URL url) throws ConnectException, IOException, WFSException {
|
|
73 |
|
|
74 |
static public final FMapWFSDriver getFMapDriverForURL(URL url) throws LoadLayerException {
|
|
71 | 75 |
FMapWFSDriver drv = null; |
72 | 76 |
if (drv == null) { |
73 |
drv = new FMapWFSDriver();
|
|
77 |
drv = new FMapWFSDriver(); |
|
74 | 78 |
drv.getCapabilities(url); |
75 | 79 |
drivers.put(url, drv); |
76 | 80 |
} |
Also available in: Unified diff