HeaderValueMatcher Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. HeaderValueMatcher
- com.
Implements
public final class HeaderValueMatcher
implements JsonSerializable<HeaderValueMatcher>
An optional field under "Rewrite Action". It lets you capture and modify the value(s) of a specific header when multiple headers with the same name exist. Currently supported for Set-Cookie Response header only. For more details, visit https://aka.ms/appgwheadercrud.
Constructor Summary
Constructor | Description |
---|---|
HeaderValueMatcher() |
Creates an instance of Header |
Method Summary
Modifier and Type | Method and Description |
---|---|
static
Header |
fromJson(JsonReader jsonReader)
Reads an instance of Header |
Boolean |
ignoreCase()
Get the ignore |
Boolean |
negate()
Get the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field. |
String |
pattern()
Get the pattern property: The pattern, either fixed string or regular expression, that evaluates if a header value should be selected for rewrite. |
Json |
toJson(JsonWriter jsonWriter) |
void |
validate()
Validates the instance. |
Header |
withIgnoreCase(Boolean ignoreCase)
Set the ignore |
Header |
withNegate(Boolean negate)
Set the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field. |
Header |
withPattern(String pattern)
Set the pattern property: The pattern, either fixed string or regular expression, that evaluates if a header value should be selected for rewrite. |
Methods inherited from java.lang.Object
Constructor Details
HeaderValueMatcher
public HeaderValueMatcher()
Creates an instance of HeaderValueMatcher class.
Method Details
fromJson
public static HeaderValueMatcher fromJson(JsonReader jsonReader)
Reads an instance of HeaderValueMatcher from the JsonReader.
Parameters:
Returns:
Throws:
ignoreCase
public Boolean ignoreCase()
Get the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
Returns:
negate
public Boolean negate()
Get the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.
Returns:
pattern
public String pattern()
Get the pattern property: The pattern, either fixed string or regular expression, that evaluates if a header value should be selected for rewrite.
Returns:
toJson
validate
public void validate()
Validates the instance.
withIgnoreCase
public HeaderValueMatcher withIgnoreCase(Boolean ignoreCase)
Set the ignoreCase property: Setting this parameter to truth value with force the pattern to do a case in-sensitive comparison.
Parameters:
Returns:
withNegate
public HeaderValueMatcher withNegate(Boolean negate)
Set the negate property: Setting this value as truth will force to check the negation of the condition given by the user in the pattern field.
Parameters:
Returns:
withPattern
public HeaderValueMatcher withPattern(String pattern)
Set the pattern property: The pattern, either fixed string or regular expression, that evaluates if a header value should be selected for rewrite.
Parameters:
Returns:
Applies to
Azure SDK for Java