Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 34769 invoked from network); 1 Oct 2009 15:44:10 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 1 Oct 2009 15:44:10 -0000 Received: (qmail 33165 invoked by uid 500); 1 Oct 2009 15:44:06 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 33107 invoked by uid 500); 1 Oct 2009 15:44:06 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 33096 invoked by uid 99); 1 Oct 2009 15:44:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 15:44:06 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [76.96.62.17] (HELO QMTA10.westchester.pa.mail.comcast.net) (76.96.62.17) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Oct 2009 15:43:55 +0000 Received: from OMTA09.westchester.pa.mail.comcast.net ([76.96.62.20]) by QMTA10.westchester.pa.mail.comcast.net with comcast id nRH61c0060SCNGk5ATjTgV; Thu, 01 Oct 2009 15:43:27 +0000 Received: from [192.168.1.200] ([69.143.128.194]) by OMTA09.westchester.pa.mail.comcast.net with comcast id nTjS1c00P4BnRt93VTjT78; Thu, 01 Oct 2009 15:43:27 +0000 Message-ID: <4AC4CE1D.1030608@christopherschultz.net> Date: Thu, 01 Oct 2009 11:43:25 -0400 From: Christopher Schultz User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.1.4pre) Gecko/20090915 Thunderbird/3.0b4 MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Cannot set remote address in valve (Tomcat 5.5) References: <4B7A3AA67FB2456E8F477D96BCDBF8FF@ealbek> In-Reply-To: <4B7A3AA67FB2456E8F477D96BCDBF8FF@ealbek> X-Enigmail-Version: 0.96a Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Elli, On 9/27/2009 12:19 AM, Elli Albek wrote: > public void setRemoteAddr(String remoteAddr) { > // Not used > } > > The variable is protected so I cannot access it directly from my code. What variable? The remoteAddress member? > Is there any way to implement this Valve? Wrap the request object in a subclass that you write. This will allow you to either a) Override the setRemoteAddress method to return whatever you want b) Explicitly set the remoteAddress member to whatever you want - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrEzh0ACgkQ9CaO5/Lv0PAmqwCeJpvyj0k9Ze+QKLkyRNqfpvzp nccAniLAI/gdF65qw9EF6HLsXqcSgacP =S2JM -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org