code: public HttpResponse execute( final HttpUriRequest request ) throws IOException, ReadOnlyException {
          if ( readOnly ) {
              switch ( request.getMethod().toLowerCase() ) {
                  case "copy": case "delete": case "move": case "patch": case "post": case "put":
                      throw new ReadOnlyException();
                  default:
                      break;
              }
          }
  
          return httpClient.execute(request, httpContext);
      }
docs: Execute a request for a subclass.
  
  @param request request to be executed
  @return response containing response to request
  @throws IOException
  @throws ReadOnlyException