protected ClientResponse doDeleteForProxy ( String path , MultivaluedMap < String , String > parameterMap , MultivaluedMap < String , String > headers ) throws ClientException { this . readLock . lock ( ) ; try { WebResource . Builder requestBuilder = getResourceWrapper ( ) . rewritten ( path , HttpMethod . DELETE , parameterMap ) . getRequestBuilder ( ) ; copyHeaders ( headers , requestBuilder ) ; return requestBuilder . delete ( ClientResponse . class ) ; } catch ( ClientHandlerException ex ) { throw new ClientException ( ClientResponse . Status . INTERNAL_SERVER_ERROR , ex . getMessage ( ) ) ; } finally { this . readLock . unlock ( ) ; } }
Deletes a resource from a proxied server .