public class CommandExtractor
extends java.lang.Object
| Constructor and Description |
|---|
CommandExtractor(java.net.Socket socket) |
| Modifier and Type | Method and Description |
|---|---|
Command |
getCommand()
Reads the command to execute from the socket
|
boolean |
validateClientVersion()
Checks the version of the client in order to make sure it can handle the
implementation of the Transportplugin
|
public CommandExtractor(java.net.Socket socket)
throws java.io.IOException
java.io.IOExceptionpublic Command getCommand() throws java.io.IOException
socket - java.io.IOExceptionpublic boolean validateClientVersion()
throws java.io.IOException
java.io.IOException - thrown if there was a communication error