| Package | Description |
|---|---|
| rocks.xmpp.addr |
Provides classes for the XMPP Address Format (JID).
|
| rocks.xmpp.core.bind.model |
Provides XML schema implementations of the Resource Binding Namespace.
|
| rocks.xmpp.core.stanza.model |
Provides XML Stanzas and Stanza Errors.
|
| rocks.xmpp.extensions.data.model |
Provides XML schema implementations of XEP-0004: Data Forms.
|
| rocks.xmpp.extensions.disco.model.items |
Provides XML schema implementations of XEP-0030: Service Discovery (#items).
|
| rocks.xmpp.extensions.httpbind.model |
Provides XML schema implementations of XEP-0124: Bidirectional-streams Over Synchronous HTTP (BOSH) and XEP-0206: XMPP Over BOSH.
|
| rocks.xmpp.im.roster.model |
Provides XML schema implementations of the Roster Namespace.
|
| Modifier and Type | Method and Description |
|---|---|
Jid |
Jid.asBareJid()
Converts this JID into a bare JID, i.e. removes the resource part.
|
Jid |
Jid.atSubdomain(CharSequence subdomain)
Creates a new JID at a subdomain and at the same domain as this JID.
|
static Jid |
Jid.of(CharSequence jid)
Creates a JID from an unescaped string.
|
static Jid |
Jid.of(CharSequence local,
CharSequence domain,
CharSequence resource)
Returns a full JID with a domain and resource part, e.g.
|
static Jid |
Jid.ofDomain(CharSequence domain)
Creates a bare JID with only the domain part, e.g.
|
static Jid |
Jid.ofDomainAndResource(CharSequence domain,
CharSequence resource)
Creates a full JID with a domain and resource part, e.g.
|
static Jid |
Jid.ofEscaped(CharSequence jid)
Creates a JID from a escaped JID string.
|
static Jid |
Jid.ofLocalAndDomain(CharSequence local,
CharSequence domain)
Creates a bare JID with a local and domain part, e.g.
|
Jid |
Jid.withLocal(CharSequence local)
Creates a new JID with a new local part and the same domain and resource part of the current JID.
|
Jid |
Jid.withResource(CharSequence resource)
Creates 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.
|
| Modifier and Type | Method and Description |
|---|---|
Jid |
Bind.getJid()
Gets the JID, which has been generated by the server after resource binding.
|
| Constructor and Description |
|---|
Bind(Jid jid)
Creates a
<bind/> element with a JID. |
| Modifier and Type | Method and Description |
|---|---|
Jid |
StanzaError.getBy()
Gets the 'by' attribute.
|
Jid |
Stanza.getFrom()
Gets the stanza's 'from' attribute.
|
Jid |
Stanza.getTo()
Gets the stanza's 'to' attribute, i.e. the recipient.
|
| Modifier and Type | Method and Description |
|---|---|
static IQ |
IQ.get(Jid to,
Object extension)
Creates an IQ of type 'get' with a random id.
|
static IQ |
IQ.set(Jid to,
Object extension)
Creates an IQ of type 'set' with a random id.
|
void |
Stanza.setFrom(Jid from)
Sets the stanza's 'from' attribute, i.e. the sender.
|
void |
Stanza.setTo(Jid to)
Sets the stanza's 'to' attribute, i.e. the recipient.
|
| Constructor and Description |
|---|
IQ(Jid to,
IQ.Type type,
Object extension)
Creates an IQ stanza with the given receiver, type and extension.
|
IQ(Jid to,
IQ.Type type,
Object extension,
String id)
Creates an IQ stanza with the given receiver, id, type and extension.
|
IQ(Jid to,
IQ.Type type,
Object extension,
String id,
Jid from,
Locale language,
StanzaError error)
Creates an IQ stanza with the given receiver, id, type, extension and error.
|
Message(Jid to)
Constructs an empty message.
|
Message(Jid to,
Message.Type type)
Constructs a message with a type.
|
Message(Jid to,
Message.Type type,
Collection<Text> bodies,
Collection<Text> subjects,
String thread,
String parentThread,
String id,
Jid from,
Locale language,
Collection<?> extensions,
StanzaError error)
Constructs a message with all possible values.
|
Message(Jid to,
Message.Type type,
String body)
Constructs a message with body and type.
|
Message(Jid to,
Message.Type type,
String body,
String subject)
Constructs a message with body and type.
|
Message(Jid to,
Message.Type type,
String body,
String subject,
String thread)
Constructs a message with body and type.
|
Message(Jid to,
Message.Type type,
String body,
String subject,
String thread,
String parentThread,
String id,
Jid from,
Locale language,
Collection<?> extensions,
StanzaError error)
Constructs a message with body and type.
|
Presence(Jid to)
Constructs a directed presence.
|
Presence(Jid to,
Presence.Show show,
String status)
Constructs a directed presence with a specific 'show' attribute and status.
|
Presence(Jid to,
Presence.Type type,
Presence.Show show,
Collection<Text> status,
Byte priority,
String id,
Jid from,
Locale language,
Collection<?> extensions,
StanzaError error)
Constructs a presence with all possible values.
|
Presence(Jid to,
Presence.Type type,
String status)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
Presence(Jid to,
Presence.Type type,
String status,
String id)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
StanzaError(StanzaError.Type type,
Condition condition,
String text,
Locale language,
Object extension,
Jid by)
Creates a stanza error with all possible values.
|
| Modifier and Type | Method and Description |
|---|---|
Jid |
DataForm.findValueAsJid(String var)
Finds the field and gets the value as JID.
|
Jid |
DataForm.Field.getValueAsJid()
Returns the first value as JID, e.g. for the
DataForm.Field.Type.JID_SINGLE field type. |
| Modifier and Type | Method and Description |
|---|---|
List<Jid> |
DataForm.findValuesAsJid(String var)
Finds the field and gets its values as JID list.
|
List<Jid> |
DataForm.Field.getValuesAsJid()
Returns a JID list for the
DataForm.Field.Type.JID_MULTI field type. |
| Modifier and Type | Method and Description |
|---|---|
DataForm.Field.Builder |
DataForm.Field.Builder.value(Jid value)
Sets the value as JID.
|
| Modifier and Type | Method and Description |
|---|---|
DataForm.Field.Builder |
DataForm.Field.Builder.valuesJid(Collection<Jid> values)
Sets the values as JIDs.
|
| Modifier and Type | Method and Description |
|---|---|
Jid |
Item.getJid()
Gets the JID.
|
| Constructor and Description |
|---|
Item(Jid jid,
String node) |
Item(Jid jid,
String node,
String name) |
Item(Jid jid,
String node,
String name,
String id) |
| Modifier and Type | Method and Description |
|---|---|
Jid |
Body.getFrom()
The
<body/> element of the first request MAY also possess a 'from' attribute, which specifies the originator of the first stream and which enables the connection manager to forward the originating entity's identity to the application server. |
| Modifier and Type | Method and Description |
|---|---|
Body.Builder |
Body.Builder.from(Jid from)
Sets the 'from' attribute of the body.
|
| Modifier and Type | Method and Description |
|---|---|
Jid |
Contact.getJid()
Gets the JID of the contact.
|
| Constructor and Description |
|---|
Contact(Jid jid)
Creates a new contact associated with the given JID.
|
Contact(Jid jid,
String name)
Creates a new contact associated with the given JID and name.
|
Contact(Jid jid,
String name,
Boolean isPending,
Boolean approved,
Contact.Subscription subscription,
Collection<String> groups)
Creates a new contact associated with the given JID, name and groups.
|
Contact(Jid jid,
String name,
Collection<String> groups)
Creates a new contact associated with the given JID, name and groups.
|
Contact(Jid jid,
String name,
String... groups)
Creates a new contact associated with the given JID, name and groups.
|
Copyright © 2014–2016 XMPP.rocks. All rights reserved.