Package net.targetr.rc.client
Class ClientRequest
java.lang.Object
net.targetr.rc.client.ClientRequest
Represents a connection made from a client;
- Author:
- Dr Michael Gardiner
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal StringThe app the client is running.final StringThe unique client ID for this connection.The underlying connection object.longThe time the request ended, or 0 if still active.final StringThe IP address of the client connection.final StringThe room the client is in.final longThe time the request started (in milliseconds).final StringThe User-Agent string from the client. -
Constructor Summary
ConstructorsConstructorDescriptionClientRequest(HttpRequest httpReq) Parses a client request from an incoming HTTP request. -
Method Summary
-
Field Details
-
ip
The IP address of the client connection. -
userAgent
The User-Agent string from the client. -
roomId
The room the client is in. -
app
The app the client is running. -
clientId
The unique client ID for this connection. -
startTime
public final long startTimeThe time the request started (in milliseconds). -
endTime
public volatile long endTimeThe time the request ended, or 0 if still active. -
connection
The underlying connection object.
-
-
Constructor Details
-
ClientRequest
Parses a client request from an incoming HTTP request.- Parameters:
httpReq- the HTTP request- Throws:
IOException- if the request parameters are invalid
-