Class CachedCondition

java.lang.Object
com.atlassian.plugin.webresource.impl.CachedCondition

public class CachedCondition extends Object
Cached condition.

This class is interned, see ConditionInstanceCache.

Since:
v3.3
  • Constructor Details

  • Method Details

    • evaluateSafely

      public boolean evaluateSafely(RequestCache requestCache, UrlBuildingStrategy urlBuilderStrategy)
      The UrlReadingCondition will be asked to generate parameters and evaluate it. If error will be thrown it will be intercepted and condition evaluated to false.
    • evaluateSafely

      public boolean evaluateSafely(RequestCache requestCache, Map<String,String> params)
      The UrlReadingCondition will be asked to generate parameters and evaluate it. If error will be thrown it will be intercepted and condition evaluated to false.
    • addToUrlSafely

      public void addToUrlSafely(RequestCache requestCache, UrlBuilder urlBuilder, UrlBuildingStrategy urlBuilderStrategy)
      Add parameters of condition to url. If error will be thrown it will be intercepted and nothing will be added to url.