@ SafeVarargs public static < T > String joinUrlPaths ( final T [ ] arr , final T ... arr2 ) { try { T [ ] url = ArrayUtils . addAll ( arr , arr2 ) ; String res = StringUtils . join ( url ) ; return ( res == null ) ? "" : res ; } catch ( IndexOutOfBoundsException | IllegalArgumentException | ArrayStoreException e ) { log . warn ( "Error while join URL paths from: {}, {}" , arr , arr2 ) ; return "printerror:" + e ; } }
Join URL path into one string .