Class ResourceUrlCreator

java.lang.Object
net.adoptopenjdk.icedteaweb.resources.initializer.ResourceUrlCreator

class ResourceUrlCreator extends Object
  • Field Details

    • LOG

      private static final Logger LOG
  • Constructor Details

    • ResourceUrlCreator

      ResourceUrlCreator()
  • Method Details

    • prependHttps

      static List<URL> prependHttps(List<URL> urls)
    • getUrl

      static URL getUrl(Resource resource, boolean usePack, boolean useVersion)
      Returns a url for the resource.
      Parameters:
      resource - the resource
      usePack - whether the URL should point to the pack200 file
      useVersion - whether the URL should be modified to include the version
      Returns:
      a URL for the resource or null if an appropriate URL can not be found
    • getVersionedUrl

      static URL getVersionedUrl(URL resourceUrl, VersionString requestVersion, VersionId currentVersion)
      Returns the URL for this resource, including the resource's version number in the query string
      Returns:
      url with version cared about
    • emptyIfNull

      private static String emptyIfNull(String part)