Hi,
in this mail I'm proposing that we extend the parameter and result process
annotation with a meta key that would allow the specification of extra
metadata meant to be added in the Param metadata map.
The following example is geared towards specifying a mimeTypes
and a selection entries in the Param metadata map (which are going to be
used
by GeoServer WPS to handle processes that do their own input parsing and
output
data generation):
@DescribeResult(name = "result", description = "Output raster",
meta = {@KVP("mimeTypes=application/json,text/xml",
@KVP("selection=outputMimeType")}
RawData execute( ...
@DescribeParameter(name = "data", description = "Input features") ,
meta =
{@KVP("mimeTypes=application/json", "text/xml"}) RawData myInput
...
String outputMimeType);
The @KVP annotation is meant to have values in the key=value form reducing
as much as possible the extra boilerplate.
Now that I think about it, I guess the following would also be possible, and
even more compact:
@DescribeResult(name = "result", description = "Output raster",
meta = {"mimeTypes=application/json,text/xml",
"selection=outputMimeType"}
RawData execute( ...
@DescribeParameter(name = "data", description = "Input features") ,
meta =
{"mimeTypes=application/json,text/xml") RawData myInput
...
String outputMimeType);
Feedback?
Cheers
Andrea
--
==
Meet us at GEO Business 2014! in London! Visit http://goo.gl/fES3aK
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
-------------------------------------------------------
------------------------------------------------------------------------------
Time is money. Stop wasting it! Get your web API in 5 minutes.
www.restlet.com/download
http://p.sf.net/sfu/restlet
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel