package configuration;

/**
 * Created by Stefan on 30.06.14.
 */
public class ServerConfiguration {
}

@@ -17,16 +17,76 @@
 ation;%0A%0A
+import com.sun.javaws.exceptions.InvalidArgumentException;%0A%0A
 /**%0A * C
@@ -109,10 +109,10 @@
  on 
-30
+29
 .06.
@@ -153,11 +153,1139 @@
 ration %7B
+%0A%0A    /**%0A     * Default Server Konfiguration%0A     */%0A    public final static ServerConfiguration DEFAULT = new ServerConfiguration(%0A            6789,%0A            %22localhost%22,%0A            %22GameManagerService%22);%0A%0A%0A    /**%0A     * Erstellt aus einem String array String eine Server Konfiguration%0A     * @param args Stringarray%0A     *             %5B0%5D - HOST%0A     *             %5B1%5D - PORT%0A     *             %5B2%5D - GAME_SERVICE_NAME%0A     * @return%0A     * @throws InvalidArgumentException%0A     * @throws ClassCastException%0A     */%0A    public static ServerConfiguration fromArgs(String%5B%5D args) throws InvalidArgumentException, ClassCastException%7B%0A        if(args.length %3C 3)%7B%0A            throw new InvalidArgumentException(args);%0A        %7D%0A        return new ServerConfiguration(Integer.parseInt(args%5B0%5D),args%5B1%5D,args%5B2%5D);%0A%0A    %7D%0A%0A    public final int     PORT;%0A    public final String  SERVER_HOST;%0A    public final String  SERVICE_NAME;%0A%0A    public ServerConfiguration(int PORT, String SERVER_HOST, String SERVICE_NAME)%7B%0A        this.PORT = PORT;%0A        this.SERVER_HOST = SERVER_HOST;%0A        this.SERVICE_NAME = SERVICE_NAME;%0A    %7D
 %0A%7D%0A

Update Server Configuration