com.supermap.services.rest

Class RestServlet

  • java.lang.Object
    • HttpServlet
      • com.supermap.services.rest.RestServlet
  • All Implemented Interfaces:
    InterfaceContextAware


    public class RestServlet
    extends HttpServlet
    implements InterfaceContextAware
    

    REST application of the Servlet class, is used to SCA (service component framework) way to publish REST service information.

    • Constructor Detail

      • RestServlet

        public RestServlet()
        
    • Method Detail

      • init

        public void init(ServletConfig config)
                  throws ServletException
        
        Throws:
        ServletException
      • service

        public void service(HttpServletRequest request,
                   HttpServletResponse response)
                     throws ServletException,
                            java.io.IOException
        

        Provides request forwarding from URI to REST resources.

        Parameters:
        request - request object.
        response - response object.
        Throws:
        ServletException - Servlet exception.
        java.io.IOException - An exception caused by a failed or interrupted I/O operation.
      • createServletAdapter

        protected ServletAdapter createServletAdapter(HttpServletRequest request)
                                               throws java.net.MalformedURLException
        
        Throws:
        java.net.MalformedURLException
      • getInterfaceContext

        public InterfaceContext getInterfaceContext()
        
        Returns the interface context.
        Returns:
      • setRestApplication

        protected void setRestApplication(RestApplication restApplication)
        
        Sets the Rest application
        Parameters:
        restApplication -