org.geoserver.platform.Service.getId()方法的使用及代码示例

x33g5p2x  于2022-01-30 转载在 其他  
字(5.9k)|赞(0)|评价(0)|浏览(120)

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

Service.getId介绍

暂无

代码示例

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

public String toString() {
    return "Operation( " + id + ", " + service.getId() + " )";
  }
}

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

Service sBean = (Service) itr.next();
if (sBean.getId().equalsIgnoreCase(id)) {
  matches.add(sBean);

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

+ service.getId()
          + " even if the service implements ServiceInfo, thus could not check if the service is enabled");
} else {
      + service.getId()
      + " thus could not check if the service is enabled");

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

public String toString() {
    return "Operation( " + id + ", " + service.getId() + " )";
  }
}

代码示例来源:origin: stackoverflow.com

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(location={"classpath:location/of/your/spring.xml"})
public class MySpringTest {
  @Autowired
  Service service;

  @Test
  public void fooTest() {
    System.out.println(service.getId());
    Assert.assertEquals(100, service.getId());
  }
}

代码示例来源:origin: org.geoserver.web/gs-web-sec-core

/** Returns a sorted list of workspace names */
ArrayList<String> getServiceNames() {
  ArrayList<String> result = new ArrayList<String>();
  for (Service ows : GeoServerExtensions.extensions(Service.class)) {
    if (!result.contains(ows.getId())) result.add(ows.getId());
  }
  Collections.sort(result);
  result.add(0, "*");
  return result;
}

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

/** Returns a sorted list of workspace names */
protected List<String> getServiceNames() {
  SortedSet<String> resultSet = new TreeSet<String>();
  for (Service ows : GeoServerExtensions.extensions(Service.class)) {
    resultSet.add(ows.getId().toUpperCase());
  }
  return new ArrayList<String>(resultSet);
}

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

public boolean canHandle(Operation operation) {
  return "DescribeVersionedFeatureType".equalsIgnoreCase(operation
      .getId())
      && operation.getService().getId().equalsIgnoreCase("wfsv");
}

代码示例来源:origin: org.geoserver.extension/gs-wps-core

@Override
public boolean canHandle(Operation operation) {
  String operationId = operation.getId();
  return ("GetExecutionStatus".equalsIgnoreCase(operationId)
          || "GetExecutionResult".equalsIgnoreCase(operationId))
      && operation.getService().getId().equals("wps");
}

代码示例来源:origin: org.geoserver.extension/wps-core

@Override
public boolean canHandle(Operation operation) {
  String operationId = operation.getId();
  return ("GetExecutionStatus".equalsIgnoreCase(operationId) || "GetExecutionResult"
      .equalsIgnoreCase(operationId))
      && operation.getService().getId().equals("wps");
}

代码示例来源:origin: org.geoserver.extension/wps-core

@Override
public boolean canHandle(Operation operation) {
  // is this a wps capabilities request?
  return "GetCapabilities".equalsIgnoreCase(operation.getId()) &&
    operation.getService().getId().equals("wps");
}

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

public boolean canHandle(Operation operation) {
  return "DescribeVersionedFeatureType".equalsIgnoreCase(operation
      .getId())
      && operation.getService().getId().equalsIgnoreCase("wfsv");
}

代码示例来源:origin: org.geoserver.extension/gs-wps-core

@Override
public boolean canHandle(Operation operation) {
  // is this a wps capabilities request?
  return "GetCapabilities".equalsIgnoreCase(operation.getId())
      && operation.getService().getId().equals("wps");
}

代码示例来源:origin: org.geoserver.extension/gs-wps-core

@Override
public boolean canHandle(Operation operation) {
  return "DescribeProcess".equalsIgnoreCase(operation.getId())
      && operation.getService().getId().equals("wps");
}

代码示例来源:origin: org.geoserver.extension/wps-core

@Override
public boolean canHandle(Operation operation) {
  return "DescribeProcess".equalsIgnoreCase(operation.getId()) &&
    operation.getService().getId().equals("wps");
}

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

/** Makes sure this triggers only */
public boolean canHandle(Operation operation) {
  // is this a wfs capabilities request?
  return "GetCapabilities".equalsIgnoreCase(operation.getId())
      && operation.getService().getId().equals("wfs");
}

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

/** Makes sure this triggers only */
public boolean canHandle(Operation operation) {
  return "GetCapabilities".equalsIgnoreCase(operation.getId())
      && operation.getService().getId().equals("wcs")
      && operation.getService().getVersion().toString().equals("1.0.0");
}

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

/** Makes sure this triggers only */
@Override
public boolean canHandle(Operation operation) {
  return "GetCapabilities".equalsIgnoreCase(operation.getId())
      && operation.getService().getId().equals(WCS20Const.SERVICE_NAME)
      && (operation.getService().getVersion().toString().equals(WCS20Const.V201)
          || operation.getService().getVersion().toString().equals(WCS20Const.V20));
}

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

/**
 * Makes sure this triggers only
 * </p>
 */
public boolean canHandle(Operation operation) {
  // is this a wcs 1.1.1 or 1.1.0 one?
  return "GetCapabilities".equalsIgnoreCase(operation.getId()) && 
      operation.getService().getId().equals("wcs") &&
      (operation.getService().getVersion().toString().equals("1.1.0") ||
          operation.getService().getVersion().toString().equals("1.1.1"));
}

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

/** Makes sure this triggers only */
public boolean canHandle(Operation operation) {
  // is this a wcs 1.1.1 or 1.1.0 one?
  return "GetCapabilities".equalsIgnoreCase(operation.getId())
      && operation.getService().getId().equals("wcs")
      && (operation.getService().getVersion().toString().equals("1.1.0")
          || operation.getService().getVersion().toString().equals("1.1.1"));
}

相关文章