public class MetricInputStreamEntity
extends org.apache.http.entity.InputStreamEntity
Note this class is only relevant when metric is enabled. Otherwise it should not even be involved in the call stack to minimize runtime overhead.
Constructor and Description |
---|
MetricInputStreamEntity(ThroughputMetricType metricType,
InputStream instream,
long length) |
MetricInputStreamEntity(ThroughputMetricType metricType,
InputStream instream,
long length,
org.apache.http.entity.ContentType contentType) |
Modifier and Type | Method and Description |
---|---|
void |
writeTo(OutputStream outstream) |
getContent, getContentLength, isRepeatable, isStreaming
public MetricInputStreamEntity(ThroughputMetricType metricType, InputStream instream, long length)
public MetricInputStreamEntity(ThroughputMetricType metricType, InputStream instream, long length, org.apache.http.entity.ContentType contentType)
public void writeTo(OutputStream outstream) throws IOException
writeTo
in interface org.apache.http.HttpEntity
writeTo
in class org.apache.http.entity.InputStreamEntity
IOException
Copyright © 2015. All rights reserved.