Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 73031 invoked from network); 3 May 2004 18:36:45 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 3 May 2004 18:36:45 -0000 Received: (qmail 48504 invoked by uid 500); 3 May 2004 18:36:15 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 48481 invoked by uid 500); 3 May 2004 18:36:14 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 48463 invoked from network); 3 May 2004 18:36:14 -0000 Received: from unknown (HELO warhawk.mpi.com) (63.244.250.133) by daedalus.apache.org with SMTP; 3 May 2004 18:36:14 -0000 Received: from thunderbolt.mpi.com (thunderbolt [63.244.253.70]) by warhawk.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i43IVuFE008267 for ; Mon, 3 May 2004 14:31:56 -0400 (EDT) Received: from US-VS1.corp.mpi.com (us-be2.corp.mpi.com [63.244.252.32]) by thunderbolt.mpi.com (Switch-3.1.4/Switch-3.1.0) with ESMTP id i43Ia3AP000165 for ; Mon, 3 May 2004 14:36:07 -0400 (EDT) X-MimeOLE: Produced By Microsoft Exchange V6.0.6487.1 Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: Modify request in a Vavle? Date: Mon, 3 May 2004 14:35:28 -0400 Message-ID: <9C5166762F311146951505C6790A9CF8013E0292@US-VS1.corp.mpi.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Modify request in a Vavle? thread-index: AcQxPRkW1wKPdcdMTfS7vmLiO7hqIwAAAmdQ From: "Shapira, Yoav" To: "Tomcat Users List" 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 Hi, You can modify some things in a Valve, such as request headers. Modifying the request content itself is trickier. I haven't tried to = do that in a Valve, but since tomcat is open you can always modify the connector if you're hell-bent on going this way. Consider a Filter (javax.servlet.Filter) rather than a Valve if you ne= ed to modify headers or otherwise customize the request. A Filter in combination with an HttpServletRequestWrapper is not only effective an= d flexible, but also more portable than a Valve because it's not specifi= c to Tomcat. Yoav Shapira Millennium Research Informatics >-----Original Message----- >From: Rui Zhang [mailto:Rui.Zhang@comlab.ox.ac.uk] >Sent: Monday, May 03, 2004 2:34 PM >To: tomcat-user@jakarta.apache.org >Subject: Modify request in a Vavle? > >Hi there, > > Is it possible to modify the content of a request (say, the SOAP >message it carries) in a Tomcat valve? I was hoping to embed some inf= o >into the SOAP message and thus pass it to the subsequent Axis >environment...... > > I had a look at the Request structure Tomcat valve captures, but >couldn't find any convenient way to achieve the above. Can any one gi= ve me >some suggestions? > > Thank you very much. > >Best regards, > >Rui > > >---------------------------------------------------------------------= >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org This e-mail, including any attachments, is a confidential business com= munication, and may contain information that is confidential, propriet= ary and/or privileged. This e-mail is intended only for the individua= l(s) to whom it is addressed, and may not be saved, copied, printed, d= isclosed or used by anyone else. If you are not the(an) intended reci= pient, please immediately delete this e-mail from your computer system= and notify the sender. Thank you. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org