Static methods

staticparse(jid:String):JID

Parse a JID string into its components.

Constructor

@:value({ raw : false })new(?node:String, domain:String, ?resource:String, raw:Bool = false)

Create a JID from its parts.

Parameters:

node

localpart, or null for a domain JID

domain

domainpart

resource

resourcepart, if any

raw

when false, escape the node according to JID escaping rules

Variables

finaldomain:String

finalnode:Null<String>

finalresource:Null<String>

Methods

asBare():JID

Get the bare JID without any resource.

asString():String

Render this JID back to its string form.

equals(rhs:JID):Bool

Compare two JIDs for exact equality.

isBare():Bool

Check whether this JID has no resourcepart.

isDomain():Bool

Check whether this JID has no localpart.

isValid():Bool

Check whether this JID looks valid enough to use.

withResource(resource:String):JID

Return a copy of this JID with a different resource.