root / tmp / trunk / cliente / WorkSpace_WPSClient / extWPSCallejero / src / es / logex / gvsig / fmap / drivers / wps / FMapWPSDriverFactory.java @ 26601
History | View | Annotate | Download (1014 Bytes)
1 |
package es.logex.gvsig.fmap.drivers.wps; |
---|---|
2 |
|
3 |
import java.io.IOException; |
4 |
import java.net.ConnectException; |
5 |
import java.net.URL; |
6 |
import java.util.Hashtable; |
7 |
|
8 |
import es.logex.gvsig.fmap.drivers.WPSException; |
9 |
|
10 |
public class FMapWPSDriverFactory { |
11 |
@SuppressWarnings("unchecked") |
12 |
private static Hashtable drivers = new Hashtable(); |
13 |
|
14 |
private FMapWPSDriverFactory() { }
|
15 |
|
16 |
/**
|
17 |
* Gets the driver for WPSOperation
|
18 |
* @param url of the WPSOperation like http://localhost/wps_ws_spring/StreetsMap/service.wps
|
19 |
* @return
|
20 |
* @throws ConnectException
|
21 |
* @throws IOException
|
22 |
* @throws WPSException
|
23 |
*/
|
24 |
@SuppressWarnings("unchecked") |
25 |
static public final FMapWPSDriver getFMapDriverForWPSOperation(URL operationsUrl) throws ConnectException, IOException, WPSException { |
26 |
//The driver cant be linked with one URL because it has the gml to load
|
27 |
|
28 |
FMapWPSDriver drv = new FMapWPSDriver();
|
29 |
drv.getCapabilities(operationsUrl); //connect + getCapabilities
|
30 |
drivers.put(operationsUrl, drv); |
31 |
|
32 |
return drv;
|
33 |
} |
34 |
} |