public static String doGet ( final String url , final int retryTimes ) { try { return doGetByLoop ( url , retryTimes ) ; } catch ( HttpException e ) { throw new HttpException ( format ( "Failed to download content for url: '%s'. Tried '%s' times" , url , Math . max ( retryTimes + 1 , 1 ) ) ) ; } }
access given url by get request if get exception will retry by given retryTimes .