public final class UrlRef extends Object
URI and URL at any time. URL, this class ensures that invocations of equals() and
         hashCode() never trigger network requests, making this class suitable for
         collections. For details, see the SonarQube rule 
         "URL.hashCode" and "URL.equals" should be avoided.
     UrlRef instance, it is ensured that it later can be converted to both a
         URI and a URL.
     UrlRef never throws checked exceptions.
     URI, an UrlRef instance can be used to build a child URI - just like URL
         with its two-arg constructor.
     | Constructor and Description | 
|---|
| UrlRef(@NonNull String spec) | 
| UrlRef(@NonNull URI uri) | 
| UrlRef(@NonNull URL url) | 
public UrlRef(@NonNull
              @NonNull URI uri)
NullPointerException - if uri is nullIllegalArgumentException - if the resulting UrlRef would cause exceptions when converted to URLpublic UrlRef(@NonNull
              @NonNull URL url)
NullPointerException - if url is nullIllegalArgumentException - if the resulting UrlRef would cause exceptions when converted to URIpublic UrlRef(@NonNull
              @NonNull String spec)
NullPointerException - if spec is nullIllegalArgumentException - if the resulting UrlRef would cause exceptions when converted to URI or URLpublic UrlRef resolve(@NonNull @NonNull String spec)
UrlRef by combining the URL referenced by this instance (the "context") with the given
 spec. URL.URL(URL, String). Note that the result differs based on
 whether the context has a trailing slash, the spec has a leading slash, both, or none.NullPointerException - if spec is nullIllegalArgumentException - if the resulting UrlRef would cause exceptions when converted to URI or URLpublic URI toUri()
public URL toUrl()
Copyright © 2020. All rights reserved.