public static class HttpHeaderMatch.Builder extends Object
Modifier and Type | Method and Description |
---|---|
HttpHeaderMatch |
build() |
HttpHeaderMatch.Builder |
clone() |
String |
getExactMatch()
The value should exactly match contents of exactMatch.
|
String |
getHeaderName()
The name of the HTTP header to match.
|
Boolean |
getInvertMatch()
If set to false, the headerMatch is considered a match if the match criteria above are met.
|
String |
getPrefixMatch()
The value of the header must start with the contents of prefixMatch.
|
Boolean |
getPresentMatch()
A header with the contents of headerName must exist.
|
Int64RangeMatch |
getRangeMatch()
The header value must be an integer and its value must be in the range specified in
rangeMatch.
|
String |
getRegexMatch()
The value of the header must match the regualar expression specified in regexMatch.
|
String |
getSuffixMatch()
The value of the header must end with the contents of suffixMatch.
|
HttpHeaderMatch.Builder |
mergeFrom(HttpHeaderMatch other) |
HttpHeaderMatch.Builder |
setExactMatch(String exactMatch)
The value should exactly match contents of exactMatch.
|
HttpHeaderMatch.Builder |
setHeaderName(String headerName)
The name of the HTTP header to match.
|
HttpHeaderMatch.Builder |
setInvertMatch(Boolean invertMatch)
If set to false, the headerMatch is considered a match if the match criteria above are met.
|
HttpHeaderMatch.Builder |
setPrefixMatch(String prefixMatch)
The value of the header must start with the contents of prefixMatch.
|
HttpHeaderMatch.Builder |
setPresentMatch(Boolean presentMatch)
A header with the contents of headerName must exist.
|
HttpHeaderMatch.Builder |
setRangeMatch(Int64RangeMatch rangeMatch)
The header value must be an integer and its value must be in the range specified in
rangeMatch.
|
HttpHeaderMatch.Builder |
setRegexMatch(String regexMatch)
The value of the header must match the regualar expression specified in regexMatch.
|
HttpHeaderMatch.Builder |
setSuffixMatch(String suffixMatch)
The value of the header must end with the contents of suffixMatch.
|
public HttpHeaderMatch.Builder mergeFrom(HttpHeaderMatch other)
public String getExactMatch()
public HttpHeaderMatch.Builder setExactMatch(String exactMatch)
public String getHeaderName()
public HttpHeaderMatch.Builder setHeaderName(String headerName)
public Boolean getInvertMatch()
public HttpHeaderMatch.Builder setInvertMatch(Boolean invertMatch)
public String getPrefixMatch()
public HttpHeaderMatch.Builder setPrefixMatch(String prefixMatch)
public Boolean getPresentMatch()
public HttpHeaderMatch.Builder setPresentMatch(Boolean presentMatch)
public Int64RangeMatch getRangeMatch()
public HttpHeaderMatch.Builder setRangeMatch(Int64RangeMatch rangeMatch)
public String getRegexMatch()
public HttpHeaderMatch.Builder setRegexMatch(String regexMatch)
public String getSuffixMatch()
public HttpHeaderMatch.Builder setSuffixMatch(String suffixMatch)
public HttpHeaderMatch build()
public HttpHeaderMatch.Builder clone()
Copyright © 2019 Google LLC. All rights reserved.