Validation

class osmxmpp.validation.ValidationException

Bases: Exception

class osmxmpp.validation.XmppValidation

Bases: object

OsmXmpp validation methods

static validate_id(id)

Validates the extension/feature ID.

Parameters:

id (str) – The ID to validate.

Raises:

ValidationException – If the ID is invalid.

static validate_jid(jid)

Validates the JID.

Parameters:

jid (str) – The JID to validate.

Raises:

ValidationException – If the JID is invalid.

static validate_resource(resource)

Validates the resource.

Parameters:

resource (str) – The resource to validate.

Raises:

ValidationException – If the resource is invalid.