Public Member Functions | Public Attributes

nsIApplicationCacheNamespace Interface Reference

Application caches can store a set of namespace entries that affect loads from the application cache. More...

import "nsIApplicationCache.idl";

List of all members.

Public Member Functions

void init (in unsigned long itemType, in ACString namespaceSpec, in ACString data)
 Initialize the namespace.

Public Attributes

const unsigned long NAMESPACE_BYPASS = 1 << 0
 Items matching this namespace can be fetched from the network when loading from this cache.
const unsigned long NAMESPACE_FALLBACK = 1 << 1
 Items matching this namespace can be fetched from the network when loading from this cache.
const unsigned long NAMESPACE_OPPORTUNISTIC = 1 << 2
 Items matching this namespace should be cached opportunistically.
readonly attribute unsigned long itemType
 The namespace type.
readonly attribute ACString namespaceSpec
 The prefix of this namespace.
readonly attribute ACString data
 Data associated with this namespace, such as a fallback.

Detailed Description

Application caches can store a set of namespace entries that affect loads from the application cache.

If a load from the cache fails to match an exact cache entry, namespaces entries will be searched for a substring match, and should be applied appropriately.


Member Function Documentation

void nsIApplicationCacheNamespace::init ( in unsigned long  itemType,
in ACString  namespaceSpec,
in ACString  data 
)

Initialize the namespace.


Member Data Documentation

readonly attribute ACString nsIApplicationCacheNamespace::data

Data associated with this namespace, such as a fallback.

URI data should use the asciiSpec of the URI.

readonly attribute unsigned long nsIApplicationCacheNamespace::itemType

The namespace type.

const unsigned long nsIApplicationCacheNamespace::NAMESPACE_BYPASS = 1 << 0

Items matching this namespace can be fetched from the network when loading from this cache.

The "data" attribute is unused.

Items matching this namespace can be fetched from the network when loading from this cache.

If the load fails, the cache entry specified by the "data" attribute should be loaded instead.

Items matching this namespace should be cached opportunistically.

Successful toplevel loads of documents in this namespace should be placed in the application cache. Namespaces specifying NAMESPACE_OPPORTUNISTIC may also specify NAMESPACE_FALLBACK to supply a fallback entry.

readonly attribute ACString nsIApplicationCacheNamespace::namespaceSpec

The prefix of this namespace.

This should be the asciiSpec of the URI prefix.


The documentation for this interface was generated from the following file: