mirror of
https://github.com/vanitasvitae/Smack.git
synced 2025-09-09 17:19:39 +02:00
s/ a XMPP/ an XMPP/
This commit is contained in:
parent
a927d55bb1
commit
57c1b57b7c
32 changed files with 53 additions and 53 deletions
|
@ -8,7 +8,7 @@ Capabilities.
|
|||
|
||||
**Description**
|
||||
|
||||
Entity Capabilities is a XMPP Protocol extension, which, in order to minimize
|
||||
Entity Capabilities is an XMPP Protocol extension, which, in order to minimize
|
||||
network impact, caches the capabilities of XMPP entities. Those capabilities
|
||||
are determined with the help of the Service Discovery Protocol
|
||||
([XEP-0030](http://xmpp.org/extensions/xep-0030.html)).
|
||||
|
|
|
@ -51,7 +51,7 @@ Smack Extensions and currently supported XEPs by Smack (smack-extensions)
|
|||
| Data Forms Validation | [XEP-0122](http://xmpp.org/extensions/xep-0122.html) | Enables an application to specify additional validation guidelines . |
|
||||
| Stream Compression | [XEP-0138](http://xmpp.org/extensions/xep-0138.html) | Support for optional compression of the XMPP stream.
|
||||
| Data Forms Layout | [XEP-0141](http://xmpp.org/extensions/xep-0141.html) | Enables an application to specify form layouts. |
|
||||
| Personal Eventing Protocol | [XEP-0163](http://xmpp.org/extensions/xep-0163.html) | Using the XMPP publish-subscribe protocol to broadcast state change events associated with a XMPP account. |
|
||||
| Personal Eventing Protocol | [XEP-0163](http://xmpp.org/extensions/xep-0163.html) | Using the XMPP publish-subscribe protocol to broadcast state change events associated with an XMPP account. |
|
||||
| Message Delivery Receipts | [XEP-0184](http://xmpp.org/extensions/xep-0184.html) | Extension for message delivery receipts. The sender can request notification that the message has been delivered. |
|
||||
| XMPP Ping | [XEP-0199](http://xmpp.org/extensions/xep-0199.html) | Sending application-level pings over XML streams.
|
||||
| Entity Time | [XEP-0202](http://xmpp.org/extensions/xep-0202.html) | Allows entities to communicate their local time |
|
||||
|
|
|
@ -69,7 +69,7 @@ completed with default values:
|
|||
// Get the MultiUserChatManager
|
||||
MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
|
||||
|
||||
// Create a MultiUserChat using a XMPPConnection for a room
|
||||
// Create a MultiUserChat using an XMPPConnection for a room
|
||||
MultiUserChat muc = = manager.getMultiUserChat("myroom@conference.jabber.org");
|
||||
|
||||
// Create the room
|
||||
|
@ -132,7 +132,7 @@ In this example we can see how to join a room with a given nickname:
|
|||
// Get the MultiUserChatManager
|
||||
MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
|
||||
|
||||
// Create a MultiUserChat using a XMPPConnection for a room
|
||||
// Create a MultiUserChat using an XMPPConnection for a room
|
||||
MultiUserChat muc2 = manager.getMultiUserChat("myroom@conference.jabber.org");
|
||||
|
||||
// User2 joins the new room
|
||||
|
@ -147,7 +147,7 @@ password:
|
|||
// Get the MultiUserChatManager
|
||||
MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
|
||||
|
||||
// Create a MultiUserChat using a XMPPConnection for a room
|
||||
// Create a MultiUserChat using an XMPPConnection for a room
|
||||
MultiUserChat muc2 = manager.getMultiUserChat("myroom@conference.jabber.org");
|
||||
|
||||
// User2 joins the new room using a password
|
||||
|
@ -162,7 +162,7 @@ the amount of history to receive:
|
|||
// Get the MultiUserChatManager
|
||||
MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
|
||||
|
||||
// Create a MultiUserChat using a XMPPConnection for a room
|
||||
// Create a MultiUserChat using an XMPPConnection for a room
|
||||
MultiUserChat muc2 = manager.getMultiUserChat("myroom@conference.jabber.org");
|
||||
|
||||
// User2 joins the new room using a password and specifying
|
||||
|
@ -209,7 +209,7 @@ for possible rejections:
|
|||
// Get the MultiUserChatManager
|
||||
MultiUserChatManager manager = MultiUserChatManager.getInstanceFor(connection);
|
||||
|
||||
// Create a MultiUserChat using a XMPPConnection for a room
|
||||
// Create a MultiUserChat using an XMPPConnection for a room
|
||||
MultiUserChat muc2 = manager.getMultiUserChat("myroom@conference.jabber.org");
|
||||
|
||||
muc2.join("testbot2");
|
||||
|
|
|
@ -97,7 +97,7 @@ your presence to let people know you're unavailable and "out fishing":
|
|||
// Create a new presence. Pass in false to indicate we're unavailable._
|
||||
Presence presence = new Presence(Presence.Type.unavailable);
|
||||
presence.setStatus("Gone fishing");
|
||||
// Send the packet (assume we have a XMPPConnection instance called "con").
|
||||
// Send the packet (assume we have an XMPPConnection instance called "con").
|
||||
con.sendPacket(presence);
|
||||
```
|
||||
|
||||
|
|
|
@ -16,7 +16,7 @@ The following code snippet demonstrates how to create a new Chat with a user
|
|||
and then send them a text message:
|
||||
|
||||
```
|
||||
// Assume we've created a XMPPConnection name "connection"._
|
||||
// Assume we've created an XMPPConnection name "connection"._
|
||||
ChatManager chatmanager = connection.getChatManager();
|
||||
Chat newChat = chatmanager.createChat("jsmith@jivesoftware.com", new MessageListener() {
|
||||
public void processMessage(Chat chat, Message message) {
|
||||
|
@ -72,7 +72,7 @@ when it happens. You can register a message listener to receive all future
|
|||
messages as part of this handler.
|
||||
|
||||
```
|
||||
_// Assume we've created a XMPPConnection name "connection"._
|
||||
_// Assume we've created an XMPPConnection name "connection"._
|
||||
ChatManager chatmanager = connection.getChatManager().addChatListener(
|
||||
new ChatManagerListener() {
|
||||
@Override
|
||||
|
|
|
@ -22,7 +22,7 @@ and a packet listener:
|
|||
// user. We use an AndFilter to combine two other filters._
|
||||
PacketFilter filter = new AndFilter(new PacketTypeFilter(Message.class),
|
||||
new FromContainsFilter("mary@jivesoftware.com"));
|
||||
// Assume we've created a XMPPConnection name "connection".
|
||||
// Assume we've created an XMPPConnection name "connection".
|
||||
|
||||
// First, register a packet collector using the filter we created.
|
||||
PacketCollector myCollector = connection.createPacketCollector(filter);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue