org.geoserver.ows.Request.setRequest()方法的使用及代码示例

x33g5p2x  于2022-01-29 转载在 其他  
字(4.6k)|赞(0)|评价(0)|浏览(253)

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

Request.setRequest介绍

[英]Allows call backs to override the requested operation
[中]允许回调覆盖请求的操作

代码示例

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

  1. req.setVersion(
  2. normalizeVersion(normalize(KvpUtils.getSingleValue(req.getKvp(), "version"))));
  3. req.setRequest(normalize(KvpUtils.getSingleValue(req.getKvp(), "request")));
  4. req.setOutputFormat(normalize(KvpUtils.getSingleValue(req.getKvp(), "outputFormat")));
  5. req.setRequest(normalize((String) xml.get("request")));
  6. req.setRequest(normalize((String) map.get("request")));
  7. req.setRequest(req.getService());

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

  1. req.setRequest(normalize(KvpUtils.getSingleValue(req.getKvp(), "request")));
  2. exists = operationExists(req, serviceDescriptor);

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

  1. request.setRequest("GetCapabilities");
  2. Dispatcher.REQUEST.set(request);
  3. assertNull(catalog.getLayerByName(getLayerId(SystemTestData.BASIC_POLYGONS)));

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

  1. request.setRequest("GetCapabilities");
  2. Dispatcher.REQUEST.set(request);
  3. assertNull(catalog.getLayerByName(getLayerId(SystemTestData.BASIC_POLYGONS)));

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

  1. request.setRequest("GetCapabilities");
  2. Dispatcher.REQUEST.set(request);
  3. assertNull(catalog.getLayerByName(getLayerId(SystemTestData.BASIC_POLYGONS)));

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

  1. @Before
  2. public void setUp() throws Exception {
  3. super.setUp();
  4. Dispatcher.REQUEST.set(new Request());
  5. Dispatcher.REQUEST.get().setRequest("GetCapabilities");
  6. populateCatalog();
  7. }

代码示例来源:origin: org.geoserver.extension/control-flow

  1. Request buildRequest(String service, String request, String outputFormat) {
  2. Request r = new Request();
  3. r.setService(service);
  4. r.setRequest(request);
  5. r.setOutputFormat(outputFormat);
  6. return r;
  7. }
  8. }

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

  1. @Test
  2. public void testWmsLimited() {
  3. if (!IS_GEOFENCE_AVAILABLE) {
  4. return;
  5. }
  6. UsernamePasswordAuthenticationToken user =
  7. new UsernamePasswordAuthenticationToken("wmsuser", "wmsuser");
  8. // check layer in the sf workspace with a wfs request
  9. Request request = new Request();
  10. request.setService("WFS");
  11. request.setRequest("GetFeature");
  12. Dispatcher.REQUEST.set(request);
  13. LayerInfo generic = catalog.getLayerByName(getLayerId(MockData.GENERICENTITY));
  14. VectorAccessLimits vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
  15. assertEquals(Filter.EXCLUDE, vl.getReadFilter());
  16. assertEquals(Filter.EXCLUDE, vl.getWriteFilter());
  17. // now fake a getmap request (using a service and request with a different case than the
  18. // geofenceService)
  19. request = new Request();
  20. request.setService("wms");
  21. Dispatcher.REQUEST.set(request);
  22. vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
  23. assertEquals(Filter.INCLUDE, vl.getReadFilter());
  24. assertEquals(Filter.INCLUDE, vl.getWriteFilter());
  25. }

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

  1. @Test
  2. public void testWmsLimited() {
  3. if (!IS_GEOFENCE_AVAILABLE) {
  4. return;
  5. }
  6. UsernamePasswordAuthenticationToken user =
  7. new UsernamePasswordAuthenticationToken("wmsuser", "wmsuser");
  8. // check layer in the sf workspace with a wfs request
  9. Request request = new Request();
  10. request.setService("WFS");
  11. request.setRequest("GetFeature");
  12. Dispatcher.REQUEST.set(request);
  13. LayerInfo generic = catalog.getLayerByName(getLayerId(MockData.GENERICENTITY));
  14. if (generic != null) {
  15. VectorAccessLimits vl =
  16. (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
  17. assertEquals(Filter.INCLUDE, vl.getReadFilter());
  18. assertEquals(Filter.INCLUDE, vl.getWriteFilter());
  19. // now fake a getmap request (using a service and request with a different case than the
  20. // geofenceService)
  21. request = new Request();
  22. request.setService("wms");
  23. Dispatcher.REQUEST.set(request);
  24. vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
  25. assertEquals(Filter.INCLUDE, vl.getReadFilter());
  26. assertEquals(Filter.INCLUDE, vl.getWriteFilter());
  27. }
  28. }

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

  1. request.setRequest("GetFeature");
  2. Dispatcher.REQUEST.set(request);
  3. request.setRequest("gETmAP");
  4. Dispatcher.REQUEST.set(request);
  5. vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);

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

  1. request.setRequest("GetFeature");
  2. Dispatcher.REQUEST.set(request);
  3. request.setRequest("gETmAP");
  4. Dispatcher.REQUEST.set(request);
  5. vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);

相关文章