handleUri.mustache 302 Bytes
Newer Older
René Schöne's avatar
René Schöne committed
1
2
3
4
5
6
7
8
9
10
11
String scheme,host, path;
java.net.URI uri;
try {
  uri = new java.net.URI({{connectParameterName}});
  scheme = uri.getScheme();
  host = uri.getHost();
  path = uri.getPath();
} catch (java.net.URISyntaxException e) {
  System.err.println(e.getMessage());  // Maybe re-throw error?
  return false;
}