From c2bebe8f7e852a64004b156be95c2772d831e1e7 Mon Sep 17 00:00:00 2001 From: Oleg Kalnichevski Date: Wed, 9 May 2007 21:50:47 +0000 Subject: [PATCH] Upgraded to the latest HttpCore API (caused by HTTPCORE-21) git-svn-id: https://svn.apache.org/repos/asf/jakarta/httpcomponents/httpclient/trunk@536670 13f79535-47bb-0310-9956-ffa450edef68 --- .../http/impl/conn/LoggingHttpDataReceiverDecorator.java | 5 +++++ .../http/impl/conn/LoggingHttpDataTransmitterDecorator.java | 5 +++++ 2 files changed, 10 insertions(+) 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(); + } }