Examples of IBodySinkPair


Examples of org.xlightweb.client.HttpClientConnection.IBodySinkPair

   
    // create exchange
    ClientExchange exchange = new ClientExchange(this, getWorkerpool());
   
    // create data body sink / data body source pair
    IBodySinkPair pair = HttpClientConnection.newBodySinkPair(null, exchange.getExecutor(), requestHeader.getCharacterEncoding());
    IHttpRequest request = new HttpRequest(requestHeader, pair.getBodyDataSource());

    // init and process it
    exchange.init(request, responseHandler);
    httpClientRequestHandlerChain.onRequest(exchange);
     
   
    // log trace if activated
    if (transactionMonitor != null) {
      transactionMonitor.register(requestHeader);
    }

    return pair.getBodyDataSink();
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.