| Modifier and Type | Method and Description |
|---|---|
Jid |
Jid.asBareJid()
Converts this JID into a bare JID, i.e. removes the resource.
|
Jid |
JidAdapter.unmarshal(String v) |
static Jid |
Jid.valueOf(String jid)
Creates a JID from a string.
|
static Jid |
Jid.valueOf(String jid,
boolean doUnescape)
Creates a JID from a string.
|
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.
|
String |
JidAdapter.marshal(Jid v) |
| 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 |
ChatSession.getChatPartner()
Gets the chat partner of this chat session.
|
Jid |
ChatSession.ChatPartnerEvent.getNewChatPartner()
Gets the JID of the new chat partner.
|
Jid |
ChatSession.ChatPartnerEvent.getOldChatPartner()
Gets the JID of the old chat partner.
|
| Modifier and Type | Method and Description |
|---|---|
ChatSession |
ChatManager.createChatSession(Jid chatPartner)
Creates a new chat session and notifies any chat session listeners about it.
|
| Modifier and Type | Method and Description |
|---|---|
Contact |
RosterManager.getContact(Jid jid)
Gets a contact by its JID.
|
void |
RosterManager.removeContact(Jid jid)
Removes a contact from the roster.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
Jid |
XmppSession.getConnectedResource()
Gets the connected resource, which is assigned by the server after resource binding.
|
| Modifier and Type | Method and Description |
|---|---|
void |
XmppSession.connect(Jid from)
Connects to the XMPP server.
|
void |
TcpConnection.connect(Jid from)
Connects to the specified XMPP server using a socket connection.
|
abstract void |
Connection.connect(Jid from)
Connects to the server and provides an optional 'from' attribute.
|
| 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
Stanza.setFrom(Jid from)
Deprecated.
Use constructor.
|
void |
Stanza.setTo(Jid to)
Deprecated.
Use constructor.
|
abstract Stanza |
Stanza.withFrom(Jid from)
Creates a copy of this stanza and adds a from attribute to it.
|
| Constructor and Description |
|---|
StanzaError(StanzaError.Type type,
Condition condition,
String text,
String language,
Object extension,
Jid by)
Creates a stanza error with all possible values.
|
| Modifier and Type | Method and Description |
|---|---|
Presence |
Presence.withFrom(Jid from) |
Message |
Message.withFrom(Jid from) |
IQ |
IQ.withFrom(Jid from) |
| Constructor and Description |
|---|
IQ(Jid to,
AbstractIQ.Type type,
Object extension)
Creates an IQ stanza with the given receiver, type and extension.
|
IQ(Jid to,
AbstractIQ.Type type,
Object extension,
String id)
Creates an IQ stanza with the given receiver, id, type and extension.
|
IQ(Jid to,
AbstractIQ.Type type,
Object extension,
String id,
Jid from,
String 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,
AbstractMessage.Type type)
Constructs a message with a type.
|
Message(Jid to,
AbstractMessage.Type type,
Collection<AbstractMessage.Body> bodies,
Collection<AbstractMessage.Subject> subjects,
String thread,
String parentThread,
String id,
Jid from,
String language,
Collection<?> extensions,
StanzaError error)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body,
String subject)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body,
String subject,
String thread)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body,
String subject,
String thread,
String parentThread,
String id,
Jid from,
String language,
Collection<?> extensions,
StanzaError error)
Constructs a message with body and type.
|
Presence(Jid to)
Constructs a directed presence.
|
Presence(Jid to,
AbstractPresence.Show show,
String status)
Constructs a directed presence with a specific 'show' attribute and status.
|
Presence(Jid to,
AbstractPresence.Type type,
AbstractPresence.Show show,
Collection<AbstractPresence.Status> status,
Byte priority,
String id,
Jid from,
String language,
Collection<?> extensions,
StanzaError error)
Constructs a presence with all possible values.
|
Presence(Jid to,
AbstractPresence.Type type,
String status)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
Presence(Jid to,
AbstractPresence.Type type,
String status,
String id)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
| Modifier and Type | Method and Description |
|---|---|
Presence |
Presence.withFrom(Jid from) |
Message |
Message.withFrom(Jid from) |
IQ |
IQ.withFrom(Jid from) |
| Constructor and Description |
|---|
IQ(Jid to,
AbstractIQ.Type type,
Object extension)
Creates an IQ stanza with the given receiver, type and extension.
|
IQ(Jid to,
AbstractIQ.Type type,
Object extension,
String id)
Creates an IQ stanza with the given receiver, id, type and extension.
|
IQ(Jid to,
AbstractIQ.Type type,
Object extension,
String id,
Jid from,
String 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,
AbstractMessage.Type type)
Constructs a message with a type.
|
Message(Jid to,
AbstractMessage.Type type,
Collection<AbstractMessage.Body> bodies,
Collection<AbstractMessage.Subject> subjects,
String thread,
String parentThread,
String id,
Jid from,
String language,
Collection<Object> extensions,
StanzaError error)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body,
String subject)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body,
String subject,
String thread)
Constructs a message with body and type.
|
Message(Jid to,
AbstractMessage.Type type,
String body,
String subject,
String thread,
String parentThread,
String id,
Jid from,
String language,
Collection<Object> extensions,
StanzaError error)
Constructs a message with body and type.
|
Presence(Jid to)
Constructs a directed presence.
|
Presence(Jid to,
AbstractPresence.Show show,
String status)
Constructs a directed presence with a specific 'show' attribute and status.
|
Presence(Jid to,
AbstractPresence.Type type,
AbstractPresence.Show show,
Collection<AbstractPresence.Status> status,
Byte priority,
String id,
Jid from,
String language,
Collection<?> extensions,
StanzaError error)
Constructs a presence with all possible values.
|
Presence(Jid to,
AbstractPresence.Type type,
String status)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
Presence(Jid to,
AbstractPresence.Type type,
String status,
String id)
Constructs a directed presence, which is useful for requesting subscription or for exiting a multi-user chat.
|
| Modifier and Type | Method and Description |
|---|---|
String |
PresenceManager.approveSubscription(Jid jid)
Approves a subscription request.
|
String |
PresenceManager.denySubscription(Jid jid)
Cancels a previously granted subscription or denies a subscription request.
|
Presence |
PresenceManager.getPresence(Jid jid)
Gets the presence for a given contact.
|
String |
PresenceManager.requestSubscription(Jid jid,
String status)
Sends a subscription request to a potential contact.
|
String |
PresenceManager.unsubscribe(Jid jid)
Unsubscribes from a contact's presence.
|
| 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 |
|---|---|
InfoNode |
ServiceDiscoveryManager.discoverInformation(Jid jid)
Discovers information about another XMPP entity.
|
InfoNode |
ServiceDiscoveryManager.discoverInformation(Jid jid,
String node)
Discovers information about another XMPP entity targeted at a specific node.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid)
Discovers item associated with another XMPP entity.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid,
ResultSetManagement resultSet)
Discovers item associated with another XMPP entity.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid,
String node)
Discovers item associated with another XMPP entity.
|
ItemNode |
ServiceDiscoveryManager.discoverItems(Jid jid,
String node,
ResultSetManagement resultSetManagement)
Discovers item associated with another XMPP entity.
|
| 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 |
|---|---|
void |
BoshConnection.connect(Jid from)
Connects to the BOSH server.
|
| 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 |
Annotation.Note.getJid()
Gets the JID of the contact (roster item).
|
| Constructor and Description |
|---|
Note(String note,
Jid jid)
Creates a roster note.
|
Note(String note,
Jid jid,
Date creationDate,
Date modificationDate)
Creates a roster note.
|
Copyright © 2014–2015 XMPP.rocks. All rights reserved.