Class DefaultRequestHandler

    • Field Detail

      • log

        private static final org.slf4j.Logger log
        Log job agent events.
      • agent

        private final Agent agent
    • Constructor Detail

      • DefaultRequestHandler

        public DefaultRequestHandler​(Agent agent)
    • Method Detail

      • handleCmd

        public String handleCmd​(Socket incoming,
                                String cmd)
        Description copied from interface: RequestHandler
        Handle a command that was sent by an incoming request.
        Specified by:
        handleCmd in interface RequestHandler
        Parameters:
        incoming - The socket that is handling the communication with the remote client
        cmd - The command
        Returns:
        The answer