java.lang.Object
java.lang.Enum<ResultContent>
org.sentrysoftware.metricshub.engine.connector.model.common.ResultContent
All Implemented Interfaces:
Serializable, Comparable<ResultContent>, Constable

public enum ResultContent extends Enum<ResultContent>
Enumeration representing different types of result content that can be extracted from a connector.
  • Enum Constant Details

    • HTTP_STATUS

      public static final ResultContent HTTP_STATUS
      Represents HTTP status as result content.
    • BODY

      public static final ResultContent BODY
      Represents body as result content.
    • ALL

      public static final ResultContent ALL
      Represents all content as result content.
  • Method Details

    • values

      public static ResultContent[] 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 ResultContent 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
    • detect

      public static ResultContent detect(String value)
      Detects ResultContent using the value defined in the connector code.
      Parameters:
      value - The value to detect.
      Returns:
      ResultContent instance.
      Throws:
      IllegalArgumentException - If the value is not a supported ResultContent.