diff --git a/src/java/org/apache/http/impl/conn/LoggingHttpDataReceiverDecorator.java b/src/java/org/apache/http/impl/conn/LoggingHttpDataReceiverDecorator.java index 25a119cba..89211cd98 100644 --- a/src/java/org/apache/http/impl/conn/LoggingHttpDataReceiverDecorator.java +++ b/src/java/org/apache/http/impl/conn/LoggingHttpDataReceiverDecorator.java @@ -33,6 +33,7 @@ package org.apache.http.impl.conn; import java.io.IOException; import org.apache.http.io.HttpDataReceiver; +import org.apache.http.io.HttpTransportMetrics; import org.apache.http.params.HttpParams; import org.apache.http.util.CharArrayBuffer; @@ -114,4 +115,8 @@ class LoggingHttpDataReceiverDecorator implements HttpDataReceiver { return l; } + public HttpTransportMetrics getMetrics() { + return this.in.getMetrics(); + } + } diff --git a/src/java/org/apache/http/impl/conn/LoggingHttpDataTransmitterDecorator.java b/src/java/org/apache/http/impl/conn/LoggingHttpDataTransmitterDecorator.java index 21c618943..4f82728f7 100644 --- a/src/java/org/apache/http/impl/conn/LoggingHttpDataTransmitterDecorator.java +++ b/src/java/org/apache/http/impl/conn/LoggingHttpDataTransmitterDecorator.java @@ -33,6 +33,7 @@ package org.apache.http.impl.conn; import java.io.IOException; import org.apache.http.io.HttpDataTransmitter; +import org.apache.http.io.HttpTransportMetrics; import org.apache.http.params.HttpParams; import org.apache.http.util.CharArrayBuffer; @@ -105,5 +106,9 @@ class LoggingHttpDataTransmitterDecorator implements HttpDataTransmitter { this.wire.output(s + "[EOL]"); } } + + public HttpTransportMetrics getMetrics() { + return this.out.getMetrics(); + } }