Enum Class ResultContent
java.lang.Object
java.lang.Enum<ResultContent>
org.sentrysoftware.metricshub.engine.connector.model.common.ResultContent
- All Implemented Interfaces:
Serializable,Comparable<ResultContent>,Constable
Enumeration representing different types of result content that can be extracted from a connector.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRepresents all content as result content.Represents body as result content.Represents header as result content.Represents HTTP status as result content. -
Method Summary
Modifier and TypeMethodDescriptionstatic ResultContentDetectsResultContentusing the value defined in the connector code.static ResultContentReturns the enum constant of this class with the specified name.static ResultContent[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
HTTP_STATUS
Represents HTTP status as result content. -
HEADER
Represents header as result content. -
BODY
Represents body as result content. -
ALL
Represents all content as result content.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
detect
DetectsResultContentusing the value defined in the connector code.- Parameters:
value- The value to detect.- Returns:
ResultContentinstance.- Throws:
IllegalArgumentException- If the value is not a supported ResultContent.
-