Example usage for org.apache.http.impl.client RequestWrapper RequestWrapper

List of usage examples for org.apache.http.impl.client RequestWrapper RequestWrapper

Introduction

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

Prototype

public RequestWrapper(final HttpRequest request) throws ProtocolException 

Source Link

Usage

From source file:org.apache.http.impl.nio.client.DefaultAsyncRequestDirector.java

private RequestWrapper wrapRequest(final HttpRequest request) throws ProtocolException {
    if (request instanceof HttpEntityEnclosingRequest) {
        return new EntityEnclosingRequestWrapper((HttpEntityEnclosingRequest) request);
    }//from ww  w . ja v  a  2s  . c o  m
    return new RequestWrapper(request);
}