Package com.helger.base.url
Class URNHelper
java.lang.Object
com.helger.base.url.URNHelper
Helper class for dealing with URNs
- Author:
- Philip Helger
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanisValidURN(@Nullable String sURN) Check if the provided string is valid according to RFC 2141.
-
Field Details
-
REGEX_URN
- See Also:
-
-
Method Details
-
isValidURN
Check if the provided string is valid according to RFC 2141. Leading and trailing spaces of the value to check will result in a negative result.- Parameters:
sURN- the URN to be validated. May benull.- Returns:
trueif the provided URN is not empty and matches the regular expressionREGEX_URN.- Since:
- 10.0.0
-