public static String getBaseUrl ( String url , Logger logger ) { String answer = url ; switch ( identify ( url ) ) { case COMPOSUM : answer = url . substring ( 0 , url . indexOf ( COMPOSUM_URL ) ) ; break ; case CRX : answer = url . substring ( 0 , url . indexOf ( CRX_URL ) ) ; break ; default : logger . error ( "Given URL is not supported: " + url ) ; } return answer ; }
Returns the Base Url of a given URL with based on its Vendors from the URL