Enum Class InitializrMetadataVersion

java.lang.Object
java.lang.Enum<InitializrMetadataVersion>
io.spring.initializr.web.mapper.InitializrMetadataVersion
All Implemented Interfaces:
Serializable, Comparable<InitializrMetadataVersion>, Constable

public enum InitializrMetadataVersion extends Enum<InitializrMetadataVersion>
Define the supported metadata version.
Author:
Stephane Nicoll
  • Enum Constant Details

    • V2

      public static final InitializrMetadataVersion V2
      HAL-compliant metadata.
    • V2_1

      public static final InitializrMetadataVersion V2_1
      Add "compatibilityRange" attribute to any dependency to specify which Spring Boot versions are compatible with it. Also provide a separate "dependencies" endpoint to query dependencies metadata.
    • V2_2

      public static final InitializrMetadataVersion V2_2
      Add support for SemVer compliant version format.
  • Method Details

    • values

      public static InitializrMetadataVersion[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static InitializrMetadataVersion valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getMediaType

      public org.springframework.http.MediaType getMediaType()