Package common :: Module caps_cache :: Class NullClientCaps
[hide private]
[frames] | no frames]

Class NullClientCaps

source code


This is a NULL-Object to streamline caps handling if a client has not advertised any caps or has advertised them in an improper way

Assumes (almost) everything is supported.

Instance Methods [hide private]
 
__init__(self)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
source code
 
_lookup_in_cache(self, caps_cache)
To be implemented by subclassess
source code
 
_discover(self, connection, jid)
To be implemented by subclassess
source code
 
_is_hash_valid(self, identities, features, dataforms)
To be implemented by subclassess
source code

Inherited from AbstractClientCaps: get_cache_lookup_strategy, get_discover_strategy, get_hash_validation_strategy

Inherited from object: __delattr__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Static Methods [hide private]
a new object with type S, a subtype of T
__new__(cls, *args, **kwargs)
Make it a singleton.
source code
Class Variables [hide private]
  _instance = None
Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__new__(cls, *args, **kwargs)
Static Method

source code 
Make it a singleton.
Returns: a new object with type S, a subtype of T
Overrides: object.__new__

__init__(self)
(Constructor)

source code 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: object.__init__
(inherited documentation)

_lookup_in_cache(self, caps_cache)

source code 
To be implemented by subclassess
Overrides: AbstractClientCaps._lookup_in_cache
(inherited documentation)

_discover(self, connection, jid)

source code 
To be implemented by subclassess
Overrides: AbstractClientCaps._discover
(inherited documentation)

_is_hash_valid(self, identities, features, dataforms)

source code 
To be implemented by subclassess
Overrides: AbstractClientCaps._is_hash_valid
(inherited documentation)

Class Variable Details [hide private]

_instance

Value:
None