public WebMapServer getWebMapServer(ProgressListener listener) throws IOException { return getCatalog().getResourcePool().getWebMapServer(this); }
rp.getWebMapServer(info); fail("WebMapServer instantiation should fail"); } catch (IOException e) { rp.getWebMapServer(info); fail("WebMapServer instantiation should fail"); } catch (IOException e) {
@Override protected void onSave(WMSStoreInfo info, AjaxRequestTarget target) throws IllegalArgumentException { if(!info.isEnabled()) { doSaveStore(info); } else { try { // try to see if we can connect getCatalog().getResourcePool().clear(info); // do not call info.getWebMapServer cause it ends up calling // resourcepool.getWebMapServer with the unproxied instance (old values) //info.getWebMapServer(null).getCapabilities(); WebMapServer webMapServer = getCatalog().getResourcePool().getWebMapServer(info); webMapServer.getCapabilities(); doSaveStore(info); } catch(Exception e) { confirmSaveOnConnectionFailure(info, target, e); } } }
@Override protected void onSave(WMSStoreInfo info, AjaxRequestTarget target) throws IllegalArgumentException { if (!info.isEnabled()) { doSaveStore(info); } else { try { // try to see if we can connect getCatalog().getResourcePool().clear(info); // do not call info.getWebMapServer cause it ends up calling // resourcepool.getWebMapServer with the unproxied instance (old values) // info.getWebMapServer(null).getCapabilities(); WebMapServer webMapServer = getCatalog().getResourcePool().getWebMapServer(info); webMapServer.getCapabilities(); doSaveStore(info); } catch (Exception e) { confirmSaveOnConnectionFailure(info, target, e); } } }