private Map < String , String > executeRequestWithBody ( HttpClientService csHttpClient , HttpClientInputs httpClientInputs , String body ) { httpClientInputs . setBody ( body ) ; Map < String , String > requestResponse = csHttpClient . execute ( httpClientInputs ) ; if ( UNAUTHORIZED_STATUS_CODE . equals ( requestResponse . get ( STATUS_CODE ) ) ) { throw new RuntimeException ( UNAUTHORIZED_EXCEPTION_MESSAGE ) ; } return requestResponse ; }
This method executes a request with the given CSHttpClient HttpClientInputs and body .