gpt4 book ai didi

org.geoserver.wms.WMSInfoImpl.setId()方法的使用及代码示例

转载 作者:知者 更新时间:2024-03-24 19:01:05 28 4
gpt4 key购买 nike

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

WMSInfoImpl.setId介绍

暂无

代码示例

代码示例来源:origin: org.geoserver/wms

public ServiceInfo load(LegacyServicesReader reader, GeoServer geoServer)
    throws Exception {
  WMSInfoImpl wms = new WMSInfoImpl();
  wms.setId( "wms" );

代码示例来源:origin: org.geoserver/gs-wms

@SuppressWarnings("unchecked")
public WMSInfo load(LegacyServicesReader reader, GeoServer geoServer) throws Exception {
  WMSInfoImpl wms = new WMSInfoImpl();
  wms.setId("wms");

代码示例来源:origin: org.geoserver.community/gs-jms-geoserver

@Test
public void testAddService() throws Exception {
  // create a WMS service for the test workspace
  WMSInfoImpl serviceInfo = new WMSInfoImpl();
  serviceInfo.setName("TEST-WMS-NAME");
  serviceInfo.setId("TEST-WMS-ID");
  serviceInfo.setWorkspace(workspace);
  serviceInfo.setAbstract("TEST-WMS-ABSTRACT");
  // add the new service to GeoServer
  getGeoServer().add(serviceInfo);
  // waiting for a service add event
  List<Message> messages =
      JmsEventsListener.getMessagesByHandlerKey(
          5000, (selected) -> selected.size() >= 1, SERVICE_EVENT_HANDLER_KEY);
  // let's check if the new added service was correctly published
  assertThat(messages.size(), is(1));
  List<JMSServiceModifyEvent> serviceEvents =
      getMessagesForHandler(messages, SERVICE_EVENT_HANDLER_KEY, serviceHandler);
  assertThat(serviceEvents.size(), is(1));
  assertThat(serviceEvents.get(0).getEventType(), is(JMSEventType.ADDED));
  // check the service content
  ServiceInfo publishedService = serviceEvents.get(0).getSource();
  assertThat(publishedService.getName(), is("TEST-WMS-NAME"));
  assertThat(publishedService.getId(), is("TEST-WMS-ID"));
  assertThat(publishedService.getAbstract(), is("TEST-WMS-ABSTRACT"));
}

代码示例来源:origin: org.geoserver/gs-wms

wmsInfo.setId("wms");
wmsInfo.setName("WMS");
wmsInfo.setEnabled(true);

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