import datamodel.Request;
import httpserver.RequestSenderWithMessage;
import httpserver.WebServer;
import javafx.application.Platform;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.scene.control.TextArea;
import javafx.scene.control.TextField;

public class Controller {
    public TextField response;
    private WebServer ws = new WebServer();
    public TextField command;
    @FXML
    public TextArea results;

    @FXML
    public void initialize(){
        ws.setResults(results);
    }


    public void runCommand(ActionEvent actionEvent) {
        results.setText("");
        response.setText("");
        Thread th = new Thread() {
            @Override
            public void run() {
                String commandString = command.getText();

                Request request = new Request();
                request.setClientId("13");
                request.setCommand(commandString);
                request.setResponseAddress("http://localhost:8008/jobFinished");
                //request.setProcessors(new String[] {"processors.XmlToJsonConverter","processors.TlsCiphersuitesFilter","processors.TlsEcrypt2Level"});
                request.setProcessors(new String[] {"availability.HttpStatusCodeFilter"});
                request.setAdapter("adapters.EventHubAdapter");

                String requestResponse = RequestSenderWithMessage.sendRequest("http://localhost:8080/request", request);
                Platform.runLater(new Runnable() {
                    public void run() {
                        response.setText(requestResponse);
                    }
                });
            }
        };
        th.start();
    }

}

@@ -996,24 +996,25 @@
 Finished%22);%0A
+%0A
             
@@ -1021,160 +1021,985 @@
     
-//request.setProcessors(new String%5B%5D %7B%22processors.XmlToJsonConverter%22,%22processors.TlsCiphersuitesFilter%22,%22processors.TlsEcrypt2Level%22%7D);%0A               
+String%5B%5D tocCommandString = commandString.split(%22%5C%5Cs+%22);%0A                switch (tocCommandString%5B0%5D) %7B%0A                    case %22availability%22: request.setProcessors(new String%5B%5D %7B%22availability.HttpStatusCodeFilter%22%7D);%0A                                         break;%0A                    case %22security%22:%0A                        switch (tocCommandString%5B1%5D) %7B%0A                            case %22tls%22: request.setProcessors(new String%5B%5D %7B%0A                                    %22XmlToJsonConverter%22,%0A                                    %22security.TlsCiphersuitesFilter%22%7D);%0A                                    break;%0A                            case %22ecrypt2lvl%22: request.setProcessors(new String%5B%5D %7B%0A                                    %22XmlToJsonConverter%22,%0A                                    %22security.TlsCiphersuitesFilter%22,%0A                                    %22security.TlsEcrypt2Level%22%7D);%0A                                    break;%0A                            case %22open_ports%22:
  req
@@ -2033,48 +2033,229 @@
 ng%5B%5D
- 
 %7B%22
-availability.HttpStatusCodeFilter%22%7D);
+XmlToJsonConverter%22%7D);%0A                                              break;%0A                        %7D%0A                        break;%0A                    default: request.setProcessors(new String%5B%5D%7B%7D);%0A                %7D%0A
 %0A   

Add automatic selection of filters based on command.