public class WMSServlet extends HttpServlet implements InterfaceContextAware
WMS Servlet。
该类继承自 HttpServlet,主要用于接受客户端发送的有关 WMS 服务的 HTTP 请求,并将 HTTP 响应返回给客户端。
| 构造器和说明 |
|---|
WMSServlet() |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
destroy()
销毁对象。
|
protected java.util.Map<java.lang.String,java.lang.String> |
getParameters(HttpServletRequest request)
获取有关 WMS 服务的 HTTP 请求参数。
|
void |
init()
初始化。
|
protected void |
outputLegendGraphic(HttpServletResponse response, java.util.Map<java.lang.String,java.lang.String> paramMap) |
void |
service(HttpServletRequest request, HttpServletResponse response)
响应客户端请求。
|
void |
setInterfaceContext(InterfaceContext context)
设置服务接口上下文。
|
public void init()
throws ServletException
初始化。
ServletExceptionpublic void setInterfaceContext(InterfaceContext context)
setInterfaceContext 在接口中 InterfaceContextAwarecontext - 服务接口上下文。public void destroy()
public void service(HttpServletRequest request,
HttpServletResponse response)
request - 客户端发送的有关 WMS 服务的 HTTP 请求信息。response - 服务器端返回给客户端的 HTTP 响应结果。
protected void outputLegendGraphic(HttpServletResponse response,
java.util.Map<java.lang.String,java.lang.String> paramMap)
throws OGCException
OGCExceptionprotected java.util.Map<java.lang.String,java.lang.String> getParameters(HttpServletRequest request)
request - 客户端发送的有关 WMS 服务的 HTTP 请求信息。