protected String buildUrl ( Request request ) { StringBuilder sb = new StringBuilder ( 512 ) ; sb . append ( baseUrl ) . append ( request . getEntityName ( ) ) . append ( "/" ) ; if ( request . getPath ( ) != null ) sb . append ( request . getPath ( ) ) ; String queryString = buildQueryString ( request ) ; if ( queryString . length ( ) > 0 ) { sb . append ( "?" ) . append ( queryString ) ; } return sb . toString ( ) ; }
Build the URL for the specified request