in src/main/java/com/microsoft/azure/functions/worker/Application.java [186:200]
private String parseUri(String uri) throws ParseException {
try {
URL url = new URL(uri);
url.toURI();
this.host = url.getHost();
this.port = url.getPort();
if (port < 1 || port > 65535) {
throw new IndexOutOfBoundsException("port number out of range");
}
return uri;
} catch (MalformedURLException | URISyntaxException | IndexOutOfBoundsException e) {
throw new ParseException(String.format(
"Error parsing URI \"%s\". Please provide a valid URI", uri));
}
}