class documentation

class InMemoryRegistry: (source)

Implements interfaces: twisted.protocols.sip.ILocator, twisted.protocols.sip.IRegistry

View In Hierarchy

A simplistic registry for a specific domain.
Method __init__ Undocumented
Method get​Address Return physical URL of server for logical URL of user.
Method get​Registration​Info Get registration info for logical URL.
Method register​Address Register the physical address of a logical URL.
Method unregister​Address Unregister the physical address of a logical URL.
Instance Variable domain Undocumented
Instance Variable users Undocumented
Method _expire​Registration Undocumented
def __init__(self, domain): (source)

Undocumented

def getAddress(self, userURI): (source)
Return physical URL of server for logical URL of user.
Parameters
user​URIUndocumented
logical​URLa logical URL.
Returns
Deferred which becomes URL or fails with LookupError.
def getRegistrationInfo(self, userURI): (source)
Get registration info for logical URL.
Returns
Deferred of Registration object or failure of LookupError.
def registerAddress(self, domainURL, logicalURL, physicalURL): (source)
Register the physical address of a logical URL.
Returns
Deferred of Registration or failure with RegistrationError.
def unregisterAddress(self, domainURL, logicalURL, physicalURL): (source)
Unregister the physical address of a logical URL.
Returns
Deferred of Registration or failure with RegistrationError.
domain = (source)

Undocumented

users: dict = (source)

Undocumented

def _expireRegistration(self, username): (source)

Undocumented