GeoServer学习手记(五):Servlet及HTTP派发过程之二
粟卫民http://www.gisdev.cn/ http://blog.csdn.net/suen/ 日期:2009-10-29
保留所有版权。如需转载,请联系作者,并在醒目位置注明出处
接上篇《GeoServer学习手记(四):Servlet及HTTP派发过程之一》(http://blog.csdn.net/suen/archive/2009/11/02/4759332.aspx)。
Request
A request can be sent to Geoserver as a GET or a POST, both are handled similarly.
The getFeature process keeps the distinction between a GET and POST until it hits the FeatureRequest object: org.vfny.geoserver.wfs.requests.FeatureRequest. Once you hit FeatureRequest, the code isn't forked and the request works from one spot, execute(). Read on for more details.
Here is an example HTTP GET request
http://localhost:8080/geoserver/wfs?
request=getfeature&
service=wfs&
version=1.0.0&
typename=states&
filter=xmlns:ogc="http://ogc.org" xmlns:gml="http://www.opengis.net/gml">the_geom-73.99312376470733,40.76203427979042 -73.9239210030026,40.80129519821393
Try it If you have Geoserver set up locally on port 8080, you can enter the above URL and Geoserver will process it. |