@Override
    public String parseUniqueKey(String url) {
        boolean illegal = false;
        if (StringUtils.isBlank(url)) {
            illegal = true;
        }

        String uniqueKey = StringUtils.EMPTY;
        String addr = url.trim();
        String[] sectors = StringUtils.split(addr, QUES);
        if (!illegal && sectors.length == 2 && StringUtils.isNotBlank(sectors[0])) {
            uniqueKey = sectors[0].trim();
        } else {
            illegal = true;
        }

        if (illegal) {
            throw new IllegalArgumentException("Illegal format address string: " + url);
        }
        return uniqueKey;
    }
@ Override public String parseUniqueKey ( String url ) { boolean illegal = false ; if ( StringUtils . isBlank ( url ) ) { illegal = true ; } String uniqueKey = StringUtils . EMPTY ; String addr = url . trim ( ) ; String [ ] sectors = StringUtils . split ( addr , QUES ) ; if ( ! illegal && sectors . length == 2 && StringUtils . isNotBlank ( sectors [ 0 ] ) ) { uniqueKey = sectors [ 0 ] . trim ( ) ; } else { illegal = true ; } if ( illegal ) { throw new IllegalArgumentException ( "Illegal format address string: " + url ) ; } return uniqueKey ; }
@see com.alipay.remoting.RemotingAddressParser#parseUniqueKey(java.lang.String)