/** * @see ServerConfiguration#setServiceInformation(ServiceInformation); * @param serviceInfo */ public void setServiceInformation(ServiceInformation serviceInfo) throws IOException { getGwcConfig().setServiceInformation(serviceInfo); save(); }
/** * @see ServerConfiguration#setFullWMS(Boolean) * @param isFullWMS */ @Override public void setFullWMS(Boolean isFullWMS) throws IOException { getGwcConfig().setFullWMS(isFullWMS); save(); }
/** @see ServerConfiguration#isRuntimeStatsEnabled() */ public Boolean isRuntimeStatsEnabled() { if (getGwcConfig() == null || getGwcConfig().getRuntimeStats() == null) { return true; } else { return getGwcConfig().getRuntimeStats(); } }
private void saveGridSet(GridSet gridSet) throws IOException { addOrReplaceGridSet(new XMLGridSet(gridSet)); save(); }
/** * @see ServerConfiguration#setRuntimeStatsEnabled(Boolean) * @param isEnabled */ public void setRuntimeStatsEnabled(Boolean isEnabled) throws IOException { getGwcConfig().setRuntimeStats(isEnabled); save(); }
/** * @see ServerConfiguration#setLockProvider(LockProvider) * @param lockProvider */ @Override public void setLockProvider(LockProvider lockProvider) throws IOException { getGwcConfig().setLockProvider(lockProvider); save(); }
/** @see ServerConfiguration#setBackendTimeout(Integer) */ @Override public void setBackendTimeout(Integer backendTimeout) throws IOException { gwcConfig.setBackendTimeout(backendTimeout); save(); }
/** @see ServerConfiguration#setCacheBypassAllowed(Boolean) */ @Override public void setCacheBypassAllowed(Boolean cacheBypassAllowed) throws IOException { gwcConfig.setCacheBypassAllowed(cacheBypassAllowed); save(); }
/** @see ServerConfiguration#getLockProvider() */ @Override public LockProvider getLockProvider() { return getGwcConfig().getLockProvider(); }
/** @see ServerConfiguration#isFullWMS() */ @Override public Boolean isFullWMS() { if (getGwcConfig() != null) { return getGwcConfig().getFullWMS(); } return null; }
/** @see ServerConfiguration#getServiceInformation() */ public synchronized ServiceInformation getServiceInformation() { return getGwcConfig().getServiceInformation(); }
public String getVersion() { return getGwcConfig().getVersion(); }
/** @see BlobStoreInfo#getLocation() */ @Override public String getLocation() { return getBaseDirectory(); } }
/** @see ServerConfiguration#getBackendTimeout() */ @Override public Integer getBackendTimeout() { return gwcConfig.getBackendTimeout(); }
/** @see ServerConfiguration#isCacheBypassAllowed() */ @Override public Boolean isCacheBypassAllowed() { return gwcConfig.getCacheBypassAllowed(); }
private Iterable<TileLayer> loadResource(String fileName) throws Exception { return loadConfig(fileName).getLayers(); }
/** * Set up the configuration for a remove test with an info named "test". * * @return the info that was added * @throws Exception */ protected BlobStoreInfo prepForRemove() throws Exception { BlobStoreInfo goodInfo = this.getGoodInfo("test", 1); this.addInfo(this.config, goodInfo); return goodInfo; }
@Override public Boolean isWmtsCiteCompliant() { if (gwcConfig == null) { // if there is not configuration available we consider CITE strict compliance to be // deactivated return false; } // return whatever CITE compliance mode is defined return gwcConfig.isWmtsCiteCompliant(); }
@Override public boolean canSave(GridSet gridset) { // TODO Exceptions are expensive so do something else. try { validateGridSet(gridset); return true; } catch (IllegalArgumentException ex) { return false; } }
@Override protected void renameInfo(GridSetConfiguration config, String name1, String name2) throws Exception { config.renameGridSet(name1, name2); }