public class URLDeserializationHelper extends Object
URLStreamHandler.hashCode(URL)
and URLStreamHandler.equals(URL, URL)
but a version that use directly the String
representation
instead of requesting the DNS to have name equivalence.Constructor and Description |
---|
URLDeserializationHelper() |
Modifier and Type | Method and Description |
---|---|
static URL |
wrapIfRequired(URL url)
Wraps the given URL into a "safe" version against deserialization attack if the url has a non-empty host
and the JVM configuration is standard.
|
@NonNull public static URL wrapIfRequired(@NonNull URL url) throws IOException
IOException
Copyright © 2004–2022. All rights reserved.