public Response < R > processResponse ( final int httpResponseCode , final String httpResponseStatusString , final S freesoundResponse ) { final Response < R > response = new Response <> ( httpResponseCode , httpResponseStatusString ) ; if ( response . isErrorResponse ( ) ) { response . setErrorDetails ( extractErrorMessage ( freesoundResponse ) ) ; } else { response . setResults ( resultsMapper . map ( freesoundResponse ) ) ; } return response ; }
Set the raw response received from the HTTP call . Contents are passed on to sub - classes for mapping to DTOs .