本文整理了Java中org.geoserver.ows.Request.setRawKvp
方法的一些代码示例,展示了Request.setRawKvp
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Request.setRawKvp
方法的具体详情如下:
包路径:org.geoserver.ows.Request
类名称:Request
方法名:setRawKvp
[英]Allows callbacks to override the parsed kvp map
[中]允许回调覆盖已解析的kvp映射
代码示例来源:origin: geoserver/geoserver
void preParseKVP(Request req) throws ServiceException {
HttpServletRequest request = req.getHttpRequest();
// unparsed kvp set
Map kvp = request.getParameterMap();
if (kvp == null || kvp.isEmpty()) {
req.setKvp(new HashMap());
// req.kvp = null;
return;
}
// track parsed kvp and unparsd
Map parsedKvp = KvpUtils.normalize(kvp);
Map rawKvp = new KvpMap(parsedKvp);
req.setKvp(parsedKvp);
req.setRawKvp(rawKvp);
}
代码示例来源:origin: org.geoserver/gwc
@Override
public Request init(Request request) {
String context = request.getContext();
if (context == null || !context.startsWith("gwc/service")) {
return null;
}
Map<String, String> kvp = new HashMap<String, String>();
kvp.put("service", "gwc");
kvp.put("version", "1.0.0");
kvp.put("request", "dispatch");
request.setKvp(kvp);
request.setRawKvp(kvp);
return request;
}
代码示例来源:origin: org.geoserver.community/gs-oseo-core
kvp.put("service", "oseo");
request.setRawKvp(kvp);
} else if ("search".equals(request.getRequest())) {
kvp.put("service", "oseo");
request.setRawKvp(kvp);
} else {
代码示例来源:origin: org.geoserver/gs-gwc
request.setRawKvp(kvp);
代码示例来源:origin: org.geoserver/gs-wms
@Test
public void testExpandRequestVariable() throws Exception {
// setup environment
Request request = new Request();
Map kvp = new CaseInsensitiveMap(new HashMap());
kvp.put("time", "2008-10-31T00:00:00.000Z");
request.setRawKvp(kvp);
Dispatcher.REQUEST.set(request);
TextDecoration decoration = new TextDecoration();
Map<String, String> options = new HashMap<>();
options.put(
"message",
"<#setting datetime_format=\"yyyy-MM-dd'T'HH:mm:ss.SSSX\">\n"
+ "<#setting locale=\"en_US\">\n"
+ "<#setting time_zone=\"GMT\">"
+ "<#if time??>\n"
+ "${time?datetime?string[\"dd.MM.yyyy\"]}"
+ "</#if>");
decoration.loadOptions(options);
GetMapRequest getMap = new GetMapRequest();
WMSMapContent wmsMapContent = new WMSMapContent(getMap);
String message = decoration.evaluateMessage(wmsMapContent);
assertEquals("31.10.2008", message);
}
}
代码示例来源:origin: org.geoserver.community/gs-geofence
Request gsRequest = new Request();
gsRequest.setKvp(kvp);
gsRequest.setRawKvp(kvp);
String service = "WMS";
String requestName = "GetMap";
代码示例来源:origin: org.geoserver.extension/gs-geofence
Request gsRequest = new Request();
gsRequest.setKvp(kvp);
gsRequest.setRawKvp(kvp);
String service = "WMS";
String requestName = "GetMap";
代码示例来源:origin: org.geoserver.community/gs-colormap
Request request = new Request();
request.setKvp(params);
request.setRawKvp(params);
Dispatcher.REQUEST.set(request);
DynamicGetLegendGraphicDispatcherCallback callback =
内容来源于网络,如有侵权,请联系作者删除!