|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectandroid.webkit.WebViewDatabase
public class WebViewDatabase
| Field Summary | |
|---|---|
protected static String |
LOGTAG
|
| Method Summary | |
|---|---|
(package private) void |
addCache(String url,
CacheManager.CacheResult c)
Add or update a cache. |
(package private) void |
addCookie(CookieManager.Cookie cookie)
Add a cookie to the database |
(package private) void |
clearCache()
Clear cache database |
(package private) void |
clearCookies()
Clear cookie database |
(package private) void |
clearExpiredCookies(long now)
Clear expired cookies |
void |
clearFormData()
Clear form database |
void |
clearHttpAuthUsernamePassword()
Clear HTTP authentication password database |
(package private) void |
clearSessionCookies()
Clear session cookies, which means cookie doesn't have EXPIRES. |
void |
clearUsernamePassword()
Clear password database |
(package private) void |
deleteCookies(String domain,
String path,
String name)
Delete cookies which matches (domain, path, name). |
(package private) boolean |
endCacheTransaction()
|
(package private) CacheManager.CacheResult |
getCache(String url)
Get a cache item. |
(package private) long |
getCacheTotalSize()
|
(package private) ArrayList<CookieManager.Cookie> |
getCookiesForDomain(String domain)
Get cookies in the format of CookieManager.Cookie inside an ArrayList for a given domain |
(package private) ArrayList<String> |
getFormData(String url,
String name)
Get all the values for a form entry with "name" in a given site |
(package private) String[] |
getHttpAuthUsernamePassword(String host,
String realm)
Retrieve the HTTP authentication username and password for a given host+realm pair |
static WebViewDatabase |
getInstance(Context context)
|
(package private) String[] |
getUsernamePassword(String host)
Retrieve the username and password for a given host |
(package private) boolean |
hasCache()
|
(package private) boolean |
hasCookies()
Whether there is any cookies in the database |
boolean |
hasFormData()
Find out if there is form data saved. |
boolean |
hasHttpAuthUsernamePassword()
Find out if there are any HTTP authentication passwords saved. |
boolean |
hasUsernamePassword()
Find out if there are any passwords saved. |
(package private) void |
removeCache(String url)
Remove a cache item. |
(package private) void |
setFormData(String url,
HashMap<String,String> formdata)
Set form data for a site. |
(package private) void |
setHttpAuthUsernamePassword(String host,
String realm,
String username,
String password)
Set HTTP authentication password. |
(package private) void |
setUsernamePassword(String host,
String username,
String password)
Set password. |
(package private) boolean |
startCacheTransaction()
|
(package private) ArrayList<String> |
trimCache(long amount)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected static final String LOGTAG
| Method Detail |
|---|
public static WebViewDatabase getInstance(Context context)
ArrayList<CookieManager.Cookie> getCookiesForDomain(String domain)
void deleteCookies(String domain,
String path,
String name)
domain - If it is null, nothing happens.path - If it is null, all the cookies match (domain) will be
deleted.name - If it is null, all the cookies match (domain, path) will be
deleted.void addCookie(CookieManager.Cookie cookie)
cookie - boolean hasCookies()
void clearCookies()
void clearSessionCookies()
void clearExpiredCookies(long now)
now - Time for nowboolean startCacheTransaction()
boolean endCacheTransaction()
CacheManager.CacheResult getCache(String url)
url - The url
void removeCache(String url)
url - The url
void addCache(String url,
CacheManager.CacheResult c)
url - The urlc - The CacheManager.CacheResultvoid clearCache()
boolean hasCache()
long getCacheTotalSize()
ArrayList<String> trimCache(long amount)
void setUsernamePassword(String host,
String username,
String password)
host - The host for the passwordusername - The username for the password. If it is null, it means
password can't be saved.password - The passwordString[] getUsernamePassword(String host)
host - The host which passwords applies to
public boolean hasUsernamePassword()
public void clearUsernamePassword()
void setHttpAuthUsernamePassword(String host,
String realm,
String username,
String password)
host - The host for the passwordrealm - The realm for the passwordusername - The username for the password. If it is null, it means
password can't be saved.password - The password
String[] getHttpAuthUsernamePassword(String host,
String realm)
host - The host the password applies torealm - The realm the password applies to
public boolean hasHttpAuthUsernamePassword()
public void clearHttpAuthUsernamePassword()
void setFormData(String url,
HashMap<String,String> formdata)
url - The url of the siteformdata - The form data in HashMap
ArrayList<String> getFormData(String url,
String name)
url - The url of the sitename - The name of the form entry
public boolean hasFormData()
public void clearFormData()
|
Build 1.0_r1(from source) | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||