public static class

WebStorage.Origin

extends Object
java.lang.Object
   ↳ android.webkit.WebStorage.Origin

Class Overview

Class containing the HTML5 database quota and usage for an origin.

Summary

Public Methods
String getOrigin()
An origin string is created using WebCore::SecurityOrigin::toString().
long getQuota()
Returns the quota for this origin's HTML5 database.
long getUsage()
Returns the usage for this origin's HTML5 database.
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public String getOrigin ()

Since: API Level 11

An origin string is created using WebCore::SecurityOrigin::toString(). Note that WebCore::SecurityOrigin uses 0 (which is not printed) for the port if the port is the default for the protocol. Eg http://www.google.com and http://www.google.com:80 both record a port of 0 and hence toString() == 'http://www.google.com' for both.

Returns
  • The origin string.

public long getQuota ()

Since: API Level 11

Returns the quota for this origin's HTML5 database.

Returns
  • The quota in bytes.

public long getUsage ()

Since: API Level 11

Returns the usage for this origin's HTML5 database.

Returns
  • The usage in bytes.