Class LegacyUrlGenerationHelpers

java.lang.Object
com.atlassian.plugin.webresource.legacy.LegacyUrlGenerationHelpers

public class LegacyUrlGenerationHelpers extends Object
  • Constructor Details

    • LegacyUrlGenerationHelpers

      public LegacyUrlGenerationHelpers()
  • Method Details

    • calculateBatches

      @Deprecated public static LegacyUrlGenerationHelpers.Resolved calculateBatches(RequestCache requestCache, UrlBuildingStrategy urlBuildingStrategy, Collection<String> topLevelIncluded, Collection<String> excludedResolved, boolean includeDependenciesForFailedUrlReadingConditions)
    • calculateBatches

      public static LegacyUrlGenerationHelpers.Resolved calculateBatches(RequestCache requestCache, UrlBuildingStrategy urlBuildingStrategy, Collection<String> topLevelIncluded, Collection<String> allExcluded, Set<String> topLevelExcluded, boolean includeDependenciesForFailedUrlReadingConditions)
      Groups given web resources and contexts in to batches, taking any content that has already been served in to account.
      Parameters:
      requestCache - request cache.
      urlBuildingStrategy - how conditions and transformers contribute to generated URLs.
      topLevelIncluded - the "entry point" web resources and contexts the client has requested.
      topLevelExcluded - the "entry point" web resources and contexts that were explicitly excluded from the request by the client. Used to encode in batch URLs
      allExcluded - all web resources discoverable through the topLevelExcluded set. This should be a superset of topLevelExcluded - that is, all "entry point" web-resources and contexts should also be present here. Used to determine what has already been served to the client and avoid re-serving the same content.
      Returns:
      a LegacyUrlGenerationHelpers.Resolved that represents the batch groups to serve to the client, along with a list of all items that should be omitted from subsequent client requests.