hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashesh" <ashesh.nish...@gmail.com>
Subject RE: How to override releaseConnection in MultiThreadedHttpConnectionManager
Date Sat, 27 Jan 2007 11:09:54 GMT
I want to close a connection if it released by a method. Will the following
lines of code suffice for overriding releaseConnection() in
MultiThreadedHttpConnectionManager class?

public class MyManager extends MultiThreadedHttpConnectionManager
	public void releaseConnection(HttpConnection conn) {
		super.releaseConnection(conn);
		conn.close()
	} 
}

Thanks, 
Ashesh

-----Original Message-----
From: Ashesh [mailto:ashesh.nishant@gmail.com] 
Sent: Saturday, January 27, 2007 2:55 AM
To: 'HttpClient User Discussion'
Subject: How to override releaseConnection in
MultiThreadedHttpConnectionManager

Does anyone have a sample code for overriding releaseConnection() in
MultiThreadedHttpConnectionManager class?

Thanks, 
Ashesh


---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: httpclient-user-help@jakarta.apache.org


Mime
View raw message