Class CachingRuleCriteria.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • condition

        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.

        Parameters:
        condition - the value to set
        Returns:
        this builder
      • value

        public CachingRuleCriteria.Builder value​(String value)
        The value of the caching rule criteria.
        Parameters:
        value - the value to set
        Returns:
        this builder