public static String joinDomainToPath ( String domainName , String path ) { StringBuilder sb = new StringBuilder ( ) ; if ( domainName . endsWith ( JawrConstant . URL_SEPARATOR ) ) { sb . append ( domainName . substring ( 0 , domainName . length ( ) - 1 ) ) ; } else { sb . append ( domainName ) ; } sb . append ( JawrConstant . URL_SEPARATOR ) . append ( PathNormalizer . normalizePath ( path ) ) ; return sb . toString ( ) ; }
Normalizes a domain name and a path and joins them as a single url .