On Thu, Feb 14, 2013 at 12:19 AM, Björn Höfling <
[email protected]> wrote:
> Just to be sure, is it really that simple (OK, this is more
> pseudocode, check for NPE, etc):
>
>
> public class FeatureInfoDispatcherCb implements DispatcherCallback {
>
> @Override
> public Request init(Request request) {
> Map kvp = request.getKvp();
> String layers=(String) kvp.get("LAYERS");
> layers = layers.replace("_raster", "_vector");
> //...
> kvp = request.getRawKvp();
> //...
> return request;
>
> What's the difference between getKvp and getRawKvp? It seams as if I
> have to manipulate at least the raw version, otherwise I get back the
> original FeatureInfo.
>
The raw KVP is a string to string or String[] map (if the layers parameter
is repeated),
the kvp is a parsed map, e.g., if we are talking bgcolor you'll find a
Color as the
value, no more the string
Cheers
Andrea
--
==
Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.
==
Ing. Andrea Aime
@geowolf
Technical Lead
GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549
http://www.geo-solutions.it
http://twitter.com/geosolutions_it
-------------------------------------------------------
------------------------------------------------------------------------------
Free Next-Gen Firewall Hardware Offer
Buy your Sophos next-gen firewall before the end March 2013
and get the hardware for free! Learn more.
http://p.sf.net/sfu/sophos-d2d-feb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users