From commits-return-8081-apmail-commons-commits-archive=commons.apache.org@commons.apache.org Tue Aug 18 19:52:23 2009 Return-Path: Delivered-To: apmail-commons-commits-archive@minotaur.apache.org Received: (qmail 43232 invoked from network); 18 Aug 2009 19:52:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 18 Aug 2009 19:52:23 -0000 Received: (qmail 97615 invoked by uid 500); 18 Aug 2009 19:52:41 -0000 Delivered-To: apmail-commons-commits-archive@commons.apache.org Received: (qmail 97526 invoked by uid 500); 18 Aug 2009 19:52:41 -0000 Mailing-List: contact commits-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@commons.apache.org Delivered-To: mailing list commits@commons.apache.org Received: (qmail 97517 invoked by uid 99); 18 Aug 2009 19:52:41 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 19:52:41 +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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 18 Aug 2009 19:52:39 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id 0E807238893B; Tue, 18 Aug 2009 19:52:19 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r805554 - /commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java Date: Tue, 18 Aug 2009 19:52:18 -0000 To: commits@commons.apache.org From: joehni@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20090818195219.0E807238893B@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: joehni Date: Tue Aug 18 19:52:18 2009 New Revision: 805554 URL: http://svn.apache.org/viewvc?rev=805554&view=rev Log: Make string representation of UserAuthenticationData.Type available to be used as constants read from some kind of configuration file. Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java Modified: commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java?rev=805554&r1=805553&r2=805554&view=diff ============================================================================== --- commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java (original) +++ commons/proper/vfs/trunk/core/src/main/java/org/apache/commons/vfs/UserAuthenticationData.java Tue Aug 18 19:52:18 2009 @@ -71,6 +71,10 @@ { return type != null ? type.hashCode() : 0; } + + public String toString() { + return type; + } } /** The user name. */ @@ -92,7 +96,7 @@ /** * set a data to this collection. * @param type The Type to add - * @param data The data assoicated with the Type + * @param data The data associated with the Type */ public void setData(Type type, char[] data) { @@ -102,7 +106,7 @@ /** * get a data from the collection. * @param type The Type to retrieve. - * @return a character array containing the data assoicated with the type. + * @return a character array containing the data associated with the type. */ public char[] getData(Type type) {