Return-Path: Delivered-To: apmail-incubator-clerezza-dev-archive@minotaur.apache.org Received: (qmail 2857 invoked from network); 20 Aug 2010 17:40:10 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 20 Aug 2010 17:40:10 -0000 Received: (qmail 22799 invoked by uid 500); 20 Aug 2010 17:40:10 -0000 Delivered-To: apmail-incubator-clerezza-dev-archive@incubator.apache.org Received: (qmail 22755 invoked by uid 500); 20 Aug 2010 17:40:10 -0000 Mailing-List: contact clerezza-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: clerezza-dev@incubator.apache.org Delivered-To: mailing list clerezza-dev@incubator.apache.org Received: (qmail 22747 invoked by uid 99); 20 Aug 2010 17:40:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Aug 2010 17:40:09 +0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of henry.story@gmail.com designates 74.125.82.175 as permitted sender) Received: from [74.125.82.175] (HELO mail-wy0-f175.google.com) (74.125.82.175) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 20 Aug 2010 17:40:02 +0000 Received: by wyb33 with SMTP id 33so3378584wyb.6 for ; Fri, 20 Aug 2010 10:39:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:content-type :content-transfer-encoding:subject:date:message-id:to:mime-version :x-mailer; bh=xdXvxqKtghmp08kQXNmyIWrgxgJkQYoyGoQCQLjFpDw=; b=MeHQFgUrO+OwFgMfRwuhMWoAqzT6WnqRV2zqPfCWOPo8HA7lHq6D32AqZAhcIGUUAS RHmBua4aVqsOMkaFJvXeMoVrUNOgr7TqVsBk/nLTB0ndSxkkQdrZqX5usTMaCxjLZe5O 8S1ClRRmBI3Hor7iZ+boSBSgoRT111DIRMUFM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:content-type:content-transfer-encoding:subject:date:message-id :to:mime-version:x-mailer; b=Da37SUwm8FMxom3LyHvYKpTHqysNu801+9Qa02gROy52gXoF9wFgyzs7WDjvuKmGAM ZbHQhbskWvhWedGQI9r/vBvFV+KVn7Z74XdGqBZxcn6NTpV/Qxk0bIjTxHaOBiAfEWDG WCjywr8g7vWwRaEz4fnDszOivqDsIhMFi5Yd0= Received: by 10.227.156.202 with SMTP id y10mr1590052wbw.48.1282325980845; Fri, 20 Aug 2010 10:39:40 -0700 (PDT) Received: from [10.20.30.34] ([216.219.69.211]) by mx.google.com with ESMTPS id b23sm2341958wbb.4.2010.08.20.10.39.39 (version=TLSv1/SSLv3 cipher=RC4-MD5); Fri, 20 Aug 2010 10:39:40 -0700 (PDT) From: Henry Story Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Subject: getting the servlet request (and ssl session clearing in jetty) Date: Fri, 20 Aug 2010 19:39:36 +0200 Message-Id: <9AAA1B83-CCE7-454F-9461-07BC4752A131@bblfish.net> To: clerezza-dev@incubator.apache.org Mime-Version: 1.0 (Apple Message framework v1081) X-Mailer: Apple Mail (2.1081) I don't seem to be able to get the servlet request from a jsr-311 = annotated method in Clerezza. I tried quite a lot of different things, including things like @GET public Response logout(@Context UriInfo uriInfo, @HeaderParam("Referer") URI referer, @Context ServletRequest req) { ... } With no success. req is just null. Any ideas? ----- Btw. I am trying to clear the session information to see if there is any = way of getting around the issues of logging out with SSL. I need to try = something out to see if this will work. Any idea if it is possible to = clear the SSL Session information?=20 You can do it in apache as described at the end of this document: http://tomcat.apache.org/tomcat-7.0-doc/ssl-howto.html // Standard HTTP session invalidation session.invalidate(); // Invalidate the SSL Session org.apache.tomcat.util.net.SSLSessionManager mgr =3D (org.apache.tomcat.util.net.SSLSessionManager) request.getAttribute("javax.servlet.request.ssl_session_mgr"); mgr.invalidateSession(); // Close the conection since the SSL session will be active until the = connection // is closed response.setHeader("Connection", "close"); Henry