Hi Andrea,
Andrea Aime wrote:
Justin Deoliveira ha scritto:
Hi all,
Looking more at Spring I wrote a little article describing what migrating an existing subsystem of GeoServer (Request/Response) to use Spring would look like.
http://docs.codehaus.org/display/GEOSDEV/Springing+GeoServer
That's basically what I had in mind, but I see a little problem: are
you sure every request will have the SERVICE and REQUEST parameters?
GeoServer as it stands today requires the SERVICE paramter to function or it will choke. That being said you are right in that there is redundancy in terms of wms being in the context path and in the query string parameter.
The latter being how to map to the particular request to the specific WFS dispatcher. With the new "extension-point" based dispatch system this wont be required.
I thought the SERVICE called would be the prefix used in:
http://…/geoserver/wms?service=WMS&request=PutStyles
basically contains the indication of WMS twice, and there is no space for
versioning. What if we used the first part after "geoserver" to determine
the service, something like the following:
http://…/geoserver/wms-1.0?service=xxx&request=yyy
-> service wms and version 1.0
I am pretty sure the spec says that "VERSION" is a required query string parameter as well.
Plus, let's say I'd like to expose something that has nothing to do with
opengis, or maybe I want to publish the opengis services thru a Burlap/Hessian/SOAP
approach, and thus I don't have a get/post request with the parameters as above.
I can't do that with the proposed approach, right?
I believe the REQUEST parsing should be left to a plugin class, which in turns, if
it likes, can parse the post/get request and delegate to other plugins for actual
request handling.
I think this is a good idea, and I would definitley be into doing this, however I think its out of scope in the short term. The work required is just going to be too drastic of a change and I am not sure we have a business driver for it yet.
Also I know the FROGS people have some of this figured out so I dont want to spend time reinventing the wheel in GeoServer if we dont have to. That being said we need to find someone with time on their hands to look at their framework.
Great feedback Andrea, thanks!!
What do you think?
Best regards
Andrea Aime
--
Justin Deoliveira
The Open Planning Project
jdeolive@anonymised.com