use of org.apache.http.nio.protocol.HttpAsyncRequestProducer in project pinpoint by naver.
the class DefaultClientExchangeHandlerImplStartMethodInterceptor method getHost.
private NameIntValuePair<String> getHost(final Object target) {
if (!(target instanceof RequestProducerGetter)) {
return null;
}
final HttpAsyncRequestProducer producer = ((RequestProducerGetter) target)._$PINPOINT$_getRequestProducer();
final HttpHost httpHost = producer.getTarget();
if (httpHost != null) {
return new NameIntValuePair<String>(httpHost.getHostName(), httpHost.getPort());
} else {
return null;
}
}
Aggregations