public String getResponseString ( ClientResponse response ) throws Exception { if ( debug ) LOGGER . log ( Level . INFO , "status: " + response . getStatus ( ) ) ; String responseText = response . getEntity ( String . class ) ; if ( response . getStatus ( ) != 200 ) { handleError ( "status " + response . getStatus ( ) + ":'" + responseText + "'" ) ; } return responseText ; }
get the Response string