Enum DslRegexExtractor.TargetField
- java.lang.Object
-
- java.lang.Enum<DslRegexExtractor.TargetField>
-
- us.abstracta.jmeter.javadsl.core.postprocessors.DslRegexExtractor.TargetField
-
- All Implemented Interfaces:
Serializable,Comparable<DslRegexExtractor.TargetField>,EnumParam.EnumPropertyValue
- Enclosing class:
- DslRegexExtractor
public static enum DslRegexExtractor.TargetField extends Enum<DslRegexExtractor.TargetField> implements EnumParam.EnumPropertyValue
Used to specify the field the regular extractor will apply to.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description REQUEST_HEADERSApplies the regular extractor to request headers.REQUEST_URLApplies the regular extractor to the request URL.RESPONSE_BODYApplies the regular extractor to the plain string of the response body.RESPONSE_BODY_AS_DOCUMENTApplies the regular extractor to the string representation obtained from parsing the response body with Apache Tika.RESPONSE_BODY_UNESCAPEDApplies the regular extractor to the response body replacing all HTML escape codes.RESPONSE_CODEApplies the regular extractor to response code.RESPONSE_HEADERSApplies the regular extractor to response headers.RESPONSE_MESSAGEApplies the regular extractor to response message.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringpropertyValue()static DslRegexExtractor.TargetFieldvalueOf(String name)Returns the enum constant of this type with the specified name.static DslRegexExtractor.TargetField[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
RESPONSE_BODY
public static final DslRegexExtractor.TargetField RESPONSE_BODY
Applies the regular extractor to the plain string of the response body.- Since:
- 0.10
-
RESPONSE_BODY_UNESCAPED
public static final DslRegexExtractor.TargetField RESPONSE_BODY_UNESCAPED
Applies the regular extractor to the response body replacing all HTML escape codes.- Since:
- 0.10
-
RESPONSE_BODY_AS_DOCUMENT
public static final DslRegexExtractor.TargetField RESPONSE_BODY_AS_DOCUMENT
Applies the regular extractor to the string representation obtained from parsing the response body with Apache Tika.- Since:
- 0.10
-
RESPONSE_HEADERS
public static final DslRegexExtractor.TargetField RESPONSE_HEADERS
Applies the regular extractor to response headers. Response headers is a string with headers separated by new lines and names and values separated by colons.
-
REQUEST_HEADERS
public static final DslRegexExtractor.TargetField REQUEST_HEADERS
Applies the regular extractor to request headers. Request headers is a string with headers separated by new lines and names and values separated by colons.
-
REQUEST_URL
public static final DslRegexExtractor.TargetField REQUEST_URL
Applies the regular extractor to the request URL.- Since:
- 0.10
-
RESPONSE_CODE
public static final DslRegexExtractor.TargetField RESPONSE_CODE
Applies the regular extractor to response code.
-
RESPONSE_MESSAGE
public static final DslRegexExtractor.TargetField RESPONSE_MESSAGE
Applies the regular extractor to response message.
-
-
Method Detail
-
values
public static DslRegexExtractor.TargetField[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (DslRegexExtractor.TargetField c : DslRegexExtractor.TargetField.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static DslRegexExtractor.TargetField valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
propertyValue
public String propertyValue()
- Specified by:
propertyValuein interfaceEnumParam.EnumPropertyValue
-
-