com.baidu.sapi2.http
类 PersistentCookieStore
java.lang.Object
com.baidu.sapi2.http.PersistentCookieStore
- 所有已实现的接口:
- org.apache.http.client.CookieStore
public class PersistentCookieStore
- extends Object
- implements org.apache.http.client.CookieStore
A persistent cookie store which implements the Apache HttpClient
CookieStore
interface. Cookies are stored and will persist on the
user's device between application sessions since they are serialized and
stored in SharedPreferences
.
Instances of this class are designed to be used with
AsyncHttpClient.setCookieStore(org.apache.http.client.CookieStore)
, but can also be used with a regular
old apache HttpClient/HttpContext if you prefer.
从类 java.lang.Object 继承的方法 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PersistentCookieStore
public PersistentCookieStore(android.content.Context context)
- Construct a persistent cookie store.
addCookie
public void addCookie(org.apache.http.cookie.Cookie cookie)
- 指定者:
- 接口
org.apache.http.client.CookieStore
中的 addCookie
clear
public void clear()
- 指定者:
- 接口
org.apache.http.client.CookieStore
中的 clear
clearExpired
public boolean clearExpired(Date date)
- 指定者:
- 接口
org.apache.http.client.CookieStore
中的 clearExpired
getCookies
public List<org.apache.http.cookie.Cookie> getCookies()
- 指定者:
- 接口
org.apache.http.client.CookieStore
中的 getCookies
encodeCookie
protected String encodeCookie(SerializableCookie cookie)
decodeCookie
protected org.apache.http.cookie.Cookie decodeCookie(String cookieStr)
byteArrayToHexString
protected String byteArrayToHexString(byte[] b)
hexStringToByteArray
protected byte[] hexStringToByteArray(String s)
Copyright © 2013. All Rights Reserved.