Class ClientRequest

java.lang.Object
net.targetr.rc.client.ClientRequest

public class ClientRequest extends Object
Represents a connection made from a client;
Author:
Dr Michael Gardiner
  • Field Details

    • ip

      public final String ip
      The IP address of the client connection.
    • userAgent

      public final String userAgent
      The User-Agent string from the client.
    • roomId

      public final String roomId
      The room the client is in.
    • app

      public final String app
      The app the client is running.
    • clientId

      public final String clientId
      The unique client ID for this connection.
    • startTime

      public final long startTime
      The time the request started (in milliseconds).
    • endTime

      public volatile long endTime
      The time the request ended, or 0 if still active.
    • connection

      public Closeable connection
      The underlying connection object.
  • Constructor Details

    • ClientRequest

      public ClientRequest(HttpRequest httpReq) throws IOException
      Parses a client request from an incoming HTTP request.
      Parameters:
      httpReq - the HTTP request
      Throws:
      IOException - if the request parameters are invalid