Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@www.apache.org Received: (qmail 30580 invoked from network); 12 Oct 2003 02:17:16 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 12 Oct 2003 02:17:16 -0000 Received: (qmail 50627 invoked by uid 500); 12 Oct 2003 02:16:55 -0000 Delivered-To: apmail-jakarta-commons-dev-archive@jakarta.apache.org Received: (qmail 50336 invoked by uid 500); 12 Oct 2003 02:16:54 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 50323 invoked by uid 500); 12 Oct 2003 02:16:54 -0000 Received: (qmail 50320 invoked from network); 12 Oct 2003 02:16:54 -0000 Received: from unknown (HELO minotaur.apache.org) (209.237.227.194) by daedalus.apache.org with SMTP; 12 Oct 2003 02:16:54 -0000 Received: (qmail 30530 invoked by uid 1628); 12 Oct 2003 02:17:11 -0000 Date: 12 Oct 2003 02:17:11 -0000 Message-ID: <20031012021711.30529.qmail@minotaur.apache.org> From: tobrien@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/codec/src/java/org/apache/commons/codec/net URLCodec.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N tobrien 2003/10/11 19:17:11 Modified: codec/src/java/org/apache/commons/codec/net URLCodec.java Log: ENCODING was a static final variable, but it was only accessed from non-static methods. This field was alter to be non-static and non-final. A constructor was added to allow the end-user to set a custom Encoding. Revision Changes Path 1.8 +10 -2 jakarta-commons/codec/src/java/org/apache/commons/codec/net/URLCodec.java Index: URLCodec.java =================================================================== RCS file: /home/cvs/jakarta-commons/codec/src/java/org/apache/commons/codec/net/URLCodec.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- URLCodec.java 5 Oct 2003 21:45:49 -0000 1.7 +++ URLCodec.java 12 Oct 2003 02:17:11 -0000 1.8 @@ -97,7 +97,7 @@ /** * The String encoding used for decoding and encoding. */ - protected static final String ENCODING = "US-ASCII"; + protected String ENCODING = "US-ASCII"; /** * BitSet of www-form-url safe characters. @@ -132,6 +132,14 @@ */ public URLCodec() { super(); + } + + /** + * Constructor which allows for the selection of an Encoding + */ + public URLCodec(String encoding) { + super(); + ENCODING = encoding; } /** --------------------------------------------------------------------- To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: commons-dev-help@jakarta.apache.org