Return-Path: Delivered-To: apmail-cxf-users-archive@www.apache.org Received: (qmail 70892 invoked from network); 17 Dec 2009 00:21:14 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 17 Dec 2009 00:21:14 -0000 Received: (qmail 65997 invoked by uid 500); 17 Dec 2009 00:21:13 -0000 Delivered-To: apmail-cxf-users-archive@cxf.apache.org Received: (qmail 65920 invoked by uid 500); 17 Dec 2009 00:21:13 -0000 Mailing-List: contact users-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@cxf.apache.org Delivered-To: mailing list users@cxf.apache.org Received: (qmail 65908 invoked by uid 99); 17 Dec 2009 00:21:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 00:21:13 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of Henrik.Martin@rovicorp.com designates 144.198.200.26 as permitted sender) Received: from [144.198.200.26] (HELO outbound1.rovicorp.com) (144.198.200.26) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 17 Dec 2009 00:21:05 +0000 Received: from tul1imc5.corporate.local ([10.151.4.176]) by outbound1.rovicorp.com with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 18:20:44 -0600 Received: from scl1mail1.corporate.local ([10.10.20.14]) by tul1imc5.corporate.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 18:20:44 -0600 Received: from scl1mail1.corporate.local ([10.10.20.15]) by scl1mail1.corporate.local with Microsoft SMTPSVC(6.0.3790.3959); Wed, 16 Dec 2009 16:20:35 -0800 Received: from 10.151.200.1 ([10.151.200.1]) by scl1mail1.corporate.local ([10.10.20.14]) with Microsoft Exchange Server HTTP-DAV ; Thu, 17 Dec 2009 00:13:23 +0000 Received: from linux-vw9e by SCL1MAIL1; 16 Dec 2009 16:14:34 -0800 Subject: How do I access the request URI from an ExceptionMapper? From: Henrik Martin To: users@cxf.apache.org Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Wed, 16 Dec 2009 16:14:33 -0800 Message-Id: <1261008873.5381.101.camel@linux-vw9e.site> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1.1 X-OriginalArrivalTime: 17 Dec 2009 00:20:35.0659 (UTC) FILETIME=[C0BE59B0:01CA7EAE] X-Virus-Checked: Checked by ClamAV on apache.org Greetings. I have written a bunch of ExceptionMapper implementations to catch a variety of business exceptions in our system and return them as a special type of Response object. It works fine, but I need to get a hold of the URI from the incoming request to set it in the outgoing Response. Since the ExceptionMapper interface method toResponse() only gives me the actual Exception that was thrown, is there another way I can get the URI? Thanks, /Henrik