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
IOExceptionCopyright © 2004–2020. All rights reserved.