Revision 9048 branches/v10/extensions/extWCS/src/com/iver/cit/gvsig/gui/wcs/WCSWizardData.java
WCSWizardData.java | ||
---|---|---|
73 | 73 |
private WCSLayer[] coverageList; |
74 | 74 |
|
75 | 75 |
|
76 |
public void setHost(URL host) throws DriverException{ |
|
76 |
public void setHost(URL host, boolean override) throws DriverException{
|
|
77 | 77 |
try { |
78 | 78 |
wcs = FMapWCSDriverFactory.getFMapDriverForURL(host); |
79 | 79 |
|
80 | 80 |
//wcs.createClient(host); |
81 | 81 |
|
82 | 82 |
// Send getCapabilities and describe coverage request; |
83 |
if (!wcs.connect(null))
|
|
84 |
throw new DriverException(PluginServices.getText(this, "wcs_cant_connect") + host.toString());
|
|
83 |
if (!wcs.connect(override, null))
|
|
84 |
throw new DriverException(PluginServices.getText(this, "wcs_cant_connect") + host.toString());
|
|
85 | 85 |
} catch (ConnectException e) { |
86 | 86 |
JOptionPane.showMessageDialog((Component)PluginServices.getMainFrame(), PluginServices.getText(this,"wcs_server_timeout")); |
87 | 87 |
return; |
Also available in: Unified diff