本文整理了Java中org.geoserver.ows.Request.setRequest
方法的一些代码示例,展示了Request.setRequest
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setRequest
方法的具体详情如下:
包路径:org.geoserver.ows.Request
类名称:Request
方法名:setRequest
[英]Allows call backs to override the requested operation
[中]允许回调覆盖请求的操作
代码示例来源:origin: geoserver/geoserver
req.setVersion(
normalizeVersion(normalize(KvpUtils.getSingleValue(req.getKvp(), "version"))));
req.setRequest(normalize(KvpUtils.getSingleValue(req.getKvp(), "request")));
req.setOutputFormat(normalize(KvpUtils.getSingleValue(req.getKvp(), "outputFormat")));
req.setRequest(normalize((String) xml.get("request")));
req.setRequest(normalize((String) map.get("request")));
req.setRequest(req.getService());
代码示例来源:origin: geoserver/geoserver
req.setRequest(normalize(KvpUtils.getSingleValue(req.getKvp(), "request")));
exists = operationExists(req, serviceDescriptor);
代码示例来源:origin: geoserver/geoserver
request.setRequest("GetCapabilities");
Dispatcher.REQUEST.set(request);
assertNull(catalog.getLayerByName(getLayerId(SystemTestData.BASIC_POLYGONS)));
代码示例来源:origin: geoserver/geoserver
request.setRequest("GetCapabilities");
Dispatcher.REQUEST.set(request);
assertNull(catalog.getLayerByName(getLayerId(SystemTestData.BASIC_POLYGONS)));
代码示例来源:origin: geoserver/geoserver
request.setRequest("GetCapabilities");
Dispatcher.REQUEST.set(request);
assertNull(catalog.getLayerByName(getLayerId(SystemTestData.BASIC_POLYGONS)));
代码示例来源:origin: org.geoserver.security/gs-security-tests
@Before
public void setUp() throws Exception {
super.setUp();
Dispatcher.REQUEST.set(new Request());
Dispatcher.REQUEST.get().setRequest("GetCapabilities");
populateCatalog();
}
代码示例来源:origin: org.geoserver.extension/control-flow
Request buildRequest(String service, String request, String outputFormat) {
Request r = new Request();
r.setService(service);
r.setRequest(request);
r.setOutputFormat(outputFormat);
return r;
}
}
代码示例来源:origin: org.geoserver.community/gs-geofence
@Test
public void testWmsLimited() {
if (!IS_GEOFENCE_AVAILABLE) {
return;
}
UsernamePasswordAuthenticationToken user =
new UsernamePasswordAuthenticationToken("wmsuser", "wmsuser");
// check layer in the sf workspace with a wfs request
Request request = new Request();
request.setService("WFS");
request.setRequest("GetFeature");
Dispatcher.REQUEST.set(request);
LayerInfo generic = catalog.getLayerByName(getLayerId(MockData.GENERICENTITY));
VectorAccessLimits vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
assertEquals(Filter.EXCLUDE, vl.getReadFilter());
assertEquals(Filter.EXCLUDE, vl.getWriteFilter());
// now fake a getmap request (using a service and request with a different case than the
// geofenceService)
request = new Request();
request.setService("wms");
Dispatcher.REQUEST.set(request);
vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
assertEquals(Filter.INCLUDE, vl.getReadFilter());
assertEquals(Filter.INCLUDE, vl.getWriteFilter());
}
代码示例来源:origin: org.geoserver.extension/gs-geofence
@Test
public void testWmsLimited() {
if (!IS_GEOFENCE_AVAILABLE) {
return;
}
UsernamePasswordAuthenticationToken user =
new UsernamePasswordAuthenticationToken("wmsuser", "wmsuser");
// check layer in the sf workspace with a wfs request
Request request = new Request();
request.setService("WFS");
request.setRequest("GetFeature");
Dispatcher.REQUEST.set(request);
LayerInfo generic = catalog.getLayerByName(getLayerId(MockData.GENERICENTITY));
if (generic != null) {
VectorAccessLimits vl =
(VectorAccessLimits) accessManager.getAccessLimits(user, generic);
assertEquals(Filter.INCLUDE, vl.getReadFilter());
assertEquals(Filter.INCLUDE, vl.getWriteFilter());
// now fake a getmap request (using a service and request with a different case than the
// geofenceService)
request = new Request();
request.setService("wms");
Dispatcher.REQUEST.set(request);
vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
assertEquals(Filter.INCLUDE, vl.getReadFilter());
assertEquals(Filter.INCLUDE, vl.getWriteFilter());
}
}
代码示例来源:origin: org.geoserver.extension/gs-geofence
request.setRequest("GetFeature");
Dispatcher.REQUEST.set(request);
request.setRequest("gETmAP");
Dispatcher.REQUEST.set(request);
vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
代码示例来源:origin: org.geoserver.community/gs-geofence
request.setRequest("GetFeature");
Dispatcher.REQUEST.set(request);
request.setRequest("gETmAP");
Dispatcher.REQUEST.set(request);
vl = (VectorAccessLimits) accessManager.getAccessLimits(user, generic);
内容来源于网络,如有侵权,请联系作者删除!