public static String concatenateAndUriEncode(Collection<?> list, String delimiter) {
        Collection<String> escaped = new ArrayList<String>();

        if (list != null) {
            for (Object object : list) {
                escaped.add(encode(object.toString()));
            }
        }
        return StringUtils.concatenate(escaped, delimiter);
    }
public static String concatenateAndUriEncode ( Collection < ? > list , String delimiter ) { Collection < String > escaped = new ArrayList < String > ( ) ; if ( list != null ) { for ( Object object : list ) { escaped . add ( encode ( object . toString ( ) ) ) ; } } return StringUtils . concatenate ( escaped , delimiter ) ; }
Encodes each string value of the list and concatenates the results using the supplied delimiter.

@param list To be encoded and concatenated.
@param delimiter Separator for concatenation.
@return Concatenated and encoded string representation.