Return-Path: Delivered-To: apmail-lucene-solr-dev-archive@minotaur.apache.org Received: (qmail 43384 invoked from network); 25 Sep 2009 21:49:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 21:49:38 -0000 Received: (qmail 12543 invoked by uid 500); 25 Sep 2009 21:49:38 -0000 Delivered-To: apmail-lucene-solr-dev-archive@lucene.apache.org Received: (qmail 12442 invoked by uid 500); 25 Sep 2009 21:49:38 -0000 Mailing-List: contact solr-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-dev@lucene.apache.org Delivered-To: mailing list solr-dev@lucene.apache.org Received: (qmail 12432 invoked by uid 99); 25 Sep 2009 21:49:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 21:49:37 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 21:49:36 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 13B6C234C4B7 for ; Fri, 25 Sep 2009 14:49:16 -0700 (PDT) Message-ID: <618544213.1253915356079.JavaMail.jira@brutus> Date: Fri, 25 Sep 2009 14:49:16 -0700 (PDT) From: "Sean Fitzgerald (JIRA)" To: solr-dev@lucene.apache.org Subject: [jira] Created: (SOLR-1464) CommonsHttpSolrServer does not conform to bean conventions MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org CommonsHttpSolrServer does not conform to bean conventions ---------------------------------------------------------- Key: SOLR-1464 URL: https://issues.apache.org/jira/browse/SOLR-1464 Project: Solr Issue Type: Bug Components: clients - java Affects Versions: 1.3 Reporter: Sean Fitzgerald Attachments: CommonsHttpSolrServer.java-BEAN.patch Several class variables (baseURL, allowCompression, maxRetries, etc) have neither getters nor setters. By creating getters and setters for these properties, we can allow other developers to extend CommonsHttpSolrServer with additional functionality. It is also then necessary to use these methods internally, as opposed to referencing the class variables directly. For example, by extending a method like public String getBaseURL() One could attach a host monitoring or home-brewed DNS resolution service to intercept, thus replicating the functionality of LBHttpSolrServer with very little of the code. Attached is a basic patch (generated using eclipse Source tools), as a minimal set of changes. I have not changes the general coding style of the file, though that would be preferable. I am open to suggestion on whether these methods should be public (as in the attached patch), or protected. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.