Return-Path: X-Original-To: apmail-hc-dev-archive@www.apache.org Delivered-To: apmail-hc-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 BBB6410A6A for ; Sun, 28 Jul 2013 12:24:25 +0000 (UTC) Received: (qmail 47471 invoked by uid 500); 28 Jul 2013 12:24:24 -0000 Delivered-To: apmail-hc-dev-archive@hc.apache.org Received: (qmail 47195 invoked by uid 500); 28 Jul 2013 12:24:19 -0000 Mailing-List: contact dev-help@hc.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "HttpComponents Project" Delivered-To: mailing list dev@hc.apache.org Received: (qmail 47178 invoked by uid 99); 28 Jul 2013 12:24:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2013 12:24:17 +0000 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= X-Spam-Check-By: apache.org Received-SPF: error (nike.apache.org: local policy) Received: from [217.150.250.48] (HELO kalnich.nine.ch) (217.150.250.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 28 Jul 2013 12:24:09 +0000 Received: from [192.168.1.121] (77-57-198-202.dclient.hispeed.ch [77.57.198.202]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by kalnich.nine.ch (Postfix) with ESMTPSA id AF294B80D61; Sun, 28 Jul 2013 14:23:28 +0200 (CEST) Message-ID: <1375014208.12587.28.camel@ubuntu> Subject: Re: Alternative to SSLClientIOEventDispatch.createSSLIOSession From: Oleg Kalnichevski To: dev@synapse.apache.org Cc: HttpComponents Project Date: Sun, 28 Jul 2013 14:23:28 +0200 In-Reply-To: <37CCCE38-23BA-4D98-9CBE-0CD18FB0CC30@gmail.com> References: <1374739494.31328.17.camel@ubuntu> <37CCCE38-23BA-4D98-9CBE-0CD18FB0CC30@gmail.com> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4-0ubuntu1 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org On Thu, 2013-07-25 at 12:28 -0700, Hiranya Jayathilaka wrote: > Hi Oleg, > > On Jul 25, 2013, at 1:04 AM, Oleg Kalnichevski > wrote: > > > On Wed, 2013-07-24 at 12:32 -0700, Hiranya Jayathilaka wrote: > > > Hi Oleg, > > > > > > We used to override the createSSLIOSession method of the > > > SSLClientIOEventDispatch class in the Synapse transports. What is > > > the alternative to this in the new HTTP Core APIs? Basically, we > > > want to customize how SSLIOSession instances are created by the > > > transport. > > > > > > Thanks, > > > Hiranya > > > > You should use SSLNHttp*ConnectionFactory with a custom > > SSLSetupHandler > > or create a custom NHttpConnectionFactory. > > > It doesn't look like we can override the way SSLIOSession instances > are created from a custom SSLSetupHandler. Only option is to override > the createConnection(IOSession) method of > SSLNHttpClientConnectionFactory. The SSLIOSession objects are created > within this method as follows: > > > SSLIOSession ssliosession = new SSLIOSession(session, SSLMode.SERVER, sslcontext, this.sslHandler); > > > Will it be possible to get an extensible hook into this class in a > future release, so we can easily override how SSLIOSession objects are > created, without having to override the whole createConnection method? > > > Thanks, > Hiranya > That's already been done in 4.3 Oleg --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org For additional commands, e-mail: dev-help@hc.apache.org