类 HurlStack
java.lang.Object
com.android.volley.toolbox.HurlStack
- 所有已实现的接口:
HttpStack
An
HttpStack based on HttpURLConnection.-
嵌套类概要
嵌套类 -
构造器概要
构造器构造器说明HurlStack(HurlStack.UrlRewriter urlRewriter) HurlStack(HurlStack.UrlRewriter urlRewriter, SSLSocketFactory sslSocketFactory) -
方法概要
修饰符和类型方法说明protected HttpURLConnectioncreateConnection(URL url) Create anHttpURLConnectionfor the specifiedurl.org.apache.http.HttpResponseperformRequest(Request<?> request, Map<String, String> additionalHeaders) Performs an HTTP request with the given parameters.
-
构造器详细资料
-
HurlStack
public HurlStack() -
HurlStack
- 参数:
urlRewriter- Rewriter to use for request URLs
-
HurlStack
- 参数:
urlRewriter- Rewriter to use for request URLssslSocketFactory- SSL factory to use for HTTPS connections
-
-
方法详细资料
-
performRequest
public org.apache.http.HttpResponse performRequest(Request<?> request, Map<String, String> additionalHeaders) throws IOException, AuthFailureError从接口复制的说明:HttpStackPerforms 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 performadditionalHeaders- additional headers to be sent together withRequest.getHeaders()- 返回:
- the HTTP response
- 抛出:
IOExceptionAuthFailureError
-
createConnection
Create anHttpURLConnectionfor the specifiedurl.- 抛出:
IOException
-