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

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

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

Service.equals介绍

暂无

代码示例

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

public boolean equals(Object obj) {
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof Operation)) {
    return false;
  }
  Operation other = (Operation) obj;
  if (!id.equals(other.id)) {
    return false;
  }
  if (!service.equals(other.service)) {
    return false;
  }
  return true;
}

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

public boolean equals(Object obj) {
  if (obj == null) {
    return false;
  }
  if (!(obj instanceof Operation)) {
    return false;
  }
  Operation other = (Operation) obj;
  if (!id.equals(other.id)) {
    return false;
  }
  if (!service.equals(other.service)) {
    return false;
  }
  return true;
}

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

@Override
public Service serviceDispatched(Request request, Service service) throws ServiceException {
  Service wfs3 =
      this.wfs3.getOrCompute(() -> (Service) GeoServerExtensions.bean("wfsService-3.0"));
  Service fallback =
      this.fallback.getOrCompute(
          () -> (Service) GeoServerExtensions.bean("wfsService-2.0"));
  if (wfs3.equals(service) && "GetCapabilities".equals(request.getRequest())) {
    request.setServiceDescriptor(fallback);
    return fallback;
  }
  return service;
}

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

Service wfs3 =
    this.wfs3.getOrCompute(() -> (Service) GeoServerExtensions.bean("wfsService-3.0"));
if (wfs3.equals(request.getServiceDescriptor())) {
  String header = request.getHttpRequest().getHeader(HttpHeaders.ACCEPT);
  Object parsedRequest = operation.getParameters()[0];

相关文章