Hi folks,
I'm working on a project with a requirement as follows. Basically I want to
be able to make a normal OGC (WMS, WFS, etc...) request to GeoServer, but I
don't want it to fully execute. What I want is it to do pretty much all of
the request parsing, but then return right before it goes to execute that
request.
The use case for this project is that the information from the parsed
request is used to do some on-demand database setup and security that needs
to happen before the request is executed.
However, I can see this perhaps being a useful debugging feature as well.
Just like other tools have a "dry run" or a "simulate" mode to allow you to
try out something before actually doing it. Along that vein it could be
useful to be able to do the same for a GeoServer request, to see how it
will be processed and parsed, etc... before actually executing it, perhaps
because it is a request that may take a long time, etc...
The change I am proposing is as follows. First add a special key value pair
that will be recognized by the dispatcher (like simulate=true or something
along those lines). When the flag is set the dispatcher will do all of the
request parsing and dispatch it normally does, except for when it gets to
the point where it would execute the operation it would simply return with
a response that includes a representation of the request it just parsed.
For the representation of the response I was thinking output similar to the
output of what the RequestObjectLogger produces, only encoded as something
structured like JSON and/or XML.
I was also thinking that for such a request we might try to utilize an
appropriate http response code. The *202 Accepted* looks like it could
apply:
*The request has been accepted for processing, but the processing has not
been completed*
And that's it. Let me know what y'all think. If folks feel this one is
worth of a GSIP I am happy to whip one up.
Thanks!
-Justin
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/intel
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel