added getMetrics() to connection adapter
git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@548034 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a0faec6ccd
commit
be3c4732ab
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue