The GeoServer dispatch system is based on a combination of reflection and spring. If you look for the classes WebFeatureService, WebMapService, and WebCoverageService you will see methods for each of the ows operations. You will also find spring bean declrations of the class org.geoserver.ows.Service which reference them.
This plugin is out of date but gives the general overview of how it works:
http://geoserver.org/display/GEOSDOC/3+A+Simple+PlugIn
And a working version of it is in svn:
http://svn.codehaus.org/geoserver/branches/2.0.x/src/community/hello/
If you are interested in contributing your code we can give you a community module, and i can put together the basic class for you to do the dispatch. Let me know.
-Justin
maven apache wrote:
2009/12/9 Jody Garnett <jody.garnett@anonymised.com <mailto:jody.garnett@anonymised.com>>
So you have a name? We like to be social around here ....
You will find that geoserver has a dispatcher and a framework in the
support of OGC style services. Have a look through the hello world
tutorial (and the rest of the developers guide). You will find that
requests are parsed into objects (which are then passed into the
code that processes them - called a Response). Some responses (like
those for WMS) have multiple back ends capable of different output
formats.
Sorry,You can call me JianFeng Zhang, I am a Chinese. To this topic:
I have seen the helloworld example,is it under version 2.0?
What confusing me is the request dispatch:
Take the wcs for example, I found a AbstactControl in org.geoserver.ows.Dispatcher,is it the front controller for all the ows request?
However I do not find the code judging the request type, in my opinion it should have some codes like the following:
-----------
String serviceType=Request.getParameter("service").......
if(serviceType.equals("WCS")}
// do the logic.....
}
-----------------------
So how does geoserver dispatch the request?
Also I found the wcs,wms,wps extend a AbstactService,and the related modules contains some KVPReaders,.....
For my case, I have a SOS service already, which contains a servlet named SOSServlet to handle the request and return a response,I wonder if I can add it to geoserver by dispatch the request to the SOSServlet?
Regards,
Jody
On 09/12/2009, at 1:48 PM, maven apache wrote:
Hi;
I want to know the architectural of the ows (such as wcs
wms),that's to say how to integrate them to the geoserver,and I
follow the docs in the geoserver website:
http://docs.geoserver.org/2.0.x/en/developer/programming-guide/ows-services/index.html
But it has no contents.
In my opinion each ows should own a service something like
"wcsServlet, wmsServer...." to handle the request from the client
side,however I have not found any servlets in the wcs or wms
module, also not in the wps module.
I know geoserver use spring as the ioc container which make it a
little hard for my understanding. I appreciate some one can tell
me the work flow of a ows, about how to receive
the original request, how to dispatch ,handle it? Since I have a ows (SOS) already, I try to add it to the geoserver, 
Looking forward for reply.
Thanks.
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
<mailto:Geoserver-devel@lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
------------------------------------------------------------------------
------------------------------------------------------------------------------
Return on Information:
Google Enterprise Search pays you back
Get the facts.
http://p.sf.net/sfu/google-dev2dev
------------------------------------------------------------------------
_______________________________________________
Geoserver-devel mailing list
Geoserver-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-devel
--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.