类 HttpClientStack

java.lang.Object
com.android.volley.toolbox.HttpClientStack
所有已实现的接口:
HttpStack

public class HttpClientStack extends Object implements HttpStack
An HttpStack that performs request over an HttpClient.
  • 嵌套类概要

    嵌套类
    修饰符和类型
    说明
    static final class 
    The HttpPatch class does not exist in the Android framework, so this has been defined here.
  • 字段概要

    字段
    修饰符和类型
    字段
    说明
    protected final org.apache.http.client.HttpClient
     
  • 构造器概要

    构造器
    构造器
    说明
    HttpClientStack(org.apache.http.client.HttpClient client)
     
  • 方法概要

    修饰符和类型
    方法
    说明
    protected void
    onPrepareRequest(org.apache.http.client.methods.HttpUriRequest request)
    Called before the request is executed using the underlying HttpClient.
    org.apache.http.HttpResponse
    performRequest(Request<?> request, Map<String,String> additionalHeaders)
    Performs an HTTP request with the given parameters.

    从类继承的方法 java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 字段详细资料

    • mClient

      protected final org.apache.http.client.HttpClient mClient
  • 构造器详细资料

    • HttpClientStack

      public HttpClientStack(org.apache.http.client.HttpClient client)
  • 方法详细资料

    • performRequest

      public org.apache.http.HttpResponse performRequest(Request<?> request, Map<String,String> additionalHeaders) throws IOException, AuthFailureError
      从接口复制的说明: HttpStack
      Performs an HTTP request with the given parameters.

      A GET request is sent if request.getPostBody() == null. A POST request is sent otherwise, and the Content-Type header is set to request.getPostBodyContentType().

      指定者:
      performRequest 在接口中 HttpStack
      参数:
      request - the request to perform
      additionalHeaders - additional headers to be sent together with Request.getHeaders()
      返回:
      the HTTP response
      抛出:
      IOException
      AuthFailureError
    • onPrepareRequest

      protected void onPrepareRequest(org.apache.http.client.methods.HttpUriRequest request) throws IOException
      Called before the request is executed using the underlying HttpClient.

      Overwrite in subclasses to augment the request.

      抛出:
      IOException