List of usage examples for org.apache.http.impl.nio.client HttpExchange HttpExchange
public HttpExchange()
From source file:org.apache.http.impl.nio.client.NHttpClientProtocolHandler.java
public void connected(final NHttpClientConnection conn, final Object attachment) { HttpExchange httpexchange = new HttpExchange(); HttpContext context = conn.getContext(); if (this.log.isDebugEnabled()) { this.log.debug("Connected " + formatState(conn, httpexchange)); }//from www . j a v a 2s . c om context.setAttribute(HTTP_EXCHNAGE, httpexchange); requestReady(conn); }