String xml = (String) serializable;
// NOTE: this constructor will check
// the updateSequence number and compare it to any
// capabilities it can fetch from the server
wmsc = new TiledWebMapServer(this.url, xml, true);
} catch (Exception e) {
WmsPlugin.log("Restore from cached capabilities failed", e); //$NON-NLS-1$
// we are going to continue by trying to connect to the real thing
}
}
if (wmsc == null) {
// we could not reconstruct from our cached capabilities?
// this constructor will grab the capabilities when
// first needed
try {
wmsc = new TiledWebMapServer(this.url);
} catch (ServiceException e) {
WmsPlugin.log("Creating Tile Web Server failed", e); //$NON-NLS-1$
}
String xml = wmsc.getCapabilitiesXml();
getPersistentProperties().put(CAPABILITIES_KEY, xml);