renamed TSCCMConnAdapter

git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@573832 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Roland Weber 2007-09-08 13:05:02 +00:00
parent 017fad655d
commit 7738386c10
3 changed files with 6 additions and 6 deletions

View File

@ -42,7 +42,7 @@ import org.apache.http.impl.conn.AbstractPooledConnAdapter;
* All connections given out by the manager are wrappers which
* can be {@link #detach detach}ed to prevent further use on release.
*/
public class TSCCMConnAdapter extends AbstractPooledConnAdapter {
public class BasicPooledConnAdapter extends AbstractPooledConnAdapter {
/**
* Creates a new adapter.
@ -50,7 +50,7 @@ public class TSCCMConnAdapter extends AbstractPooledConnAdapter {
* @param tsccm the connection manager
* @param entry the pool entry for the connection being wrapped
*/
protected TSCCMConnAdapter(ThreadSafeClientConnManager tsccm,
protected BasicPooledConnAdapter(ThreadSafeClientConnManager tsccm,
AbstractPoolEntry entry) {
super(tsccm, entry);
super.markedReusable = true;

View File

@ -176,19 +176,19 @@ public class ThreadSafeClientConnManager
final BasicPoolEntry entry =
connectionPool.getEntry(route, timeout, connOperator);
return new TSCCMConnAdapter(this, entry);
return new BasicPooledConnAdapter(this, entry);
}
// non-javadoc, see interface ClientConnectionManager
public void releaseConnection(ManagedClientConnection conn) {
if (!(conn instanceof TSCCMConnAdapter)) {
if (!(conn instanceof BasicPooledConnAdapter)) {
throw new IllegalArgumentException
("Connection class mismatch, " +
"connection not obtained from this manager.");
}
TSCCMConnAdapter hca = (TSCCMConnAdapter) conn;
BasicPooledConnAdapter hca = (BasicPooledConnAdapter) conn;
if ((hca.getPoolEntry() != null) && (hca.getManager() != this)) {
throw new IllegalArgumentException
("Connection not obtained from this manager.");

View File

@ -81,7 +81,7 @@ and their assignment to the three areas.
<tr>
<td style="text-align: center; background-color: #00ff00;">
{@link org.apache.http.impl.conn.tsccm.TSCCMConnAdapter}
{@link org.apache.http.impl.conn.tsccm.BasicPooledConnAdapter}
</td>
<td style="text-align: center; background-color: #ffff00;">
{@link org.apache.http.impl.conn.tsccm.ConnPoolByRoute}