- 使用 Spring Initializr 创建 Spring Boot 应用程序
- 在Spring Boot中配置Cassandra
- 在 Spring Boot 上配置 Tomcat 连接池
- 将Camel消息路由到嵌入WildFly的Artemis上
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.isEnabled()
方法的一些代码示例,展示了WMTSStoreInfo.isEnabled()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WMTSStoreInfo.isEnabled()
方法的具体详情如下:
包路径:org.geoserver.catalog.WMTSStoreInfo
类名称:WMTSStoreInfo
方法名:isEnabled
暂无
代码示例来源:origin: geoserver/geoserver
public boolean isEnabled() {
return delegate.isEnabled();
}
代码示例来源:origin: geoserver/geoserver
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;
}
代码示例来源:origin: org.geoserver.web/gs-web-core
@Override
protected void onSave(WMTSStoreInfo 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();
WebMapTileServer wmts = getCatalog().getResourcePool().getWebMapTileServer(info);
wmts.getCapabilities();
doSaveStore(info);
} catch (Exception e) {
confirmSaveOnConnectionFailure(info, target, e);
}
}
}
代码示例来源:origin: org.geoserver/gs-restconfig
@Test
public void testPut() throws Exception {
Document dom =
getAsDOM(RestBaseController.ROOT_PATH + "/workspaces/sf/wmtsstores/demo.xml");
assertXpathEvaluatesTo("true", "/wmtsStore/enabled", dom);
String xml =
"<wmtsStore>" + "<name>demo</name>" + "<enabled>false</enabled>" + "</wmtsStore>";
MockHttpServletResponse response =
putAsServletResponse(
RestBaseController.ROOT_PATH + "/workspaces/sf/wmtsstores/demo",
xml,
"text/xml");
assertEquals(200, response.getStatus());
dom = getAsDOM(RestBaseController.ROOT_PATH + "/workspaces/sf/wmtsstores/demo.xml");
assertXpathEvaluatesTo("false", "/wmtsStore/enabled", dom);
assertFalse(catalog.getStoreByName("sf", "demo", WMTSStoreInfo.class).isEnabled());
}
代码示例来源:origin: org.geoserver/gs-restconfig
@Test
public void testPutNonDestructive() throws Exception {
WMTSStoreInfo wsi = catalog.getStoreByName("sf", "demo", WMTSStoreInfo.class);
wsi.setEnabled(true);
catalog.save(wsi);
assertTrue(wsi.isEnabled());
int maxConnections = wsi.getMaxConnections();
int readTimeout = wsi.getReadTimeout();
int connectTimeout = wsi.getConnectTimeout();
boolean useConnectionPooling = wsi.isUseConnectionPooling();
String xml = "<wmtsStore>" + "<name>demo</name>" + "</wmtsStore>";
MockHttpServletResponse response =
putAsServletResponse(
RestBaseController.ROOT_PATH + "/workspaces/sf/wmtsstores/demo",
xml,
"text/xml");
assertEquals(200, response.getStatus());
wsi = catalog.getStoreByName("sf", "demo", WMTSStoreInfo.class);
assertTrue(wsi.isEnabled());
assertEquals(maxConnections, wsi.getMaxConnections());
assertEquals(readTimeout, wsi.getReadTimeout());
assertEquals(connectTimeout, wsi.getConnectTimeout());
assertEquals(useConnectionPooling, wsi.isUseConnectionPooling());
}
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getConnectTimeout()方法的一些代码示例,展示了WMTSStoreInfo.getConne
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.setType()方法的一些代码示例,展示了WMTSStoreInfo.setType()的具体用法。这些代
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.isUseConnectionPooling()方法的一些代码示例,展示了WMTSStoreInfo.isU
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.isEnabled()方法的一些代码示例,展示了WMTSStoreInfo.isEnabled()的具体用法
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getId()方法的一些代码示例,展示了WMTSStoreInfo.getId()的具体用法。这些代码示例主
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.setName()方法的一些代码示例,展示了WMTSStoreInfo.setName()的具体用法。这些代
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.setCapabilitiesURL()方法的一些代码示例,展示了WMTSStoreInfo.setCapa
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.setEnabled()方法的一些代码示例,展示了WMTSStoreInfo.setEnabled()的具体
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getCapabilitiesURL()方法的一些代码示例,展示了WMTSStoreInfo.getCapa
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getName()方法的一些代码示例,展示了WMTSStoreInfo.getName()的具体用法。这些代
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.setWorkspace()方法的一些代码示例,展示了WMTSStoreInfo.setWorkspace(
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getWorkspace()方法的一些代码示例,展示了WMTSStoreInfo.getWorkspace(
本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getWebMapTileServer()方法的一些代码示例,展示了WMTSStoreInfo.getWeb
我是一名优秀的程序员,十分优秀!