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.


构造方法摘要
PersistentCookieStore(android.content.Context context)
          Construct a persistent cookie store.
 
方法摘要
 void addCookie(org.apache.http.cookie.Cookie cookie)
           
protected  String byteArrayToHexString(byte[] b)
           
 void clear()
           
 boolean clearExpired(Date date)
           
protected  org.apache.http.cookie.Cookie decodeCookie(String cookieStr)
           
protected  String encodeCookie(SerializableCookie cookie)
           
 List<org.apache.http.cookie.Cookie> getCookies()
           
protected  byte[] hexStringToByteArray(String s)
           
 
从类 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.