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. |
Here is an example HTTP XML POST request
http://localhost:8080/geoserver/wfs

本文是GeoServer学习系列的一部分,探讨了如何处理HTTP GET和POST请求,特别是针对GetFeature请求的处理流程。从Servlet容器如何将请求路由到WfsDispatcher,到不同请求类型的解析,以及如何根据请求创建相应的服务。
:Servlet及HTTP派发过程之二&spm=1001.2101.3001.5002&articleId=4759398&d=1&t=3&u=ca612ac5ec9c433093d7f13711c13eda)
808

被折叠的 条评论
为什么被折叠?



