List of usage examples for org.apache.http.impl.client RequestWrapper RequestWrapper
public RequestWrapper(final HttpRequest request) throws ProtocolException
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); }