ArcIMS学习之 HTML Viewer定制笔记 续二(2.Servlet与请求响应过程)

博客主要介绍了Servlet Connector的入口Servlet参数,解释影像虚拟服务请求重定向原因及规则。还阐述了PostForm相关参数,详细说明了请求与响应过程,包括Request经Servlet Connector到Application Server,最终由Spatial Server返回响应,响应格式有ArcXML和Feature Stream。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

4. Servlet Connector的入口Servlet:
 com.esri.esrimap.Esrimap 参数
ServiceName  ArcIMS 服务名
ClientVersion  ArcIMS 版本号
Form    true请求来自HTML的Form
Encode  

* 请求重定向 CustomService 参数
原因:
 影像虚拟服务(Image MapService) 不提供"属性信息","几何信息","地理编码"等的功能,所以请求被重定向到其它的虚拟服务。
即:
 When sending a request other than GET_IMAGE to an image MapService,redirection is required;
 Redirection is achieved in action attribute of the PostForm:
GET_FEATURES 
 CustomService = Query
GET_GEOCODE
 CustomService = Geocode
GET_EXTRACT
 CustomService = Extract
Http://caesar1:8888/servlet/com.esri.esrimap.Esrimap?ServiceName=Beijing&CustomService=Query&ClientVersion=3.1&Form=true

5.PostForm
ArcXMLRequest(required) ArcXML request being sent to the server
JavaScriptFunction(optional) 指定 jsForm.htm 中的处理response 函数名,默认为passXML()
RedireURL(optional)
BgColor(optional)
FormCharset(optional)

6.请求与响应的过程:
 1>Request --> Servlet Connector -->Application Server
 Servlet Connector对传来的Request进行解析,只传给Application Server :
  * ServiceName
  * ArcXMLRequest
 其余参数由Servlet Connector保留对响应(Response)的格式设置

 2>对Servlet Connector的调用为:
  http://hostName/servlet/com.esri.esrimap.Esrimap

 3>响应:Application Server将参数传递给 Spatial Server,Spatial Server将响应
 (Response)返回给 Application Server,所有的 Response只有两种:
 * ArcXML  包含属性信息、图片的URL(HTML Viewer只能处理这一种)
 * Feature Stream 二进制压缩要素流
 
 4>the Servlet Connector Creates a new HTML page based on
 * Value of the input elements specified in the request
 * Default values of the input elements
 * The Response ArcXML

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值