| Modifier and Type | Method and Description |
|---|---|
Jid |
Jid.asBareJid()
Converts this JID into a bare JID, i.e. removes the resource.
|
static Jid |
Jid.of(String jid)
Returns a JID from a string.
|
static Jid |
Jid.of(String local,
String domain,
String resource)
Returns a bare JID with a domain and resource part, e.g.
|
static Jid |
Jid.ofDomain(String domain)
Returns a bare JID with only the domain part, e.g.
|
static Jid |
Jid.ofDomainAndResource(String domain,
String resource)
Returns a bare JID with a domain and resource part, e.g.
|
static Jid |
Jid.ofEscaped(String jid)
Creates a JID from a escaped JID string.
|
static Jid |
Jid.ofLocalAndDomain(String local,
String domain)
Returns a bare JID with a local and domain part, e.g.
|
static Jid |
Jid.valueOf(String jid)
Deprecated.
Use
of(String) |
static Jid |
Jid.valueOf(String jid,
boolean doUnescape)
Deprecated.
Use
of(String) or ofEscaped(String)} |
Jid |
Jid.withLocal(String local)
Returns a new JID with a new local part and the same domain and resource part of the current JID.
|
Jid |
Jid.withResource(String resource)
Returns a new full JID with a resource and the same local and domain part of the current JID.
|
| Modifier and Type | Method and Description |
|---|---|
int |
Jid.compareTo(Jid o)
Compares this JID with another JID.
|
Copyright © 2014–2015 XMPP.rocks. All rights reserved.