com.android.volley.toolbox
クラス HttpHeaderParser

java.lang.Object
  上位を拡張 com.android.volley.toolbox.HttpHeaderParser

public class HttpHeaderParser
extends java.lang.Object

Utility methods for parsing HTTP headers.


コンストラクタの概要
HttpHeaderParser()
           
 
メソッドの概要
static Cache.Entry parseCacheHeaders(NetworkResponse response)
          Extracts a Cache.Entry from a NetworkResponse.
static java.lang.String parseCharset(java.util.Map<java.lang.String,java.lang.String> headers)
          Returns the charset specified in the Content-Type of this header, or the HTTP default (ISO-8859-1) if none can be found.
static long parseDateAsEpoch(java.lang.String dateStr)
          Parse date in RFC1123 format, and return its value as epoch
 
クラス java.lang.Object から継承されたメソッド
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

HttpHeaderParser

public HttpHeaderParser()
メソッドの詳細

parseCacheHeaders

public static Cache.Entry parseCacheHeaders(NetworkResponse response)
Extracts a Cache.Entry from a NetworkResponse.

パラメータ:
response - The network response to parse headers from
戻り値:
a cache entry for the given response, or null if the response is not cacheable.

parseDateAsEpoch

public static long parseDateAsEpoch(java.lang.String dateStr)
Parse date in RFC1123 format, and return its value as epoch


parseCharset

public static java.lang.String parseCharset(java.util.Map<java.lang.String,java.lang.String> headers)
Returns the charset specified in the Content-Type of this header, or the HTTP default (ISO-8859-1) if none can be found.