protected void doDelete ( String path , MultivaluedMap < String , String > headers ) throws ClientException { this . readLock . lock ( ) ; try { ClientResponse response = this . getResourceWrapper ( ) . rewritten ( path , HttpMethod . DELETE ) . delete ( ClientResponse . class ) ; errorIfStatusNotEqualTo ( response , ClientResponse . Status . OK , ClientResponse . Status . NO_CONTENT , ClientResponse . Status . ACCEPTED ) ; response . close ( ) ; } catch ( ClientHandlerException ex ) { throw new ClientException ( ClientResponse . Status . INTERNAL_SERVER_ERROR , ex . getMessage ( ) ) ; } finally { this . readLock . unlock ( ) ; } }
Deletes the resource specified by the path .