Java 类org.apache.http.impl.client.EntityEnclosingRequestWrapper 实例源码

项目:FullRobolectricTestSample    文件:DefaultRequestDirector.java   
private RequestWrapper wrapRequest(
    final HttpRequest request) throws ProtocolException {
  if (request instanceof HttpEntityEnclosingRequest) {
    return new EntityEnclosingRequestWrapper(
        (HttpEntityEnclosingRequest) request);
  } else {
    return new RequestWrapper(
        request);
  }
}
项目:YiBo    文件:LibRequestDirector.java   
private RequestWrapper wrapRequest(
        final HttpRequest request) throws ProtocolException {
    if (request instanceof HttpEntityEnclosingRequest) {
        return new EntityEnclosingRequestWrapper(
                (HttpEntityEnclosingRequest) request);
    } else {
        return new RequestWrapper(
                request);
    }
}
项目:yibo-library    文件:YiBoRequestDirector.java   
private RequestWrapper wrapRequest(
        final HttpRequest request) throws ProtocolException {
    if (request instanceof HttpEntityEnclosingRequest) {
        return new EntityEnclosingRequestWrapper(
                (HttpEntityEnclosingRequest) request);
    } else {
        return new RequestWrapper(
                request);
    }
}