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.


入れ子のクラスの概要
static interface HurlStack.UrlRewriter
          An interface for transforming URLs before use.
 
コンストラクタの概要
HurlStack()
           
HurlStack(HurlStack.UrlRewriter urlRewriter)
           
HurlStack(HurlStack.UrlRewriter urlRewriter, javax.net.ssl.SSLSocketFactory sslSocketFactory)
           
 
メソッドの概要
 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 URLs
sslSocketFactory - 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 perform
additionalHeaders - additional headers to be sent together with Request.getHeaders()
戻り値:
the HTTP response
例外:
java.io.IOException
AuthFailureError