Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6C2694847 for ; Mon, 27 Jun 2011 09:08:11 +0000 (UTC) Received: (qmail 52471 invoked by uid 500); 27 Jun 2011 09:08:07 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 51835 invoked by uid 500); 27 Jun 2011 09:07:55 -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 51816 invoked by uid 99); 27 Jun 2011 09:07:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 09:07:52 +0000 X-ASF-Spam-Status: No, hits=-2.3 required=5.0 tests=RCVD_IN_DNSWL_MED,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of jak-tomcat-user@m.gmane.org designates 80.91.229.12 as permitted sender) Received: from [80.91.229.12] (HELO lo.gmane.org) (80.91.229.12) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 27 Jun 2011 09:07:45 +0000 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Qb7mo-00024Q-3l for users@tomcat.apache.org; Mon, 27 Jun 2011 11:07:18 +0200 Received: from cgn01.cm4all.net ([91.199.241.6]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 11:07:18 +0200 Received: from simon by cgn01.cm4all.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 27 Jun 2011 11:07:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: users@tomcat.apache.org From: Simon Olofsson Subject: Re: ServletRequestListener and Expect-Header Date: Mon, 27 Jun 2011 11:06:56 +0200 Lines: 25 Message-ID: References: <4DEFB5BE.20005@olofsson.de> <4DF0F136.2070209@christopherschultz.net> <4DF10EED.7020702@ice-sa.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: cgn01.cm4all.net User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110516 Thunderbird/3.1.10 In-Reply-To: <4DF10EED.7020702@ice-sa.com> X-Virus-Checked: Checked by ClamAV on apache.org André, sorry for my late response. On 06/09/2011 08:20 PM, André Warnier wrote: > As I read the API for the ServletRequestListener, I understand that this > thing is called very early in the cycle. The spirit seems to be : > provide a way to warn as soon as possible that a servlet request has > come in. > Perhaps even, before we even know that it is really a /HTTP/ servlet > request. from [1]: "A ServletRequest is defined as coming into scope of a web application when it is about to enter the first servlet or filter of the web application [...]" So the Listener is only called when this is a valid ServletRequest. The Connector ensures that only valid Request are forwarded to the application. [1] http://download.oracle.com/javaee/6/api/javax/servlet/ServletRequestListener.html Regards Simon --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org