/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package org.safehaus.kiskis.mgmt.server.broker;

import org.safehaus.kiskis.mgmt.shared.protocol.commands.CommandEnum;
import org.safehaus.kiskis.mgmt.shared.protocol.elements.Request;
import org.safehaus.kiskis.mgmt.shared.protocol.interfaces.CommandBuilderImp;

/**
 *
 * @author bahadyr
 */
public class CommandBuilder implements CommandBuilderImp {

    public Request buildRequest(CommandEnum commandEnum) {
        Request r = new Request();
        switch (commandEnum) {
            case INSTALL: {
                String[] argument = {"-n"};
                r.setEnvironment(null);
            }
            case CLONE: {
                return null;
            }
            case START: {
                return null;
            }
            case STOP: {
                return null;
            }

        }
        return null;
    }
}

@@ -596,24 +596,60 @@
  INSTALL: %7B%0A
+                // building command%0A
             
@@ -676,16 +676,36 @@
 t = %7B%22-n
+, hsadood ,adhfas df
 %22%7D;%0A    

Defined some protocol commands