mirror of
https://github.com/vanitasvitae/Smack.git
synced 2024-11-22 20:12:07 +01:00
Merge pull request #214 from fuentesj11/javadoc-update
Update/fix javadocs
This commit is contained in:
commit
1d438ec1c2
3 changed files with 7 additions and 5 deletions
|
@ -43,13 +43,15 @@ import org.jxmpp.jid.EntityFullJid;
|
||||||
* // Most servers require you to login before performing other tasks.
|
* // Most servers require you to login before performing other tasks.
|
||||||
* con.login("jsmith", "mypass");
|
* con.login("jsmith", "mypass");
|
||||||
* // Start a new conversation with John Doe and send him a message.
|
* // Start a new conversation with John Doe and send him a message.
|
||||||
* Chat chat = ChatManager.getInstanceFor(con).createChat("jdoe@igniterealtime.org", new MessageListener() {
|
* ChatManager chatManager = ChatManager.getInstanceFor(con);
|
||||||
* public void processMessage(Chat chat, Message message) {
|
* chatManager.addIncomingListener(new IncomingChatMessageListener() {
|
||||||
|
* public void newIncomingMessage(EntityBareJid from, Message message, Chat chat) {
|
||||||
* // Print out any messages we get back to standard out.
|
* // Print out any messages we get back to standard out.
|
||||||
* System.out.println("Received message: " + message);
|
* System.out.println("Received message: " + message);
|
||||||
* }
|
* }
|
||||||
* });
|
* });
|
||||||
* chat.sendMessage("Howdy!");
|
* Chat chat = chatManager.chatWith("jdoe@igniterealtime.org");
|
||||||
|
* chat.send("Howdy!");
|
||||||
* // Disconnect from the server
|
* // Disconnect from the server
|
||||||
* con.disconnect();
|
* con.disconnect();
|
||||||
* </pre>
|
* </pre>
|
||||||
|
|
|
@ -78,7 +78,7 @@ import org.jxmpp.util.cache.LruCache;
|
||||||
* Represents a user's roster, which is the collection of users a person receives
|
* Represents a user's roster, which is the collection of users a person receives
|
||||||
* presence updates for. Roster items are categorized into groups for easier management.
|
* presence updates for. Roster items are categorized into groups for easier management.
|
||||||
*
|
*
|
||||||
* Others users may attempt to subscribe to this user using a subscription request. Three
|
* Other users may attempt to subscribe to this user using a subscription request. Three
|
||||||
* modes are supported for handling these requests: <ul>
|
* modes are supported for handling these requests: <ul>
|
||||||
* <li>{@link SubscriptionMode#accept_all accept_all} -- accept all subscription requests.</li>
|
* <li>{@link SubscriptionMode#accept_all accept_all} -- accept all subscription requests.</li>
|
||||||
* <li>{@link SubscriptionMode#reject_all reject_all} -- reject all subscription requests.</li>
|
* <li>{@link SubscriptionMode#reject_all reject_all} -- reject all subscription requests.</li>
|
||||||
|
|
|
@ -272,7 +272,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection {
|
||||||
/**
|
/**
|
||||||
* This listeners are invoked for every stanza that got acknowledged.
|
* This listeners are invoked for every stanza that got acknowledged.
|
||||||
* <p>
|
* <p>
|
||||||
* We use a {@link ConccurrentLinkedQueue} here in order to allow the listeners to remove
|
* We use a {@link ConcurrentLinkedQueue} here in order to allow the listeners to remove
|
||||||
* themselves after they have been invoked.
|
* themselves after they have been invoked.
|
||||||
* </p>
|
* </p>
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Reference in a new issue