hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oleg Kalnichevski <ol...@apache.org>
Subject Re: How to log the source port from the ClientHandler
Date Mon, 08 Feb 2010 11:36:25 GMT
On Mon, 2010-02-08 at 13:41 +0530, Supun Kamburugamuva wrote:
> I'm looking for a way to log the source socket port for a socket connection
> from a Class implementing the NHttpClientHandler. I'm interested in both
> connection creation and close events.
> NHttpClientHandler class receives a instance of type NHttpClientConnection.
> I can cast this to HttpInetConnection and get the required information. Is
> this the correct approach for logging this information?

Yes, it is.

> Also when a connection is made, can I use the SessionRequestCallback
> interface's completed method for logging the connection creation?

Yes, you can. This is precisely what SessionRequestCallback is for.

Hope this helps


> Thanks,
> Supun..

To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
For additional commands, e-mail: dev-help@hc.apache.org

View raw message