Oleg Kalnichevski schrieb:
On Fri, 2007-09-21 at 12:28 +0200, Johannes Koch wrote:
is it possible to access the socket used by the connection from within
the process methods of a org.apache.http.protocol.HttpProcessor? In case
of secure HTTP I would like to get some information from the certificates.
I do some experiments with the trunk of httpcore and httpclient.
[...]
public void process(
final HttpRequest request,
final HttpContext context) throws HttpException,
IOException {
HttpConnection conn = (HttpConnection) context.getAttribute(
ExecutionContext.HTTP_CONNECTION);
Currently I get a
org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter.
org.apache.http.impl.conn.AbstractClientConnAdapter has
protected OperatedClientConnection wrappedConnection;
org.apache.http.conn.OperatedClientConnection has a getSocket() method.
But AbstractClientConnAdapter does not provide access to the
wrappedConnection.
We may actually think about exposing SSLSession through the
ClientConnection or its extension.
>
Feel free to open a JIRA ticket for that.
Done
--
Johannes Koch
BIKA Web Compliance Center - Fraunhofer FIT
Schloss Birlinghoven, D-53757 Sankt Augustin, Germany
Phone: +49-2241-142628 Fax: +49-2241-142065
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]