Here you can find the source of isAnyAddress(final URI u)
public static boolean isAnyAddress(final URI u)
//package com.java2s; // Licensed under the Apache License, Version 2.0 (the "License"); import java.net.URI; public class Main { public static boolean isAnyAddress(final URI u) { return u.getHost() == null && (u.getAuthority().equals("*") || u.getAuthority().startsWith("*:")); }/*from www.ja v a 2s . c om*/ }