Class ListServerSocketServlet

    • Constructor Detail

      • ListServerSocketServlet

        public ListServerSocketServlet()
      • ListServerSocketServlet

        public ListServerSocketServlet​(TransformationMap transformationMap)
    • Method Detail

      • doGet

        public void doGet​(javax.servlet.http.HttpServletRequest request,
                          javax.servlet.http.HttpServletResponse response)
                   throws javax.servlet.ServletException,
                          IOException

        /kettle/listSocket

        GET

        Gets list of ports for specified host. Method is used for listing all or just open ports for specified host. Response contains port number, which transformation it is (was) used for, current status of the port and last date time used.

        Example Request:

            GET /kettle/listSocket/?host=127.0.0.1
            

        Parameters

        name description type
        host Host to get ports for. query
        onlyOpen Boolean flag that indicates whether all or only open ports should be returned. Set it to Y to get the list of only currently open ports. boolean, optional

        Response Body

        text: HTML
        media types: text/html

        Response is HTML document listing the ports requested.

        Example Response:

          
          List of server sockets on server '127.0.0.1'
          
          

        Ports for host '127.0.0.1'

        Found 5 ports for host '127.0.0.1'

        8088 : Transformation=dummy-trans, crt/Dummy (do nothing) 2.0 --> sll/Dummy (do nothing).0 id=b20bcd03-9682-4327-8c42-b129faabbfe1, allocated=false time=Mon Nov 17 09:31:15 BRT 2014
        8089 : Transformation=dummy-trans, crt/Dummy (do nothing) 2.0 --> sll/Dummy (do nothing).1 id=b20bcd03-9682-4327-8c42-b129faabbfe1, allocated=false time=Mon Nov 17 09:31:15 BRT 2014
        8090 : Transformation=dummy-trans, crt/Dummy (do nothing) 2.0 --> sll/Dummy (do nothing).2 id=b20bcd03-9682-4327-8c42-b129faabbfe1, allocated=false time=Mon Nov 17 09:31:15 BRT 2014
        8091 : Transformation=dummy-trans, crt/Dummy (do nothing) 2.0 --> sll/Dummy (do nothing).3 id=b20bcd03-9682-4327-8c42-b129faabbfe1, allocated=false time=Mon Nov 17 09:31:15 BRT 2014
        8092 : Transformation=dummy-trans, crt/Dummy (do nothing) 2.0 --> sll/Dummy (do nothing).4 id=b20bcd03-9682-4327-8c42-b129faabbfe1, allocated=false time=Mon Nov 17 09:31:15 BRT 2014

        Status Codes

        code description
        200 Request was processed.
        500 Internal server error occurs during request processing.
        Specified by:
        doGet in interface CartePluginInterface
        Overrides:
        doGet in class javax.servlet.http.HttpServlet
        Throws:
        javax.servlet.ServletException
        IOException