Class ClientHandler

java.lang.Object
com.jk.core.reflection.server.ClientHandler
All Implemented Interfaces:
Runnable

public class ClientHandler extends Object implements Runnable
This class is responsible for handling client connections and processing method call requests.

This class implements the Runnable interface to be executed in a separate thread.

Version:
1.0
Author:
Dr. Jalal H. Kiswani
  • Constructor Details

    • ClientHandler

      public ClientHandler(Socket client)
      This method constructs a new ClientHandler using the client's socket.
      Parameters:
      client - Specifies the socket representing the client connection.
  • Method Details

    • run

      public void run()
      This method handles the client's request by processing method call information.

      This method reads the method call information, invokes the method, and sends back the result.

      Specified by:
      run in interface Runnable