Set up more URL parts as URL chain.
@param urlParts The varying array of URL parts. (NotNull)
@return The created instance of URL chain. (NotNull)
500138
public UrlChain moreUrl(Object... urlParts) {
        final String argTitle = "urlParts";
        assertArgumentNotNull(argTitle, urlParts);
        checkWrongUrlChainUse(argTitle, urlParts);
        this.urlParts = urlParts;
        return this;
    }
1358892
public void addUrlPatterns(String... urlPatterns) {
		Assert.notNull(urlPatterns, "UrlPatterns must not be null");
		Collections.addAll(this.urlPatterns, urlPatterns);
	}
1306647
public static Map<URLParts, String> splitURL(URL url) {
        Map<URLParts, String> urlParts = new HashMap<>();
        
        urlParts.put(URLParts.PROTOCOL, url.getProtocol());
        urlParts.put(URLParts.USERINFO, url.getUserInfo());
        urlParts.put(URLParts.AUTHORITY, url.getAuthority());
        urlParts.put(URLParts.HOST, url.getHost());
        urlParts.put(URLParts.PATH, url.getPath());
        urlParts.put(URLParts.QUERY, url.getQuery());
        urlParts.put(URLParts.FILENAME, url.getFile());
        urlParts.put(URLParts.REF, url.getRef());
        int port = url.getPort();
        if(port!=-1) {
            urlParts.put(URLParts.PORT, String.valueOf(port));
        }
        else {
            urlParts.put(URLParts.PORT, null);
        }
        
        return urlParts;
    }
1029291
@Override
  protected URL setURL(AnalyzedTokenReadings token) throws MalformedURLException {
    if (token != null) {
      List<AnalyzedToken> readings = token.getReadings();
      List<String> lemmas = new ArrayList<>();
      for (AnalyzedToken reading : readings) {
        String lemma = reading.getLemma();
        if (lemma != null) {
          lemmas.add(lemma);
        }
      }
      if (lemmas.size() == 1) {
        return new URL(SYNONYMS_URL + lemmas.get(0));
      }
      return new URL(SYNONYMS_URL + token.getToken());
    }
    return null;
  }
1194400
protected UriTemplate nest(CharSequence uriTemplate, Object... parserArguments) {
        if (uriTemplate == null) {
            return this;
        }
        int len = uriTemplate.length();
        if (len == 0) {
            return this;
        }

        List<PathSegment> newSegments = buildNestedSegments(uriTemplate, len, parserArguments);
        return newUriTemplate(uriTemplate, newSegments);
    }
1294643
public static String getUrlMapping(String url, Map<String, String> urlMappings) {
        if (urlMappings != null) {
            for (String pattern : urlMappings.keySet()) {
                if (urlMatcher.match(pattern, url)) {
                    return urlMappings.get(pattern);
                }
            }
        }
        
        return null;
    }
1361008
public static URI url2uri(URL url) throws URISyntaxException {
		return new URI(
				url.getProtocol(),
				url.getAuthority(),
				url.getPath(),
				url.getQuery(),
				url.getRef());
	}
1182695
public function init($urlPart = null)
    {

        try {
            if (!empty($urlPart) && $this->validate($urlPart)) {
                $this->urlPart = $urlPart;
            }

            if (empty($this->urlPart) || !$this->validate($this->urlPart)) {
                throw new RouteException('url part empty or not a valid pattern : ' . $this->urlPart);
            }

            $array = $this->getMatches();

            $validator = (string)(get_class($this) . '\\') . self::VALIDATORPREFIX . ucfirst($array[1]);

            if (!class_exists($validator)) {
                throw new RouteException('Class does not exist : ' . $validator);
            }
        } catch (RouteException $e) {
            throw $e;
        }

        $this->validator = new $validator();
        if (isset($array[2])) {
            $this->validator->delimiter = $array[2];
        }

        return $this;
    }
501115
public ArrayList<String> urlSeeds() {
        string_vector v = p.get_url_seeds();
        int size = (int) v.size();
        ArrayList<String> l = new ArrayList<>();

        for (int i = 0; i < size; i++) {
            l.add(v.get(i));
        }

        return l;
    }
752693
public TextBuilder link(final String text, final URL url) {
        this.curParagraphBuilder.link(text, url);
        return this;
    }
763507
function joinUrlParts(...parts: Array<string>): string {
  let result = '';
  parts.forEach((part, index) => {
    if (index !== 0 && !/\/$/.test(result) && !/^\//.test(part)) {
      result += '/';
    }
    result += part;
  });
  return result;
}
1031688
public UrlChain params(Object... paramsOnGet) {
        final String argTitle = "paramsOnGet";
        assertArgumentNotNull(argTitle, paramsOnGet);
        checkWrongUrlChainUse(argTitle, paramsOnGet);
        this.paramsOnGet = paramsOnGet;
        return this;
    }
355395
@Override
	public void setUrls(int type, List<String> urls) throws DatabaseException {
		this.deleteAllUrlsForType(type);
		for (String url : urls) {
			this.insert(type, url);
		}
	}
921353
@Override
    public void addURLs(List<URL> urls)
    {
        for (URL url : urls) {
            addURL(url);
        }
    }
930154
public function getRoute(array $urlParts = null)
    {
        if (($map = $this->binaryTree->findByKey(implode($urlParts)))) {
            return $map;
        }

        if (($map = $this->getStandardRoute($urlParts))) {
            return $map;
        }

        return $this->getRoot()->getData();
    }
1148453
public T url(String url) {
        if (view!=null) {
            if (view instanceof WebView) {
                ((WebView)view).loadUrl(url);
            }
            if (view instanceof TextView) {
                ((TextView)view).setAutoLinkMask(Linkify.ALL);
                text(url);
            }
        }
        return self();
    }
342497
public static function buildFromParseUrlParts(array $parts) {
        $url = '';

        $url .= isset($parts['scheme']) ? $parts['scheme'] : 'http';
        $url .= '://';

        if (isset($parts['user'])) {
            $url .= $parts['user'];

            if (isset($parts['pass'])) {
                $url .= ':' . $parts['pass'];
            }

            $url .= '@';
        }

        $url .= isset($parts['host']) ? $parts['host'] : '';
        $url .= isset($parts['port']) ? ':' . $parts['port'] : '';
        $url .= isset($parts['path']) ? $parts['path'] : '';
        $url .= isset($parts['query']) ? '?' . $parts['query'] : '';
        $url .= isset($parts['fragment']) ? '#' . $parts['fragment'] : '';

        return $url;
    }