Class URIUtils
- java.lang.Object
-
- org.apache.syncope.core.provisioning.api.utils.URIUtils
-
public final class URIUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static URI
buildForConnId(String location)
Build a valid URI out of the given location.
-
-
-
Method Detail
-
buildForConnId
public static URI buildForConnId(String location) throws MalformedURLException, URISyntaxException
Build a valid URI out of the given location. Only "file", "connid" and "connids" schemes are allowed. For "file", invalid characters are handled via intermediate transformation into URL.- Parameters:
location
- the candidate location for URI- Returns:
- valid URI for the given location
- Throws:
MalformedURLException
- if the intermediate URL is not validURISyntaxException
- if the given location does not correspond to a valid URI
-
-