package com.wizzardo.http.framework;

/**
 * Created by wizzardo on 08.07.15.
 */
public enum Environment {
    DEVELOPMENT("dev"), TEST("test"), PRODUCTION("prod");

    public final String shortName;

    Environment(String shortName) {
        this.shortName = shortName;
    }
}

@@ -273,11 +273,354 @@
 e;%0A    %7D
+%0A%0A    public static Environment parse(String s) %7B%0A        if (DEVELOPMENT.shortName.equals(s))%0A            return DEVELOPMENT;%0A        if (PRODUCTION.shortName.equals(s))%0A            return PRODUCTION;%0A        if (TEST.shortName.equals(s))%0A            return TEST;%0A%0A        return Environment.valueOf(s == null ? null : s.toUpperCase());%0A    %7D
 %0A%7D%0A

add parse method