Package com.helger.commons.url
Class URLValidator
- java.lang.Object
-
- com.helger.commons.url.URLValidator
-
@Immutable public final class URLValidator extends Object
Check if a URL is valid.- Author:
- Philip Helger
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetUnifiedURL(String sURL)Get the unified version of a URL.static booleanisValid(String sURL)Checks if a value is a valid URL.
-
-
-
Method Detail
-
getUnifiedURL
@Nullable public static String getUnifiedURL(@Nullable String sURL)
Get the unified version of a URL. It trims leading and trailing spaces and lower-cases the URL.- Parameters:
sURL- The URL to unify. May benull.- Returns:
- The unified URL or
nullif the input address isnull.
-
-