Class ResourceUrlCreator
- java.lang.Object
-
- net.adoptopenjdk.icedteaweb.resources.initializer.ResourceUrlCreator
-
class ResourceUrlCreator extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description ResourceUrlCreator()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static java.lang.StringemptyIfNull(java.lang.String part)(package private) static java.net.URLgetUrl(Resource resource, boolean usePack, boolean useVersion)Returns a url for the resource.(package private) static java.net.URLgetVersionedUrl(java.net.URL resourceUrl, VersionString requestVersion, VersionId currentVersion)Returns the URL for this resource, including the resource's version number in the query string(package private) static java.util.List<java.net.URL>prependHttps(java.util.List<java.net.URL> urls)
-
-
-
Field Detail
-
LOG
private static final Logger LOG
-
-
Method Detail
-
prependHttps
static java.util.List<java.net.URL> prependHttps(java.util.List<java.net.URL> urls)
-
getUrl
static java.net.URL getUrl(Resource resource, boolean usePack, boolean useVersion)
Returns a url for the resource.- Parameters:
resource- the resourceusePack- whether the URL should point to the pack200 fileuseVersion- 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 java.net.URL getVersionedUrl(java.net.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 java.lang.String emptyIfNull(java.lang.String part)
-
-