public void setType(String type) { delegate.setType(type); }
/** Builds a new WMTS store */ public WMTSStoreInfo buildWMTSStore(String name) throws IOException { WMTSStoreInfo info = catalog.getFactory().createWebMapTileServer(); buildStore(info, name); info.setType("WMTS"); info.setMaxConnections(WMTSStoreInfoImpl.DEFAULT_MAX_CONNECTIONS); info.setConnectTimeout(WMTSStoreInfoImpl.DEFAULT_CONNECT_TIMEOUT); info.setReadTimeout(WMTSStoreInfoImpl.DEFAULT_READ_TIMEOUT); return info; }
public WMTSStoreInfo clone(final WMTSStoreInfo source, boolean allowEnvParametrization) { WMTSStoreInfo target; try { target = (WMTSStoreInfo) SerializationUtils.clone(source); if (target instanceof StoreInfoImpl && target.getCatalog() == null) { ((StoreInfoImpl) target).setCatalog(catalog); } } catch (Exception e) { target = catalog.getFactory().createWebMapTileServer(); target.setDescription(source.getDescription()); target.setEnabled(source.isEnabled()); target.setName(source.getName()); target.setType(source.getType()); target.setWorkspace(source.getWorkspace()); } setConnectionParameters(source, target); if (allowEnvParametrization) { // Resolve GeoServer Environment placeholders final GeoServerEnvironment gsEnvironment = GeoServerExtensions.bean(GeoServerEnvironment.class); if (gsEnvironment != null && GeoServerEnvironment.ALLOW_ENV_PARAMETRIZATION) { target.setCapabilitiesURL( (String) gsEnvironment.resolveValue(source.getCapabilitiesURL())); target.setUsername((String) gsEnvironment.resolveValue(source.getUsername())); target.setPassword((String) gsEnvironment.resolveValue(source.getPassword())); } } return target; }
wmtss.setType("WMTS"); wmtss.setCapabilitiesURL("http://fake.wmts.url"); wmtss.setWorkspace(ws);
store.setType("WMTS"); store.setEnabled(true); store.setName("wmts");