// Path: src/main/java/re/vianneyfaiv/persephone/domain/env/ActuatorVersion.java
// public enum ActuatorVersion {
// 
// 	V1(ActuatorMediaTypes.APPLICATION_ACTUATOR_V1_JSON_VALUE),
// 	V2("application/vnd.spring-boot.actuator.v2+json");
// 
// 	private static final Logger LOGGER = LoggerFactory.getLogger(ActuatorVersion.class);
// 
// 	private String mediaType;
// 
// 	private ActuatorVersion(String mediaType) {
// 		this.mediaType = mediaType;
// 	}
// 
// 	public static ActuatorVersion parse(MediaType contentType) {
// 
// 		String simpleType = contentType.getType() + "/" + contentType.getSubtype();
// 
// 		if(V1.mediaType.equals(simpleType)) {
// 			return V1;
// 		}
// 
// 		if(V2.mediaType.equals(simpleType)) {
// 			return V2;
// 		}
// 
// 		LOGGER.warn("Version not found in header {}, so we assume it's V1", contentType);
// 
// 		// By default, consider it's Actuator from spring boot 1.x
// 		return V1;
// 	}
// 
// }


import org.springframework.util.StringUtils;
import re.vianneyfaiv.persephone.domain.env.ActuatorVersion;
package re.vianneyfaiv.persephone.domain.app;



public class Application {

	private int id;
	private String name;
	private String environment;
	private String url;
	private boolean up; // set when application is clicked
	private Endpoints endpoints;
	private AuthScheme authScheme;
	private String actuatorUsername;
	private String actuatorPassword;
// Path: src/main/java/re/vianneyfaiv/persephone/domain/env/ActuatorVersion.java
// public enum ActuatorVersion {
// 
// 	V1(ActuatorMediaTypes.APPLICATION_ACTUATOR_V1_JSON_VALUE),
// 	V2("application/vnd.spring-boot.actuator.v2+json");
// 
// 	private static final Logger LOGGER = LoggerFactory.getLogger(ActuatorVersion.class);
// 
// 	private String mediaType;
// 
// 	private ActuatorVersion(String mediaType) {
// 		this.mediaType = mediaType;
// 	}
// 
// 	public static ActuatorVersion parse(MediaType contentType) {
// 
// 		String simpleType = contentType.getType() + "/" + contentType.getSubtype();
// 
// 		if(V1.mediaType.equals(simpleType)) {
// 			return V1;
// 		}
// 
// 		if(V2.mediaType.equals(simpleType)) {
// 			return V2;
// 		}
// 
// 		LOGGER.warn("Version not found in header {}, so we assume it's V1", contentType);
// 
// 		// By default, consider it's Actuator from spring boot 1.x
// 		return V1;
// 	}
// 
// }


// Path: src/main/java/re/vianneyfaiv/persephone/domain/app/Application.java
import org.springframework.util.StringUtils;
import re.vianneyfaiv.persephone.domain.env.ActuatorVersion;

package re.vianneyfaiv.persephone.domain.app;



public class Application {

	private int id;
	private String name;
	private String environment;
	private String url;
	private boolean up; // set when application is clicked
	private Endpoints endpoints;
	private AuthScheme authScheme;
	private String actuatorUsername;
	private String actuatorPassword;
	private ActuatorVersion actuatorVersion; // set when application is clicked