diff --git a/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java b/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java index 4f0a327fb..ff7799f61 100644 --- a/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java +++ b/module-client/src/main/java/org/apache/http/impl/conn/AbstractClientConnAdapter.java @@ -38,6 +38,7 @@ import org.apache.http.HttpException; import org.apache.http.HttpRequest; import org.apache.http.HttpEntityEnclosingRequest; import org.apache.http.HttpResponse; +import org.apache.http.HttpConnectionMetrics; import org.apache.http.conn.OperatedClientConnection; import org.apache.http.conn.ManagedClientConnection; import org.apache.http.conn.ClientConnectionManager; @@ -149,6 +150,13 @@ public abstract class AbstractClientConnAdapter } + // non-javadoc, see interface HttpConnection + public HttpConnectionMetrics getMetrics() { + assertWrappedConn(); + return wrappedConnection.getMetrics(); + } + + // non-javadoc, see interface HttpClientConnection public void flush() throws IOException {