Example usage for org.apache.http.impl.nio.client HttpExchange HttpExchange

List of usage examples for org.apache.http.impl.nio.client HttpExchange HttpExchange

Introduction

In this page you can find the example usage for org.apache.http.impl.nio.client HttpExchange HttpExchange.

Prototype

public HttpExchange() 

Source Link

Usage

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);
}