List of utility methods to do URI Create
URI | createUri(final String path, final String query) Create the URI to use for the test return new URI(PROTOCOL, AUTHORITY, path, query, null); |
URI | createURI(final String scheme, final String host, final int port) create URI return createURIWithFull(scheme, null, host, port, null, null, null);
|
URI | createURI(final String scheme, final String host, int port, final String path, final String query, final String fragment) create URI StringBuilder buffer = new StringBuilder(); if (host != null) { if (scheme != null) { buffer.append(scheme); buffer.append("://"); buffer.append(host); if (port > 0) { ... |
URI | createURI(final String scheme, final String[] pathAsArray) create URI if (pathAsArray == null) { throw new NullPointerException("path = null"); StringBuilder path = new StringBuilder("/"); int i = 0; for (i = 0; i < pathAsArray.length; i++) { String pathElement = pathAsArray[i]; if (0 == i && pathElement.length() == 0) { ... |
URI | createURI(List create URI String uri = proxyPorts.stream().map(port -> "localhost:" + port) .collect(Collectors.joining(",", "terracotta://", "")); return URI.create(uri); |
URI | createUri(String base) create Uri try { return new URI(base); } catch (URISyntaxException e) { throw new RuntimeException(e); |
URI | createURI(String extension) Creates a simple URI for the provided extension. return createURI(extension, null);
|
String | createURI(String filename) Herstellen einer URI File file = new File(filename); String path = file.getAbsolutePath(); String fSep = System.getProperty("file.separator"); if ((fSep != null) && (fSep.length() == 1)) { path = path.replace(fSep.charAt(0), '/'); if ((path.length() > 0) && (path.charAt(0) != '/')) { path = '/' + path; ... |
URI | createURI(String hostname, int port) create URI return URI.create("tcp://" + hostname + ":" + port); |
URI | createUri(String name, Kind kind) create Uri try { return new URI("mxcache:///" + name.replace('.', '/') + kind.extension); } catch (URISyntaxException e) { throw new IOException(e); |