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
      void destroy()
      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.
      void init()
      Initialization.
      void service(HttpServletRequest request, HttpServletResponse response)
      Responds to client requests.
      void setInterfaceContext(InterfaceContext context)
      Set the context of the service interface.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WMSServlet

        public WMSServlet()
        
    • Method Detail

      • init

        public void init()
                  throws ServletException
        

        Initialization.

        Throws:
        ServletException
      • 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.