public static class CachingRuleCriteria.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CachingRuleCriteria |
build() |
CachingRuleCriteria.Builder |
condition(CachingRuleCriteria.Condition condition)
The condition of the caching rule criteria.
|
CachingRuleCriteria.Builder |
copy(CachingRuleCriteria model) |
CachingRuleCriteria.Builder |
value(String value)
The value of the caching rule criteria.
|
public CachingRuleCriteria.Builder condition(CachingRuleCriteria.Condition condition)
The condition of the caching rule criteria. - URL_IS: Matches if the concatenation of
request URL path and query is identical to the contents of the value
field.
- **URL_STARTS_WITH:** Matches if the concatenation of request URL path and query
starts with the contents of the value
field.
- **URL_PART_ENDS_WITH:** Matches if the concatenation of request URL path and query
ends with the contents of the value
field.
- **URL_PART_CONTAINS:** Matches if the concatenation of request URL path and query
contains the contents of the value
field.
URLs must start with a /
. URLs can't contain restricted double slashes //
. URLs can't contain the restricted '
&
?
symbols. Resources
to cache can only be specified by a URL, any query parameters are ignored.
condition
- the value to setpublic CachingRuleCriteria.Builder value(String value)
The value of the caching rule criteria.
value
- the value to setpublic CachingRuleCriteria build()
public CachingRuleCriteria.Builder copy(CachingRuleCriteria model)
Copyright © 2016–2024. All rights reserved.