Return-Path: X-Original-To: apmail-camel-dev-archive@www.apache.org Delivered-To: apmail-camel-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 1617210587 for ; Tue, 17 Dec 2013 10:57:27 +0000 (UTC) Received: (qmail 84729 invoked by uid 500); 17 Dec 2013 10:57:26 -0000 Delivered-To: apmail-camel-dev-archive@camel.apache.org Received: (qmail 84699 invoked by uid 500); 17 Dec 2013 10:57:26 -0000 Mailing-List: contact dev-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@camel.apache.org Delivered-To: mailing list dev@camel.apache.org Received: (qmail 84691 invoked by uid 99); 17 Dec 2013 10:57:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 10:57:26 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_REPLY,NORMAL_HTTP_TO_IP,RCVD_IN_DNSWL_LOW,SPF_PASS,URI_HEX,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of willem.jiang@gmail.com designates 209.85.160.47 as permitted sender) Received: from [209.85.160.47] (HELO mail-pb0-f47.google.com) (209.85.160.47) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 10:57:21 +0000 Received: by mail-pb0-f47.google.com with SMTP id um1so6810088pbc.20 for ; Tue, 17 Dec 2013 02:57:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :content-type:content-transfer-encoding:content-disposition; bh=quurWmSKKzbTCu9ter/btEeF6Fbb2S+wZP2XhZ4tTng=; b=xnYtIIuuDOGN63Wyv3sUY6icaWAGlS3jbMxeKp4Jtlb38j8CB2uYCjytvirgAqRO5U WAgnQpItHpDESORUv5qUNpcAQkI04wHu1TEFTvAH5QqYA+Zbai25qUDQzEhSVsBnSVA7 cCf3B99pi446bKgejzpwxrc7ocFOD2KURsFh1NF4uWMjqfU5tniChfHmBel/48CvHDkY /bI4tX4DY5VieTviKHWUO04rYHt2QdcyzmVIqoyidFA//GV5mVDlIOFMqC9wOUfsF+IP VYYvEboi05WtljXH0uOYjJDAH78vl4YuM6SgfyqnjvS4CoMKXJnyVn6P6KqlN10lAk4z 7SOQ== X-Received: by 10.66.142.233 with SMTP id rz9mr26460429pab.71.1387277821228; Tue, 17 Dec 2013 02:57:01 -0800 (PST) Received: from localhost ([61.51.131.38]) by mx.google.com with ESMTPSA id ki1sm33011048pbd.1.2013.12.17.02.56.55 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 17 Dec 2013 02:56:57 -0800 (PST) Date: Tue, 17 Dec 2013 18:56:50 +0800 From: Willem Jiang To: dev@camel.apache.org Message-ID: In-Reply-To: <1387270912572-5744928.post@n5.nabble.com> References: <1387270631417-5744926.post@n5.nabble.com> <1387270912572-5744928.post@n5.nabble.com> Subject: Re: can camel used for Single =?utf-8?Q?Sign-On=EF=BC=9F=EF=BC=9F?= X-Mailer: Airmail (223) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org If you want to force the browser to reload the login file, you need to se= nd the 301 redirect response instead of sending the request to login url.= BTW, please use user=40camel.apache.org to ask the camel usage question. -- =20 Willem Jiang Red Hat, Inc. Web: http://www.redhat.com Blog: http://willemjiang.blogspot.com(http://willemjiang.blogspot.com/) (= English) http://jnn.iteye.com(http://jnn.javaeye.com/) (Chinese) Twitter: willemjiang =20 Weibo: =E5=A7=9C=E5=AE=81willem On December 17, 2013 at 5:04:14 PM, yudiao123 (417726999=40qq.com) wrote:= > =20 > if I do as below : the context can route to index.jsp,but the url =20 > on browser > the url is not change.so the context in index.jsp can not use. =20 > public void configure() =7B > =20 > =20 > from(=22jetty:http://192.168.0.154:8181/=3FmatchOnUriPrefix=3Dtrue=22) = =20 > .process(new Processor() =7B > public void process(Exchange exchange) throws Exception =7B =20 > sessionId =3D > exchange.getIn(HttpMessage.class).getRequest().getRequestedSessionId();= =20 > if (null=3D=3DsessionId) > =7B > exchange.getIn().setHeader(=22sessionId=22, 0);; > =20 > exchange.getIn().setHeader(Exchange.HTTP=5FBASE=5FURI, > constant(=22http://192.168.0.154:8181/uiserver/index.jsp=22)); =20 > exchange.getIn().setHeader(Exchange.HTTP=5FPATH, constant(=22=22)); =20 > exchange.getIn().setHeader(Exchange.HTTP=5FSERVLET=5FREQUEST, =20 > constant(=22=22)); > exchange.getIn().setHeader(Exchange.HTTP=5FURI, > constant(=22http://192.168.0.154:8181/uiserver/index.jsp=22)); =20 > =7D > else > =7B > exchange.getIn().setHeader(=22sessionId=22, sessionId);; =20 > exchange.getIn().setHeader(Exchange.HTTP=5FURI, > constant(=22http://192.168.0.154:8181/uiserver/index.jsp=22)); =20 > =7D > =7D > =7D) > =20 > /* .process(new Processor() =7B > public void process(Exchange exchange) throws Exception =7B =20 > exchange.getOut().setHeader(Exchange.HTTP=5FURI, > constant(=22http://www.google.com=22)); > =7D > =7D)*/ > .to(=22ahc:http://127.0.0.1:8181/uiserver/thinknet/index.jsp=22); =20 > =20 > =20 > =20 > =20 > -- > View this message in context: http://camel.465427.n5.nabble.com/can-cam= el-used-for-Single-Sign-On-tp5744926p5744928.html =20 > Sent from the Camel Development mailing list archive at Nabble.com. =20 > =20