gpt4 book ai didi

org.geoserver.catalog.WMTSStoreInfo.getConnectTimeout()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 10:49:05 25 4
gpt4 key购买 nike

本文整理了Java中org.geoserver.catalog.WMTSStoreInfo.getConnectTimeout()方法的一些代码示例,展示了WMTSStoreInfo.getConnectTimeout()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WMTSStoreInfo.getConnectTimeout()方法的具体详情如下:
包路径:org.geoserver.catalog.WMTSStoreInfo
类名称:WMTSStoreInfo
方法名:getConnectTimeout

WMTSStoreInfo.getConnectTimeout介绍

暂无

代码示例

代码示例来源:origin: geoserver/geoserver

public int getConnectTimeout() {
  return delegate.getConnectTimeout();
}

代码示例来源:origin: geoserver/geoserver

/**
 * @param source
 * @param target
 */
private void setConnectionParameters(final WMTSStoreInfo source, WMTSStoreInfo target) {
  target.setCapabilitiesURL(source.getCapabilitiesURL());
  target.setUsername(source.getUsername());
  target.setPassword(source.getPassword());
  target.setUseConnectionPooling(source.isUseConnectionPooling());
  target.setMaxConnections(source.getMaxConnections());
  target.setConnectTimeout(source.getConnectTimeout());
  target.setReadTimeout(source.getReadTimeout());
}

代码示例来源:origin: geoserver/geoserver

: WMTSStoreInfoImpl.DEFAULT_MAX_CONNECTIONS);
if (wmtsStore.getConnectTimeout() <= 0) {
  wmtsStore.setConnectTimeout(
      connectTimeout != null && connectTimeout.intValue() > 0

代码示例来源: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());
}

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com