protected < P extends ParsedResume > P handleParseResumeText ( String resume , ResumeTextParseParams params ) { Map < String , String > uriVariables = restUriVariablesFactory . getUriVariablesForResumeTextParse ( params ) ; String url = restUrlFactory . assembleParseResumeTextUrl ( params ) ; JSONObject resumeInfoToPost = new JSONObject ( ) ; try { resumeInfoToPost . put ( "resume" , resume ) ; } catch ( JSONException e ) { log . error ( "Error creating JsonObject with resume text." , e ) ; } String jsonEncodedResume = resumeInfoToPost . toString ( ) ; ParsedResume response = this . parseResume ( url , jsonEncodedResume , uriVariables ) ; return ( P ) response ; }
Handles the parsing of a resume text . Contains retry logic .