|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.android.volley.toolbox.HttpHeaderParser
public class HttpHeaderParser
Utility methods for parsing HTTP headers.
Constructor Summary | |
---|---|
HttpHeaderParser()
|
Method Summary | |
---|---|
static Cache.Entry |
parseCacheHeaders(NetworkResponse response)
Extracts a Cache.Entry from a NetworkResponse . |
static String |
parseCharset(Map<String,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(String dateStr)
Parse date in RFC1123 format, and return its value as epoch |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HttpHeaderParser()
Method Detail |
---|
public static Cache.Entry parseCacheHeaders(NetworkResponse response)
Cache.Entry
from a NetworkResponse
.
response
- The network response to parse headers from
public static long parseDateAsEpoch(String dateStr)
public static String parseCharset(Map<String,String> headers)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |