com.supermap.services.wms
Class WMSServlet
- java.lang.Object
-
- HttpServlet
-
- com.supermap.services.wms.WMSServlet
-
- All Implemented Interfaces:
- InterfaceContextAware
public class WMSServlet extends HttpServlet implements InterfaceContextAware
WMS Servlet.
This class inherits from HttpServlet, mainly used to receive the HTTP request of WMS service from the client side, and return the HTTP response to the client side.
-
-
Constructor Summary
Constructors Constructor and Description WMSServlet()
-
Method Summary
Methods Modifier and Type Method and Description voiddestroy()Destroy objects.protected java.util.Map<java.lang.String,java.lang.String>getParameters(HttpServletRequest request)Get the HTTP request parameters of the relevant WMS service.voidinit()Initialization.voidservice(HttpServletRequest request, HttpServletResponse response)Responds to client requests.voidsetInterfaceContext(InterfaceContext context)Set the context of the service interface.
-
-
-
Method Detail
-
init
public void init() throws ServletExceptionInitialization.
- Throws:
ServletException
-
setInterfaceContext
public void setInterfaceContext(InterfaceContext context)
Set the context of the service interface.- Specified by:
setInterfaceContextin interfaceInterfaceContextAware- Parameters:
context- the context of the service interface.
-
destroy
public void destroy()
Destroy objects.
-
service
public void service(HttpServletRequest request, HttpServletResponse response)Responds to client requests.- Parameters:
request- the HTTP request information of WMS service from the client side.response- the server returns the HTTP response result to the client side.
-
getParameters
protected java.util.Map<java.lang.String,java.lang.String> getParameters(HttpServletRequest request)
Get the HTTP request parameters of the relevant WMS service.- Parameters:
request- the HTTP request information of WMS service from the client side.- Returns:
- requests parameter mapping, which contains the name of the parameter that is used as the key and the parameter value used as the value, where the parameter name is converted to uppercase.
-
-