public class Connect extends java.lang.Object implements Command
Client
when calling Client.connect()
.Constructor and Description |
---|
Connect(java.lang.String clientVersion)
Creates a connect command for the given client version
|
Modifier and Type | Method and Description |
---|---|
boolean |
connected()
If client was connected this is true after sending the command
|
java.lang.String |
getClientVersion()
Returns the version of the Client
|
void |
parseResponse(java.lang.Object response)
Receives the response object from the server.
|
public Connect(java.lang.String clientVersion)
clientVersion
- public void parseResponse(java.lang.Object response)
Command
parseResponse
in interface Command
response
- The response objectpublic boolean connected()
public java.lang.String getClientVersion()