com.android.volley.toolbox
クラス HurlStack
java.lang.Object
com.android.volley.toolbox.HurlStack
- すべての実装されたインタフェース:
- HttpStack
public class HurlStack
- extends java.lang.Object
- implements HttpStack
An HttpStack
based on HttpURLConnection
.
メソッドの概要 |
HttpResponse |
performRequest(Request<?> request,
java.util.Map<java.lang.String,java.lang.String> additionalHeaders)
Performs an HTTP request with the given parameters. |
クラス java.lang.Object から継承されたメソッド |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HurlStack
public HurlStack()
HurlStack
public HurlStack(HurlStack.UrlRewriter urlRewriter)
- パラメータ:
urlRewriter
- Rewriter to use for request URLs
HurlStack
public HurlStack(HurlStack.UrlRewriter urlRewriter,
javax.net.ssl.SSLSocketFactory sslSocketFactory)
- パラメータ:
urlRewriter
- Rewriter to use for request URLssslSocketFactory
- SSL factory to use for HTTPS connections
performRequest
public HttpResponse performRequest(Request<?> request,
java.util.Map<java.lang.String,java.lang.String> additionalHeaders)
throws java.io.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().
- 定義:
- インタフェース
HttpStack
内の performRequest
- パラメータ:
request
- the request to performadditionalHeaders
- additional headers to be sent together with
Request.getHeaders()
- 戻り値:
- the HTTP response
- 例外:
java.io.IOException
AuthFailureError