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);
    }
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 ) ; }
Execute a request for a subclass.

@param request request to be executed
@return response containing response to request
@throws IOException
@throws ReadOnlyException