Class ResourceUrlCreator
java.lang.Object
net.adoptopenjdk.icedteaweb.resources.initializer.ResourceUrlCreator
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StringemptyIfNull(String part) (package private) static URLReturns a url for the resource.(package private) static URLgetVersionedUrl(URL resourceUrl, VersionString requestVersion, VersionId currentVersion) Returns the URL for this resource, including the resource's version number in the query stringprependHttps(List<URL> urls)
-
Field Details
-
LOG
-
-
Constructor Details
-
ResourceUrlCreator
ResourceUrlCreator()
-
-
Method Details
-
prependHttps
-
getUrl
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
Returns the URL for this resource, including the resource's version number in the query string- Returns:
- url with version cared about
-
emptyIfNull
-