diff --git a/config/checkstyle.xml b/config/checkstyle.xml
index bf564dd63..a05c12726 100644
--- a/config/checkstyle.xml
+++ b/config/checkstyle.xml
@@ -44,21 +44,19 @@
-
- *
+ *
* 1. Log in user0 from a client and user1 from 2 clients
* 2. Create presence subscription of type BOTH between 2 users
* 3. Check that presence is correctly delivered to both users
@@ -699,12 +699,12 @@ public class RosterSmackTest extends SmackTestCase {
public void entriesUpdated(Collection
- *
- * This base class defines a default execution context (i.e. host, port, chat domain and muc
+ * can be controlled by the message {@link #getMaxConnections()} which every subclass must
+ * implement.
+ *
+ * This base class defines a default execution context (i.e. host, port, chat domain and muc
* domain) which can be found in the file "config/test-case.xml". However, each subclass could
* redefine the default configuration by providing its own configuration file (if desired). The
* name of the configuration file must be of the form
- *
- * A custom SocketFactory allows fine-grained control of the actual connection to the XMPP
+ *
+ * A custom SocketFactory allows fine-grained control of the actual connection to the XMPP
* server. A typical use for a custom SocketFactory is when connecting through a SOCKS proxy.
- *
+ *
* @return a SocketFactory that will be used to create the socket to the XMPP server.
*/
protected SocketFactory getSocketFactory() {
@@ -111,7 +111,7 @@ public abstract class SmackTestCase extends TestCase {
*
* Connections are connected by default.
* Overwrite this method if the test case needs unconnected connections.
- *
+ *
* @return
- *
- * If the requested position is greater than the connections size then an
- * IllegalArgumentException will be thrown.
- *
+ * every subclass must implement.
+ *
+ * If the requested position is greater than the connections size then an
+ * IllegalArgumentException will be thrown.
+ *
* @param index the position in the pool of the connection to look for.
* @return the XMPPTCPConnection located at the requested position.
*/
@@ -156,9 +156,9 @@ public abstract class SmackTestCase extends TestCase {
}
/**
- * Returns the name of the user (e.g. johndoe) that is using the connection
+ * Returns the name of the user (e.g. johndoe) that is using the connection
* located at the requested position.
- *
+ *
* @param index the position in the pool of the connection to look for.
* @return the user of the user (e.g. johndoe).
*/
@@ -167,9 +167,9 @@ public abstract class SmackTestCase extends TestCase {
}
/**
- * Returns the password of the user (e.g. johndoe) that is using the connection
+ * Returns the password of the user (e.g. johndoe) that is using the connection
* located at the requested position.
- *
+ *
* @param index the position in the pool of the connection to look for.
* @return the password of the user (e.g. johndoe).
*/
@@ -180,7 +180,7 @@ public abstract class SmackTestCase extends TestCase {
/**
* Returns the bare XMPP address of the user (e.g. johndoe@jabber.org) that is
* using the connection located at the requested position.
- *
+ *
* @param index the position in the pool of the connection to look for.
* @return the bare XMPP address of the user (e.g. johndoe@jabber.org).
*/
@@ -191,7 +191,7 @@ public abstract class SmackTestCase extends TestCase {
/**
* Returns the full XMPP address of the user (e.g. johndoe@jabber.org/Smack) that is
* using the connection located at the requested position.
- *
+ *
* @param index the position in the pool of the connection to look for.
* @return the full XMPP address of the user (e.g. johndoe@jabber.org/Smack).
*/
@@ -213,7 +213,7 @@ public abstract class SmackTestCase extends TestCase {
/**
* Returns the default groupchat service domain.
- *
+ *
* @return the default groupchat service domain.
*/
protected String getChatDomain() {
@@ -222,7 +222,7 @@ public abstract class SmackTestCase extends TestCase {
/**
* Returns the default MUC service domain.
- *
+ *
* @return the default MUC service domain.
*/
protected String getMUCDomain() {
@@ -273,7 +273,7 @@ public abstract class SmackTestCase extends TestCase {
if (!getConnection(0).getAccountManager().supportsAccountCreation())
fail("Server does not support account creation");
- // Create the account and try logging in again as the
+ // Create the account and try logging in again as the
// same user.
try {
createAccount(i, currentUser, currentPassword);
@@ -345,7 +345,7 @@ public abstract class SmackTestCase extends TestCase {
con.login(getUsername(i), getUsername(i));
}
else if (!getConnection(i).isAuthenticated()) {
- getConnection(i).login(getUsername(i), getUsername(i));
+ getConnection(i).login(getUsername(i), getUsername(i));
}
// Delete the created account for the test
getConnection(i).getAccountManager().deleteAccount();
@@ -366,22 +366,22 @@ public abstract class SmackTestCase extends TestCase {
}
/**
- * Initializes the context of the test case. We will first try to load the configuration from
- * a file whose name is conformed by the test case class name plus an .xml extension
- * (e.g RosterTest.xml). If no file was found under that name then we will try to load the
+ * Initializes the context of the test case. We will first try to load the configuration from
+ * a file whose name is conformed by the test case class name plus an .xml extension
+ * (e.g RosterTest.xml). If no file was found under that name then we will try to load the
* default configuration for all the test cases from the file "config/test-case.xml".
*
*/
private void init() {
try {
boolean found = false;
- // Try to load the configutation from an XML file specific for this test case
+ // Try to load the configutation from an XML file specific for this test case
Enumeration
* Listeners will be preserved from a previous connection.
*
@@ -427,11 +427,11 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
* {@link ConnectionConfiguration.Builder#setCallbackHandler(javax.security.auth.callback.CallbackHandler)}.
* For more advanced login settings see {@link ConnectionConfiguration}.
*
* Compared to {@link #firePacketInterceptors(Stanza)}, the listeners will be invoked in a new thread.
*
* Interrupting the reconnection thread will abort the reconnection mechanism.
@@ -60,7 +60,7 @@ public final class ReconnectionManager {
/**
* Get a instance of ReconnectionManager for the given connection.
- *
+ *
* @param connection
* @return a ReconnectionManager for the connection.
*/
@@ -89,7 +89,7 @@ public final class ReconnectionManager {
/**
* Set if the automatic reconnection mechanism will be enabled per default for new XMPP connections. The default is
* 'false'.
- *
+ *
* @param enabled
*/
public static void setEnabledPerDefault(boolean enabled) {
@@ -121,7 +121,7 @@ public final class ReconnectionManager {
/**
* Set the default fixed delay in seconds between the reconnection attempts. Also set the
* default connection policy to {@link ReconnectionPolicy#FIXED_DELAY}
- *
+ *
* @param fixedDelay Delay expressed in seconds
*/
public static void setDefaultFixedDelay(int fixedDelay) {
@@ -131,7 +131,7 @@ public final class ReconnectionManager {
/**
* Set the default Reconnection Policy to use.
- *
+ *
* @param reconnectionPolicy
*/
public static void setDefaultReconnectionPolicy(ReconnectionPolicy reconnectionPolicy) {
@@ -162,7 +162,7 @@ public final class ReconnectionManager {
/**
* Set the fixed delay in seconds between the reconnection attempts Also set the connection
* policy to {@link ReconnectionPolicy#FIXED_DELAY}.
- *
+ *
* @param fixedDelay Delay expressed in seconds
*/
public void setFixedDelay(int fixedDelay) {
@@ -172,7 +172,7 @@ public final class ReconnectionManager {
/**
* Set the Reconnection Policy to use.
- *
+ *
* @param reconnectionPolicy
*/
public void setReconnectionPolicy(ReconnectionPolicy reconnectionPolicy) {
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java
index 5c8a648fc..00314a3ca 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/SASLAuthentication.java
@@ -114,7 +114,7 @@ public final class SASLAuthentication {
/**
* Unregister a SASLMechanism by it's full class name. For example
* "org.jivesoftware.smack.sasl.javax.SASLCramMD5Mechanism".
- *
+ *
* @param clazz the SASLMechanism class's name
* @return true if the given SASLMechanism was removed, false otherwise
*/
@@ -228,10 +228,10 @@ public final class SASLAuthentication {
/**
* Wrapper for {@link #challengeReceived(String, boolean)}, with
*
* Each stanza collector will queue up a configured number of packets for processing before
- * older packets are automatically dropped. The default number is retrieved by
+ * older packets are automatically dropped. The default number is retrieved by
* {@link SmackConfiguration#getStanzaCollectorSize()}.
*
* @see XMPPConnection#createStanzaCollector(StanzaFilter)
@@ -147,7 +147,7 @@ public class StanzaCollector {
*
* @param type of the result stanza.
* @return the next available packet.
- * @throws InterruptedException
+ * @throws InterruptedException
*/
@SuppressWarnings("unchecked")
public P nextResultBlockForever() throws InterruptedException {
@@ -165,7 +165,7 @@ public class StanzaCollector {
*
* @param type of the result stanza.
* @return the next available packet.
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public P nextResult() throws InterruptedException {
return nextResult(connection.getReplyTimeout());
@@ -181,7 +181,7 @@ public class StanzaCollector {
* @param type of the result stanza.
* @param timeout the timeout in milliseconds.
* @return the next available packet.
- * @throws InterruptedException
+ * @throws InterruptedException
*/
@SuppressWarnings("unchecked")
public P nextResult(long timeout) throws InterruptedException {
@@ -270,7 +270,7 @@ public class StanzaCollector {
/**
* Get the number of collected stanzas this stanza collector has collected so far.
- *
+ *
* @return the count of collected stanzas.
* @since 4.1
*/
@@ -306,7 +306,7 @@ public class StanzaCollector {
/**
* Get a new stanza collector configuration instance.
- *
+ *
* @return a new stanza collector configuration.
*/
public static Configuration newConfiguration() {
@@ -325,7 +325,7 @@ public class StanzaCollector {
/**
* Set the stanza filter used by this collector. If
* NOTE: For a similar functionality on incoming stanzas, see {@link #addAsyncStanzaListener(StanzaListener, StanzaFilter)}.
* true
if connections should NOT be connected automatically,
* false
if connections should be connected automatically.
*/
@@ -123,11 +123,11 @@ public abstract class SmackTestCase extends TestCase {
* Returns the XMPPTCPConnection located at the requested position. Each test case holds a
* pool of connections which is initialized while setting up the test case. The maximum
* number of connections is controlled by the message {@link #getMaxConnections()} which
- * every subclass must implement.connect()
with login()
.
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public synchronized AbstractXMPPConnection connect() throws SmackException, IOException, XMPPException, InterruptedException {
// Check if not already connected
@@ -395,11 +395,11 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
* Abstract method that concrete subclasses of XMPPConnection need to implement to perform their
* way of XMPP connection establishment. Implementations are required to perform an automatic
* login if the previous connection state was logged (authenticated).
- *
+ *
* @throws SmackException
* @throws IOException
* @throws XMPPException
- * @throws InterruptedException
+ * @throws InterruptedException
*/
protected abstract void connectInternal() throws SmackException, IOException, XMPPException, InterruptedException;
@@ -412,7 +412,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
/**
* Logs in to the server using the strongest SASL mechanism supported by
- * the server. If more than the connection's default stanza timeout elapses in each step of the
+ * the server. If more than the connection's default stanza timeout elapses in each step of the
* authentication process without a response from the server, a
* {@link SmackException.NoResponseException} will be thrown.
* null
if
* this connection was not authenticated before.
- *
+ *
* @return the name of the used SASL mechanism.
* @since 4.2
*/
@@ -674,7 +674,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
/**
* Returns the SASLAuthentication manager that is responsible for authenticating with
* the server.
- *
+ *
* @return the SASLAuthentication manager that is responsible for authenticating with
* the server.
*/
@@ -708,9 +708,9 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
* information such as "On vacation". Typically, just the status text of the presence
* stanza is set with online information, but most XMPP servers will deliver the full
* presence stanza with whatever data is set.
- *
+ *
* @param unavailablePresence the optional presence stanza to send during shutdown.
- * @throws NotConnectedException
+ * @throws NotConnectedException
*/
public synchronized void disconnect(Presence unavailablePresence) throws NotConnectedException {
if (unavailablePresence != null) {
@@ -871,7 +871,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
* smack.debuggerClass
to the implementation.
- *
+ *
* @throws IllegalStateException if the reader or writer isn't yet initialized.
* @throws IllegalArgumentException if the SmackDebugger can't be loaded.
*/
@@ -1208,7 +1208,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
/**
* Sets whether the connection has already logged in the server. This method assures that the
* {@link #wasAuthenticated} flag is never reset once it has ever been set.
- *
+ *
*/
protected void setWasAuthenticated() {
// Never reset the flag if the connection has ever been authenticated
@@ -1284,7 +1284,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
/**
* Create a class which associates a stanza filter with a listener.
- *
+ *
* @param packetListener the stanza listener.
* @param packetFilter the associated filter or null if it listen for all packets.
*/
@@ -1312,7 +1312,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
/**
* Create a class which associates a stanza filter with an interceptor.
- *
+ *
* @param packetInterceptor the interceptor.
* @param packetFilter the associated filter or null if it intercepts all packets.
*/
@@ -1681,7 +1681,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
/**
* Install a parsing exception callback, which will be invoked once an exception is encountered while parsing a
* stanza.
- *
+ *
* @param callback the callback to install
*/
public void setParsingExceptionCallback(ParsingExceptionCallback callback) {
@@ -1690,7 +1690,7 @@ public abstract class AbstractXMPPConnection implements XMPPConnection {
/**
* Get the current active parsing exception callback.
- *
+ *
* @return the active exception callback or null if there is none
*/
public ParsingExceptionCallback getParsingExceptionCallback() {
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java
index 916804f02..c16e5624c 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/ConnectionConfiguration.java
@@ -107,12 +107,12 @@ public abstract class ConnectionConfiguration {
private final X509TrustManager customX509TrustManager;
/**
- *
+ *
*/
private final String[] enabledSSLProtocols;
/**
- *
+ *
*/
private final String[] enabledSSLCiphers;
@@ -210,7 +210,7 @@ public abstract class ConnectionConfiguration {
}
/**
- * Retuns the path to the keystore file. The key store file contains the
+ * Retuns the path to the keystore file. The key store file contains the
* certificates that may be used to authenticate the client to the server,
* in the event the server requests or requires it.
*
@@ -271,7 +271,7 @@ public abstract class ConnectionConfiguration {
* Returns the configured HostnameVerifier of this ConnectionConfiguration or the Smack default
* HostnameVerifier configured with
* {@link SmackConfiguration#setDefaultHostnameVerifier(HostnameVerifier)}.
- *
+ *
* @return a configured HostnameVerifier or null
*/
public HostnameVerifier getHostnameVerifier() {
@@ -305,7 +305,7 @@ public abstract class ConnectionConfiguration {
/**
* Returns the socket factory used to create new xmppConnection sockets.
* This is useful when connecting through SOCKS5 proxies.
- *
+ *
* @return socketFactory used to create new sockets.
*/
public SocketFactory getSocketFactory() {
@@ -413,7 +413,7 @@ public abstract class ConnectionConfiguration {
/**
* Returns the optional XMPP address to be requested as the SASL authorization identity.
- *
+ *
* @return the authorization identifier.
* @see RFC 6120 § 6.3.8. Authorization Identity
* @since 4.2
@@ -689,7 +689,7 @@ public abstract class ConnectionConfiguration {
}
/**
- * Sets the path to the keystore file. The key store file contains the
+ * Sets the path to the keystore file. The key store file contains the
* certificates that may be used to authenticate the client to the server,
* in the event the server requests or requires it.
*
@@ -752,8 +752,8 @@ public abstract class ConnectionConfiguration {
/**
* Set the enabled SSL/TLS ciphers.
- *
- * @param enabledSSLCiphers the enabled SSL/TLS ciphers
+ *
+ * @param enabledSSLCiphers the enabled SSL/TLS ciphers
* @return a reference to this builder.
*/
public B setEnabledSSLCiphers(String[] enabledSSLCiphers) {
@@ -764,7 +764,7 @@ public abstract class ConnectionConfiguration {
/**
* Set the HostnameVerifier used to verify the hostname of SSLSockets used by XMPP connections
* created with this ConnectionConfiguration.
- *
+ *
* @param verifier
* @return a reference to this builder.
*/
@@ -795,7 +795,7 @@ public abstract class ConnectionConfiguration {
/**
* Set the Smack debugger factory used to construct Smack debuggers.
- *
+ *
* @param debuggerFactory the Smack debugger factory.
* @return a reference to this builder.
*/
@@ -832,7 +832,7 @@ public abstract class ConnectionConfiguration {
*
* Some SASL mechanisms (e.g. SASL External) may also signal the username (as "authorization identity"), in
* which case Smack should not throw an IllegalArgumentException when the username is not set.
- *
+ *
* @return a reference to this builder.
*/
public B allowEmptyOrNullUsernames() {
@@ -843,7 +843,7 @@ public abstract class ConnectionConfiguration {
/**
* Perform anonymous authentication using SASL ANONYMOUS. Your XMPP service must support this authentication
* mechanism. This method also calls {@link #addEnabledSaslMechanism(String)} with "ANONYMOUS" as argument.
- *
+ *
* @return a reference to this builder.
*/
public B performSaslAnonymousAuthentication() {
@@ -902,7 +902,7 @@ public abstract class ConnectionConfiguration {
* Enable the given SASL mechanisms. If you never add a mechanism to the set of enabled ones, all mechanisms
* known to Smack will be enabled. Only explicitly enable particular SASL mechanisms if you want to limit
* the used mechanisms to the enabled ones.
- *
+ *
* @param saslMechanisms a collection of names of mechanisms to enable.
* @return a reference to this builder.
*/
@@ -935,7 +935,7 @@ public abstract class ConnectionConfiguration {
* service domain, which should typically match.
* Calling this will also SASL CRAM, since this mechanism does not support authzid.
* finalChallenge
set
* to false
.
- *
+ *
* @param challenge a base64 encoded string representing the challenge.
* @throws SmackException
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public void challengeReceived(String challenge) throws SmackException, InterruptedException {
challengeReceived(challenge, false);
@@ -261,8 +261,8 @@ public final class SASLAuthentication {
* Notification message saying that SASL authentication was successful. The next step
* would be to bind the resource.
* @param success result of the authentication.
- * @throws SmackException
- * @throws InterruptedException
+ * @throws SmackException
+ * @throws InterruptedException
*/
public void authenticated(Success success) throws SmackException, InterruptedException {
// RFC6120 6.3.10 "At the end of the authentication exchange, the SASL server (the XMPP
@@ -284,7 +284,7 @@ public final class SASLAuthentication {
/**
* Notification message saying that SASL authentication has failed. The server may have
* closed the connection depending on the number of possible retries.
- *
+ *
* @param saslFailure the SASL failure as reported by the server
* @see RFC6120 6.5
*/
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java b/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java
index 5cef0f1c9..4b99bc20f 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/SmackConfiguration.java
@@ -44,7 +44,7 @@ import org.jivesoftware.smack.util.Objects;
*
*
* Configuration settings are stored in org.jivesoftware.smack/smack-config.xml.
- *
+ *
* @author Gaston Dombiak
*/
public final class SmackConfiguration {
@@ -86,7 +86,7 @@ public final class SmackConfiguration {
/**
* Returns the Smack version information, eg "1.3.0".
- *
+ *
* @return the Smack version information.
*/
public static String getVersion() {
@@ -96,7 +96,7 @@ public final class SmackConfiguration {
/**
* Returns the number of milliseconds to wait for a response from
* the server. The default value is 5000 ms.
- *
+ *
* @return the milliseconds to wait for a response from the server
* @deprecated use {@link #getDefaultReplyTimeout()} instead.
*/
@@ -108,7 +108,7 @@ public final class SmackConfiguration {
/**
* Sets the number of milliseconds to wait for a response from
* the server.
- *
+ *
* @param timeout the milliseconds to wait for a response from the server
* @deprecated use {@link #setDefaultReplyTimeout(int)} instead.
*/
@@ -120,7 +120,7 @@ public final class SmackConfiguration {
/**
* Returns the number of milliseconds to wait for a response from
* the server. The default value is 5000 ms.
- *
+ *
* @return the milliseconds to wait for a response from the server
*/
public static int getDefaultReplyTimeout() {
@@ -134,7 +134,7 @@ public final class SmackConfiguration {
/**
* Sets the number of milliseconds to wait for a response from
* the server.
- *
+ *
* @param timeout the milliseconds to wait for a response from the server
*/
public static void setDefaultReplyTimeout(int timeout) {
@@ -153,9 +153,9 @@ public final class SmackConfiguration {
}
/**
- * Gets the default max size of a stanza collector before it will delete
+ * Gets the default max size of a stanza collector before it will delete
* the older packets.
- *
+ *
* @return The number of packets to queue before deleting older packets.
*/
public static int getStanzaCollectorSize() {
@@ -163,9 +163,9 @@ public final class SmackConfiguration {
}
/**
- * Sets the default max size of a stanza collector before it will delete
+ * Sets the default max size of a stanza collector before it will delete
* the older packets.
- *
+ *
* @param collectorSize the number of packets to queue before deleting older packets.
*/
public static void setStanzaCollectorSize(int collectorSize) {
@@ -235,7 +235,7 @@ public final class SmackConfiguration {
/**
* Returns the default parsing exception callback.
- *
+ *
* @return the default parsing exception callback
* @see ParsingExceptionCallback
*/
@@ -334,7 +334,7 @@ public final class SmackConfiguration {
/**
* Check if Smack was successfully initialized.
- *
+ *
* @return true if smack was initialized, false otherwise
*/
public static boolean isSmackInitialized() {
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SmackException.java b/smack-core/src/main/java/org/jivesoftware/smack/SmackException.java
index f52ce63a5..74d391539 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/SmackException.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/SmackException.java
@@ -26,19 +26,19 @@ import org.jxmpp.jid.Jid;
/**
* Smack uses SmackExceptions for errors that are not defined by any XMPP specification.
- *
+ *
* @author Florian Schmaus
*/
public class SmackException extends Exception {
/**
- *
+ *
*/
private static final long serialVersionUID = 1844674365368214457L;
/**
* Creates a new SmackException with the Throwable that was the root cause of the exception.
- *
+ *
* @param wrappedThrowable the root cause of the exception.
*/
public SmackException(Throwable wrappedThrowable) {
@@ -63,7 +63,7 @@ public class SmackException extends Exception {
*/
public static final class NoResponseException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = -6523363748984543636L;
@@ -124,7 +124,7 @@ public class SmackException extends Exception {
public static class NotLoggedInException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 3216216839100019278L;
@@ -136,7 +136,7 @@ public class SmackException extends Exception {
public static class AlreadyLoggedInException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 5011416918049935231L;
@@ -148,7 +148,7 @@ public class SmackException extends Exception {
public static class AlreadyConnectedException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 5011416918049135231L;
@@ -160,7 +160,7 @@ public class SmackException extends Exception {
public static class NotConnectedException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 9197980400776001173L;
@@ -187,7 +187,7 @@ public class SmackException extends Exception {
public static class IllegalStateChangeException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = -1766023961577168927L;
@@ -198,7 +198,7 @@ public class SmackException extends Exception {
public abstract static class SecurityRequiredException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 384291845029773545L;
@@ -209,7 +209,7 @@ public class SmackException extends Exception {
public static class SecurityRequiredByClientException extends SecurityRequiredException {
/**
- *
+ *
*/
private static final long serialVersionUID = 2395325821201543159L;
@@ -220,7 +220,7 @@ public class SmackException extends Exception {
public static class SecurityRequiredByServerException extends SecurityRequiredException {
/**
- *
+ *
*/
private static final long serialVersionUID = 8268148813117631819L;
@@ -232,7 +232,7 @@ public class SmackException extends Exception {
public static class SecurityNotPossibleException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = -6836090872690331336L;
@@ -250,7 +250,7 @@ public class SmackException extends Exception {
public static class ConnectionException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 1686944201672697996L;
@@ -286,7 +286,7 @@ public class SmackException extends Exception {
public static class FeatureNotSupportedException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 4713404802621452016L;
@@ -326,7 +326,7 @@ public class SmackException extends Exception {
public static class ResourceBindingNotOfferedException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 2346934138253437571L;
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/StanzaCollector.java b/smack-core/src/main/java/org/jivesoftware/smack/StanzaCollector.java
index 4a7c284eb..5c6ed9784 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/StanzaCollector.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/StanzaCollector.java
@@ -34,7 +34,7 @@ import org.jivesoftware.smack.packet.Stanza;
* result.null
, then all packets will
* get collected by this collector.
- *
+ *
* @param packetFilter
* @return a reference to this configuration.
* @deprecated use {@link #setStanzaFilter(StanzaFilter)} instead.
@@ -338,7 +338,7 @@ public class StanzaCollector {
/**
* Set the stanza filter used by this collector. If null
, then all stanzas will
* get collected by this collector.
- *
+ *
* @param stanzaFilter
* @return a reference to this configuration.
*/
@@ -350,7 +350,7 @@ public class StanzaCollector {
/**
* Set the maximum size of this collector, i.e. how many stanzas this collector will collect
* before dropping old ones.
- *
+ *
* @param size
* @return a reference to this configuration.
*/
@@ -362,7 +362,7 @@ public class StanzaCollector {
/**
* Set the collector which timeout for the next result is reset once this collector collects
* a packet.
- *
+ *
* @param collector
* @return a reference to this configuration.
*/
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/StanzaListener.java b/smack-core/src/main/java/org/jivesoftware/smack/StanzaListener.java
index 91b4a12f6..a5fbaee8b 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/StanzaListener.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/StanzaListener.java
@@ -49,8 +49,8 @@ public interface StanzaListener {
*
* @param packet the stanza to process.
* @throws NotConnectedException
- * @throws InterruptedException
- * @throws NotLoggedInException
+ * @throws InterruptedException
+ * @throws NotLoggedInException
*/
void processStanza(Stanza packet) throws NotConnectedException, InterruptedException, NotLoggedInException;
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java b/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java
index ac0c79a54..54be30a36 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/SynchronizationPoint.java
@@ -243,7 +243,7 @@ public class SynchronizationPointXMPPTCPConnection
or XMPPBOSHConnection
). To create a connection to an XMPP server
* a simple usage of this API might look like the following:
- *
+ *
*
* // Create a connection to the igniterealtime.org XMPP server.
* XMPPTCPConnection con = new XMPPTCPConnection("igniterealtime.org");
@@ -76,7 +76,7 @@ public interface XMPPConnection {
/**
* Returns the XMPP Domain of the service provided by the XMPP server and used for this connection. After
* authenticating with the server the returned value may be different.
- *
+ *
* @return the XMPP domain of this XMPP session.
*/
DomainBareJid getXMPPServiceDomain();
@@ -84,7 +84,7 @@ public interface XMPPConnection {
/**
* Returns the host name of the server where the XMPP server is running. This would be the
* IP address of the server or a name that may be resolved by a DNS server.
- *
+ *
* @return the host name of the server where the XMPP server is running or null if not yet connected.
*/
String getHost();
@@ -92,7 +92,7 @@ public interface XMPPConnection {
/**
* Returns the port number of the XMPP server for this connection. The default port
* for normal connections is 5222.
- *
+ *
* @return the port number of the XMPP server or 0 if not yet connected.
*/
int getPort();
@@ -101,7 +101,7 @@ public interface XMPPConnection {
* Returns the full XMPP address of the user that is logged in to the connection or
* null if not logged in yet. An XMPP address is in the form
* username@server/resource.
- *
+ *
* @return the full XMPP address of the user logged in.
*/
EntityFullJid getUser();
@@ -109,7 +109,7 @@ public interface XMPPConnection {
/**
* Returns the stream ID for this connection, which is the value set by the server
* when opening an XMPP stream. This value will be null if not connected to the server.
- *
+ *
* @return the ID of this connection returned from the XMPP server or null if
* not connected to the server.
* @see RFC 6120 § 4.7.3. id
@@ -118,28 +118,28 @@ public interface XMPPConnection {
/**
* Returns true if currently connected to the XMPP server.
- *
+ *
* @return true if connected.
*/
boolean isConnected();
/**
* Returns true if currently authenticated by successfully calling the login method.
- *
+ *
* @return true if authenticated.
*/
boolean isAuthenticated();
/**
* Returns true if currently authenticated anonymously.
- *
+ *
* @return true if authenticated anonymously.
*/
boolean isAnonymous();
/**
- * Returns true if the connection to the server has successfully negotiated encryption.
- *
+ * Returns true if the connection to the server has successfully negotiated encryption.
+ *
* @return true if a secure connection to the server.
*/
boolean isSecureConnection();
@@ -149,7 +149,7 @@ public interface XMPPConnection {
* traffic can be reduced up to 90%. Therefore, stream compression is ideal when using a slow
* speed network connection. However, the server will need to use more CPU time in order to
* un/compress network data so under high load the server performance might be affected.
- *
+ *
* @return true if network traffic is being compressed.
*/
boolean isUsingCompression();
@@ -173,21 +173,21 @@ public interface XMPPConnection {
*
* @param nonza the Nonza to send.
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
*/
void sendNonza(Nonza nonza) throws NotConnectedException, InterruptedException;
/**
* Adds a connection listener to this connection that will be notified when
* the connection closes or fails.
- *
+ *
* @param connectionListener a connection listener.
*/
void addConnectionListener(ConnectionListener connectionListener);
/**
* Removes a connection listener from this connection.
- *
+ *
* @param connectionListener a connection listener.
*/
void removeConnectionListener(ConnectionListener connectionListener);
@@ -214,8 +214,8 @@ public interface XMPPConnection {
*
* @param request the IQ request to filter responses from
* @return a new stanza collector.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
StanzaCollector createStanzaCollectorAndSend(IQ request) throws NotConnectedException, InterruptedException;
@@ -224,12 +224,12 @@ public interface XMPPConnection {
* which stanzas will be accumulated by the collector. A StanzaCollector is
* more suitable to use than a {@link StanzaListener} when you need to wait for
* a specific result.
- *
+ *
* @param stanzaFilter the stanza filter to use.
* @param stanza the stanza to send right after the collector got created
* @return a new stanza collector.
- * @throws InterruptedException
- * @throws NotConnectedException
+ * @throws InterruptedException
+ * @throws NotConnectedException
*/
StanzaCollector createStanzaCollectorAndSend(StanzaFilter stanzaFilter, Stanza stanza)
throws NotConnectedException, InterruptedException;
@@ -246,7 +246,7 @@ public interface XMPPConnection {
* Otherwise make sure cancel the StanzaCollector in every case, e.g. even
* if an exception is thrown, or otherwise you may leak the StanzaCollector.
*
exceptionCallback
will be invoked
* with a {@link SmackException.NoResponseException}. The callback will be invoked at most once.
*
- *
+ *
* @param stanza the stanza to send (required)
* @param replyFilter the filter used to determine response stanza (required)
* @param callback the callback invoked if there is a response (required)
* @param exceptionCallback the callback invoked if there is an exception (optional)
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @deprecated use {@link #sendAsync(Stanza, StanzaFilter)} instead.
*/
@Deprecated
@@ -584,14 +584,14 @@ public interface XMPPConnection {
* after timeout
milliseconds, then exceptionCallback
will be invoked
* with a {@link SmackException.NoResponseException}. The callback will be invoked at most once.
*
- *
+ *
* @param stanza the stanza to send (required)
* @param replyFilter the filter used to determine response stanza (required)
* @param callback the callback invoked if there is a response (required)
* @param exceptionCallback the callback invoked if there is an exception (optional)
* @param timeout the timeout in milliseconds to wait for a response
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @deprecated use {@link #sendAsync(Stanza, StanzaFilter, long)} instead.
*/
@Deprecated
@@ -604,11 +604,11 @@ public interface XMPPConnection {
* Send a IQ stanza and invoke callback
if there is a result of
* {@link org.jivesoftware.smack.packet.IQ.Type#result} with that result IQ. The callback will
* not be invoked after the connections default reply timeout has been elapsed.
- *
+ *
* @param iqRequest the IQ stanza to send (required)
* @param callback the callback invoked if there is result response (required)
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @deprecated use {@link #sendIqRequestAsync(IQ)} instead.
*/
@Deprecated
@@ -622,12 +622,12 @@ public interface XMPPConnection {
* error as {@link XMPPException.XMPPErrorException}. If there is no response after the
* connections default reply timeout, then exceptionCallback
will be invoked with a
* {@link SmackException.NoResponseException}.
- *
+ *
* @param iqRequest the IQ stanza to send (required)
* @param callback the callback invoked if there is result response (required)
* @param exceptionCallback the callback invoked if there is an Exception optional
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @deprecated use {@link #sendIqRequestAsync(IQ)} instead.
*/
@Deprecated
@@ -642,13 +642,13 @@ public interface XMPPConnection {
* error as {@link XMPPException.XMPPErrorException}. If there is no response after
* timeout
, then exceptionCallback
will be invoked with a
* {@link SmackException.NoResponseException}.
- *
+ *
* @param iqRequest the IQ stanza to send (required)
* @param callback the callback invoked if there is result response (required)
* @param exceptionCallback the callback invoked if there is an Exception optional
* @param timeout the timeout in milliseconds to wait for a response
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @deprecated use {@link #sendIqRequestAsync(IQ, long)} instead.
*/
@Deprecated
@@ -660,7 +660,7 @@ public interface XMPPConnection {
/**
* Add a callback that is called exactly once and synchronously with the incoming stanza that matches the given
* stanza filter.
- *
+ *
* @param callback the callback invoked once the stanza filter matches a stanza.
* @param stanzaFilter the filter to match stanzas or null to match all.
*/
@@ -686,7 +686,7 @@ public interface XMPPConnection {
/**
* Unregister an IQ request handler with this connection.
- *
+ *
* @param element the IQ element the IQ request handler is responsible for.
* @param namespace the IQ namespace the IQ request handler is responsible for.
* @param type the IQ type the IQ request handler is responsible for.
@@ -696,7 +696,7 @@ public interface XMPPConnection {
/**
* Returns the timestamp in milliseconds when the last stanza was received.
- *
+ *
* @return the timestamp in milliseconds
*/
long getLastStanzaReceived();
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/XMPPConnectionRegistry.java b/smack-core/src/main/java/org/jivesoftware/smack/XMPPConnectionRegistry.java
index a9a14c38e..6e02d1f79 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/XMPPConnectionRegistry.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/XMPPConnectionRegistry.java
@@ -32,7 +32,7 @@ public class XMPPConnectionRegistry {
/**
* Adds a new listener that will be notified when new Connections are created. Note
* that newly created connections will not be actually connected to the server.
- *
+ *
* @param connectionCreationListener a listener interested on new connections.
*/
public static void addConnectionCreationListener(
@@ -42,7 +42,7 @@ public class XMPPConnectionRegistry {
/**
* Removes a listener that was interested in connection creation events.
- *
+ *
* @param connectionCreationListener a listener interested on new connections.
*/
public static void removeConnectionCreationListener(
@@ -54,7 +54,7 @@ public class XMPPConnectionRegistry {
/**
* Get the collection of listeners that are interested in connection creation events.
- *
+ *
* @return a collection of listeners interested on new connections.
*/
protected static Collection
- *
- * Every implementation of this interface must have a public constructor with the following
+ *
+ * Every implementation of this interface must have a public constructor with the following
* arguments: XMPPConnection, Writer, Reader.
- *
+ *
* @author Gaston Dombiak
*/
public abstract class SmackDebugger {
@@ -43,10 +43,10 @@ public abstract class SmackDebugger {
}
/**
- * Called when a user has logged in to the server. The user could be an anonymous user, this
- * means that the user would be of the form host/resource instead of the form
+ * Called when a user has logged in to the server. The user could be an anonymous user, this
+ * means that the user would be of the form host/resource instead of the form
* user@host/resource.
- *
+ *
* @param user the user@host/resource that has just logged in
*/
// TODO: Should be replaced with a connection listener authenticed().
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/filter/IQTypeFilter.java b/smack-core/src/main/java/org/jivesoftware/smack/filter/IQTypeFilter.java
index 1e39336bb..76eb9d534 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/filter/IQTypeFilter.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/filter/IQTypeFilter.java
@@ -23,9 +23,9 @@ import org.jivesoftware.smack.util.Objects;
/**
* A filter for IQ stanza types. Returns true only if the stanza is an IQ packet
* and it matches the type provided in the constructor.
- *
+ *
* @author Alexander Wenckus
- *
+ *
*/
public final class IQTypeFilter extends FlexibleStanzaTypeFilter
* Any implementation of this class MUST have a default constructor.
- *
+ *
* @author Robin Collier
*
*/
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/initializer/UrlInitializer.java b/smack-core/src/main/java/org/jivesoftware/smack/initializer/UrlInitializer.java
index d58e7ee38..ffe7b9d90 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/initializer/UrlInitializer.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/initializer/UrlInitializer.java
@@ -31,7 +31,7 @@ import org.jivesoftware.smack.util.FileUtils;
/**
* Loads the provider file defined by the URL returned by {@link #getProvidersUri()} and the generic
* smack configuration file returned {@link #getConfigUri()}.
- *
+ *
* @author Florian Schmaus
*/
public abstract class UrlInitializer implements SmackInitializer {
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/initializer/VmArgInitializer.java b/smack-core/src/main/java/org/jivesoftware/smack/initializer/VmArgInitializer.java
index 3d0aaa762..89487c2e6 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/initializer/VmArgInitializer.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/initializer/VmArgInitializer.java
@@ -23,9 +23,9 @@ import org.jivesoftware.smack.provider.ProviderManager;
/**
- * Looks for a provider file location based on the VM argument smack.provider.file. If it is supplied, its value will
+ * Looks for a provider file location based on the VM argument smack.provider.file. If it is supplied, its value will
* be used as a file location for a providers file and loaded into the {@link ProviderManager} on Smack initialization.
- *
+ *
* @author Robin Collier
*
*/
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/AbstractError.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/AbstractError.java
index 4be69478c..513c4ca83 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/packet/AbstractError.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/AbstractError.java
@@ -61,7 +61,7 @@ public class AbstractError {
*
* Returns the descriptive text of this SASLFailure in the system default language if possible. May return null.
*
* Returns the descriptive text of this SASLFailure in the given language. May return null if not available.
*
*
* For more information refer to the following
- * link.
+ * link.
*
* @author Gaston Dombiak
*/
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java
index c963247d0..92ef0a964 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/IQ.java
@@ -211,7 +211,7 @@ public abstract class IQ extends Stanza {
*
* If your IQ does not contain any attributes or child elements (besides {@link ExtensionElement}s), consider sub-classing
* {@link SimpleIQ} instead.
- *
+ *
* @param xml a pre-created builder which already has the child element and the 'xmlns' attribute set.
* @return the build to create the IQ child content.
*/
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java b/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java
index 4c3a87ab4..cb87251c7 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/packet/Message.java
@@ -220,7 +220,7 @@ public final class Message extends Stanza implements TypedCloneable
* Smack provides 2 predefined ParsingExceptionCallback's: {@link ExceptionLoggingCallback} and {@link ExceptionThrowingCallback}.
* To use this class, you simply register your subclasses as extension providers in the
+ *
+ * To use this class, you simply register your subclasses as extension providers in the
* smack.properties file. Then they will be automatically picked up and used to parse
- * any child elements.
- *
+ * any child elements.
+ *
*
* A simple SASLPrep StringTransformer would be for example:
* For example, given the following message
- *
+ *
* <message from='pubsub.shakespeare.lit' to='francisco@denmark.lit' id='foo>
* <event xmlns='http://jabber.org/protocol/pubsub#event>
* <items node='princely_musings'>
@@ -54,16 +54,16 @@ import org.xmlpull.v1.XmlPullParser;
* </items>
* </event>
* </message>
- *
+ *
* I would have a classes
* ItemsProvider extends {@link EmbeddedExtensionProvider}
* ItemProvider extends {@link EmbeddedExtensionProvider}
* and
* AtomProvider extends {@link ExtensionElementProvider}
- *
+ *
* These classes are then registered in the meta-inf/smack.providers file
* as follows.
- *
+ *
* <extensionProvider>
* <elementName>items</elementName>
* <namespace>http://jabber.org/protocol/pubsub#event</namespace>
@@ -74,9 +74,9 @@ import org.xmlpull.v1.XmlPullParser;
* <namespace>http://jabber.org/protocol/pubsub#event</namespace>
* <className>org.jivesoftware.smackx.provider.ItemProvider</className>
* </extensionProvider>
- *
+ *
*
- *
+ *
* @author Robin Collier
*/
public abstract class EmbeddedExtensionProviderExtensionElementProvider
interface.
- *
+ *
* @param elementName Element that provider parses.
* @param namespace Namespace that provider parses.
* @param extProvider The provider implementation.
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/provider/IQProviderInfo.java b/smack-core/src/main/java/org/jivesoftware/smack/provider/IQProviderInfo.java
index a08f31eb7..abb14a62f 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/provider/IQProviderInfo.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/provider/IQProviderInfo.java
@@ -21,7 +21,7 @@ import org.jivesoftware.smack.packet.IQ;
/**
* Defines the information required to register an IQ Provider with the {@link ProviderManager} when using the
* {@link ProviderLoader}.
- *
+ *
* @author Robin Collier
*
*/
@@ -29,7 +29,7 @@ public final class IQProviderInfo extends AbstractProviderInfo {
/**
* Defines an IQ provider which implements the IQProvider
interface.
- *
+ *
* @param elementName Element that provider parses.
* @param namespace Namespace that provider parses.
* @param iqProvider The provider implementation.
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java b/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java
index 87250c50f..082855463 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/provider/Provider.java
@@ -29,7 +29,7 @@ import org.xmlpull.v1.XmlPullParser;
* element does not follow the specification, for example by putting a string where only integers are allowed, then a
* {@link org.jivesoftware.smack.SmackException} should be thrown.
* ProviderManager
.
- *
+ *
* @return The extension provider info to load.
*/
CollectionStreamFeatureProvider
interface.
- *
+ *
* @param elementName Element that provider parses.
* @param namespace Namespace that provider parses.
* @param extProvider The provider implementation.
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/proxy/HTTPProxySocketConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/proxy/HTTPProxySocketConnection.java
index 39288f7db..cd1000c15 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/proxy/HTTPProxySocketConnection.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/proxy/HTTPProxySocketConnection.java
@@ -30,7 +30,7 @@ import org.jivesoftware.smack.util.stringencoder.Base64;
/**
* HTTP Proxy Socket Connection which connects the socket using a HTTP Proxy.
- *
+ *
* @author Atul Aggarwal
*/
class HTTPProxySocketConnection implements ProxySocketConnection {
@@ -92,7 +92,7 @@ class HTTPProxySocketConnection implements ProxySocketConnection {
if (nlchars != 4) {
throw new ProxyException(ProxyInfo.ProxyType.HTTP, "Never " +
- "received blank line from "
+ "received blank line from "
+ proxyhost + ", cancelling connection");
}
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyException.java b/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyException.java
index 2efa4aa26..76741c31b 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyException.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyException.java
@@ -20,12 +20,12 @@ import java.io.IOException;
/**
* An exception class to handle exceptions caused by proxy.
- *
+ *
* @author Atul Aggarwal
*/
public class ProxyException extends IOException {
/**
- *
+ *
*/
private static final long serialVersionUID = 1L;
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyInfo.java b/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyInfo.java
index af5855271..005101190 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyInfo.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/proxy/ProxyInfo.java
@@ -17,9 +17,9 @@
package org.jivesoftware.smack.proxy;
/**
- * Class which stores proxy information such as proxy type, host, port,
+ * Class which stores proxy information such as proxy type, host, port,
* authentication etc.
- *
+ *
* @author Atul Aggarwal
*/
@@ -37,7 +37,7 @@ public class ProxyInfo {
private ProxyType proxyType;
private final ProxySocketConnection proxySocketConnection;
- public ProxyInfo(ProxyType pType, String pHost, int pPort, String pUser,
+ public ProxyInfo(ProxyType pType, String pHost, int pPort, String pUser,
String pPass) {
this.proxyType = pType;
this.proxyAddress = pHost;
@@ -59,17 +59,17 @@ public class ProxyInfo {
}
}
- public static ProxyInfo forHttpProxy(String pHost, int pPort, String pUser,
+ public static ProxyInfo forHttpProxy(String pHost, int pPort, String pUser,
String pPass) {
return new ProxyInfo(ProxyType.HTTP, pHost, pPort, pUser, pPass);
}
- public static ProxyInfo forSocks4Proxy(String pHost, int pPort, String pUser,
+ public static ProxyInfo forSocks4Proxy(String pHost, int pPort, String pUser,
String pPass) {
return new ProxyInfo(ProxyType.SOCKS4, pHost, pPort, pUser, pPass);
}
- public static ProxyInfo forSocks5Proxy(String pHost, int pPort, String pUser,
+ public static ProxyInfo forSocks5Proxy(String pHost, int pPort, String pUser,
String pPass) {
return new ProxyInfo(ProxyType.SOCKS5, pHost, pPort, pUser, pPass);
}
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks4ProxySocketConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks4ProxySocketConnection.java
index 34c58376b..cf35fb788 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks4ProxySocketConnection.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks4ProxySocketConnection.java
@@ -27,7 +27,7 @@ import org.jivesoftware.smack.util.StringUtils;
/**
* Socket factory for socks4 proxy.
- *
+ *
* @author Atul Aggarwal
*/
public class Socks4ProxySocketConnection implements ProxySocketConnection {
@@ -101,7 +101,7 @@ public class Socks4ProxySocketConnection implements ProxySocketConnection {
consulting IDENT, cf. RFC 1413. If the request is granted, the SOCKS
server makes a connection to the specified port of the destination host.
A reply packet is sent to the client when this connection is established,
- or when the request is rejected or the operation fails.
+ or when the request is rejected or the operation fails.
+----+----+----+----+----+----+----+----+
| VN | CD | DSTPORT | DSTIP |
@@ -126,13 +126,13 @@ public class Socks4ProxySocketConnection implements ProxySocketConnection {
while (s < len) {
int i = in.read(buf, s, len - s);
if (i <= 0) {
- throw new ProxyException(ProxyInfo.ProxyType.SOCKS4,
+ throw new ProxyException(ProxyInfo.ProxyType.SOCKS4,
"stream is closed");
}
s += i;
}
if (buf[0] != 0) {
- throw new ProxyException(ProxyInfo.ProxyType.SOCKS4,
+ throw new ProxyException(ProxyInfo.ProxyType.SOCKS4,
"server returns VN " + buf[0]);
}
if (buf[1] != 90) {
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks5ProxySocketConnection.java b/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks5ProxySocketConnection.java
index 9951c13b2..b3f62f19f 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks5ProxySocketConnection.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/proxy/Socks5ProxySocketConnection.java
@@ -26,7 +26,7 @@ import org.jivesoftware.smack.util.StringUtils;
/**
* Socket factory for Socks5 proxy.
- *
+ *
* @author Atul Aggarwal
*/
public class Socks5ProxySocketConnection implements ProxySocketConnection {
@@ -130,12 +130,12 @@ public class Socks5ProxySocketConnection implements ProxySocketConnection {
buf[index++] = 1;
buf[index++] = (byte) (user.length());
byte[] userBytes = user.getBytes(StringUtils.UTF8);
- System.arraycopy(userBytes, 0, buf, index,
+ System.arraycopy(userBytes, 0, buf, index,
user.length());
index += user.length();
byte[] passwordBytes = passwd.getBytes(StringUtils.UTF8);
buf[index++] = (byte) (passwordBytes.length);
- System.arraycopy(passwordBytes, 0, buf, index,
+ System.arraycopy(passwordBytes, 0, buf, index,
passwd.length());
index += passwd.length();
@@ -258,7 +258,7 @@ public class Socks5ProxySocketConnection implements ProxySocketConnection {
}
catch (Exception eee) {
}
- throw new ProxyException(ProxyInfo.ProxyType.SOCKS5,
+ throw new ProxyException(ProxyInfo.ProxyType.SOCKS5,
"server returns " + buf[1]);
}
@@ -290,7 +290,7 @@ public class Socks5ProxySocketConnection implements ProxySocketConnection {
}
}
- private static void fill(InputStream in, byte[] buf, int len)
+ private static void fill(InputStream in, byte[] buf, int len)
throws IOException {
int s = 0;
while (s < len) {
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLErrorException.java b/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLErrorException.java
index 528086f95..be0dfc503 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLErrorException.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLErrorException.java
@@ -25,7 +25,7 @@ import org.jivesoftware.smack.sasl.packet.SaslStreamElements.SASLFailure;
public class SASLErrorException extends XMPPException {
/**
- *
+ *
*/
private static final long serialVersionUID = 6247573875760717257L;
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java b/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java
index 914b177cb..d3aede72c 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/sasl/SASLMechanism.java
@@ -62,7 +62,7 @@ public abstract class SASLMechanism implements Comparablejava.text.Normalizer.normalize(string, Form.NFKC);
* null
or an
* empty array here.
- *
+ *
* @return the initial response or null
* @throws SmackException
*/
@@ -313,7 +313,7 @@ public abstract class SASLMechanism implements Comparable
* {@code *- * + * * from https://developers.google.com/cloud-print/docs/rawxmpp and here - * + * ** } *
* {@code *- * + * * from https://developers.google.com/talk/jep_extensions/oauth ** } *
* Those attribute extensions are currently not supported by Smack, and it's unclear how it affects authorization and diff --git a/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramHmac.java b/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramHmac.java index d893bdcdb..dbc48c6b4 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramHmac.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramHmac.java @@ -24,7 +24,7 @@ public interface ScramHmac { /** * RFC 5802 § 2.2 HMAC(key, str). - * + * * @param key * @param str * @return the HMAC-SHA1 value of the input. diff --git a/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramMechanism.java b/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramMechanism.java index e7a96bdf5..c45065f40 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramMechanism.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramMechanism.java @@ -262,7 +262,7 @@ public abstract class ScramMechanism extends SASLMechanism { } /** - * + * * @return the Channel Binding data. * @throws SmackException */ @@ -356,11 +356,11 @@ public abstract class ScramMechanism extends SASLMechanism { /** * RFC 5802 § 2.2 HMAC(key, str) - * + * * @param key * @param str * @return the HMAC-SHA1 value of the input. - * @throws SmackException + * @throws SmackException */ private byte[] hmac(byte[] key, byte[] str) throws SmackException { try { @@ -377,12 +377,12 @@ public abstract class ScramMechanism extends SASLMechanism { * Hi() is, essentially, PBKDF2 [RFC2898] with HMAC() as the pseudorandom function * (PRF) and with dkLen == output length of HMAC() == output length of H(). *
- * + * * @param normalizedPassword the normalized password. * @param salt * @param iterations * @return the result of the Hi function. - * @throws SmackException + * @throws SmackException */ private byte[] hi(String normalizedPassword, byte[] salt, int iterations) throws SmackException { byte[] key; diff --git a/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramPlusMechanism.java b/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramPlusMechanism.java index be5d5a862..bbd4d8217 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramPlusMechanism.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/sasl/core/ScramPlusMechanism.java @@ -28,7 +28,7 @@ import org.jivesoftware.smack.util.TLSUtils; * SCRAM-X-PLUS implementation. Due limitations of the Java API, this mechanism only supports the 'tls-server-end-point' * channel binding type. But on the other hand, the other relevant channel binding type 'tls-unique' has some flaws (see * 3SHAKE, RFC 7627). - * + * * @author Florian Schmaus */ public abstract class ScramPlusMechanism extends ScramMechanism { diff --git a/smack-core/src/main/java/org/jivesoftware/smack/sasl/packet/SaslStreamElements.java b/smack-core/src/main/java/org/jivesoftware/smack/sasl/packet/SaslStreamElements.java index a0bca0c4a..2b203f10d 100644 --- a/smack-core/src/main/java/org/jivesoftware/smack/sasl/packet/SaslStreamElements.java +++ b/smack-core/src/main/java/org/jivesoftware/smack/sasl/packet/SaslStreamElements.java @@ -154,7 +154,7 @@ public class SaslStreamElements { /** * Construct a new SASL success stream element with optional additional data for the SASL layer. * (RFC6120 6.3.10) - * + * * @param data additional data for the SASL layer ornull
*/
public Success(String data) {
@@ -163,7 +163,7 @@ public class SaslStreamElements {
/**
* Returns additional data for the SASL layer or null
.
- *
+ *
* @return additional data or null
*/
public String getData() {
@@ -220,7 +220,7 @@ public class SaslStreamElements {
/**
* Get the SASL related error condition.
- *
+ *
* @return the SASL related error condition.
*/
public SASLError getSASLError() {
diff --git a/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java b/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java
index a38063c4d..d0b9ff343 100644
--- a/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java
+++ b/smack-core/src/main/java/org/jivesoftware/smack/util/ArrayBlockingQueueWithShutdown.java
@@ -32,7 +32,7 @@ import java.util.concurrent.locks.ReentrantLock;
*
* Based on ArrayBlockingQueue of OpenJDK by Doug Lea (who released ArrayBlockingQueue as public
* domain).
- *
+ *
* @param getText()
if the parser is on START_TAG or END_TAG. So you must not rely on this
* behavior when using the parser.
*
getText()
if the parser is on START_TAG or END_TAG. So you must not rely on this
* behavior when using the parser.
*
- *
+ *
* @param reader
* @return A suitable XmlPullParser for XMPP parsing
* @throws XmlPullParserException
@@ -214,7 +214,7 @@ public class PacketParserUtils {
*
* @param parser the XML parser, positioned at the start of a message packet.
* @return a Message packet.
- * @throws Exception
+ * @throws Exception
*/
public static Message parseMessage(XmlPullParser parser)
throws Exception {
@@ -291,7 +291,7 @@ public class PacketParserUtils {
*
* This method is used for the parts where the XMPP specification requires elements that contain
* only text or are the empty element.
- *
+ *
* @param parser
* @return the textual content of the element as String
* @throws XmlPullParserException
@@ -362,7 +362,7 @@ public class PacketParserUtils {
* closing tag of the same depth is returned as String.
*
* Note that only the outermost namespace attributes ("xmlns") will be returned, not nested ones.
- *
+ *
* @param parser the XML pull parser
* @return the content of a tag
* @throws XmlPullParserException if parser encounters invalid XML
@@ -399,7 +399,7 @@ public class PacketParserUtils {
* * In particular Android's XmlPullParser does not support XML_ROUNDTRIP. *
- * + * * @param parser * @param depth * @param fullNamespaces @@ -499,7 +499,7 @@ public class PacketParserUtils { * * @param parser the XML parser, positioned at the start of a presence packet. * @return a Presence packet. - * @throws Exception + * @throws Exception */ public static Presence parsePresence(XmlPullParser parser) throws Exception { @@ -662,8 +662,8 @@ public class PacketParserUtils { * * @param parser the XML parser, positioned at the start of the mechanisms stanza. * @return a collection of Stings with the mechanisms included in the mechanisms stanza. - * @throws IOException - * @throws XmlPullParserException + * @throws IOException + * @throws XmlPullParserException */ public static Collection P getSentPacket() {
@@ -152,7 +152,7 @@ public class DummyConnection extends AbstractXMPPConnection {
* and that has not been returned by earlier calls to this method. This
* method will block for up to the specified number of seconds if no packets
* have been sent yet.
- *
+ *
* @return a sent packet.
*/
@SuppressWarnings("unchecked")
diff --git a/smack-core/src/test/java/org/jivesoftware/smack/StanzaCollectorTest.java b/smack-core/src/test/java/org/jivesoftware/smack/StanzaCollectorTest.java
index 2b6884042..27821a6bf 100644
--- a/smack-core/src/test/java/org/jivesoftware/smack/StanzaCollectorTest.java
+++ b/smack-core/src/test/java/org/jivesoftware/smack/StanzaCollectorTest.java
@@ -142,7 +142,7 @@ public class StanzaCollectorTest {
consumer1.interrupt();
} catch (InterruptedException e) {
}
- // We cannot guarantee that this is going to pass due to the possible issue of timing between consumer 1
+ // We cannot guarantee that this is going to pass due to the possible issue of timing between consumer 1
// and main, but the probability is extremely remote.
assertNull(collector.pollResult());
}
diff --git a/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java b/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java
index 75c7c6553..02fbd9739 100644
--- a/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java
+++ b/smack-core/src/test/java/org/jivesoftware/smack/ThreadedDummyConnection.java
@@ -68,7 +68,7 @@ public class ThreadedDummyConnection extends DummyConnection {
/**
* Calling this method will cause the next sendStanza call with an IQ stanza to timeout.
- * This is accomplished by simply stopping the auto creating of the reply stanza
+ * This is accomplished by simply stopping the auto creating of the reply stanza
* or processing one that was entered via {@link #processStanza(Stanza)}.
*/
public void setTimeout() {
diff --git a/smack-core/src/test/java/org/jivesoftware/smack/packet/IQResponseTest.java b/smack-core/src/test/java/org/jivesoftware/smack/packet/IQResponseTest.java
index edc500db3..c0a982188 100644
--- a/smack-core/src/test/java/org/jivesoftware/smack/packet/IQResponseTest.java
+++ b/smack-core/src/test/java/org/jivesoftware/smack/packet/IQResponseTest.java
@@ -27,7 +27,7 @@ import org.jxmpp.stringprep.XmppStringprepException;
/**
* Tests that verifies the correct behavior of creating result and error IQ packets.
- *
+ *
* @see IQ Semantics
* @author Guenther Niess
*/
@@ -38,7 +38,7 @@ public class IQResponseTest {
/**
* Test creating a simple and empty IQ response.
- * @throws XmppStringprepException
+ * @throws XmppStringprepException
*/
@Test
public void testGeneratingSimpleResponse() throws XmppStringprepException {
@@ -58,7 +58,7 @@ public class IQResponseTest {
/**
* Test creating a error response based on an IQ request.
- * @throws XmppStringprepException
+ * @throws XmppStringprepException
*/
@Test
public void testGeneratingValidErrorResponse() throws XmppStringprepException {
@@ -83,7 +83,7 @@ public class IQResponseTest {
/**
* According to RFC3920: IQ Semantics we shouldn't respond to an IQ of type result.
- * @throws XmppStringprepException
+ * @throws XmppStringprepException
*/
@Test
public void testGeneratingResponseBasedOnResult() throws XmppStringprepException {
@@ -106,7 +106,7 @@ public class IQResponseTest {
/**
* According to RFC3920: IQ Semantics we shouldn't respond to an IQ of type error.
- * @throws XmppStringprepException
+ * @throws XmppStringprepException
*/
@Test
public void testGeneratingErrorBasedOnError() throws XmppStringprepException {
diff --git a/smack-core/src/test/java/org/jivesoftware/smack/packet/XMPPErrorTest.java b/smack-core/src/test/java/org/jivesoftware/smack/packet/XMPPErrorTest.java
index b7ec7479b..c2807ad77 100644
--- a/smack-core/src/test/java/org/jivesoftware/smack/packet/XMPPErrorTest.java
+++ b/smack-core/src/test/java/org/jivesoftware/smack/packet/XMPPErrorTest.java
@@ -1,35 +1,35 @@
-/**
- *
- * Copyright © 2017 Ingo Bauersachs
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-package org.jivesoftware.smack.packet;
-
-import static org.jivesoftware.smack.packet.StanzaError.Condition;
-import static org.jivesoftware.smack.packet.StanzaError.Type;
-import static org.junit.Assert.assertEquals;
-
-import java.util.Map;
-
-import org.junit.Test;
-
-public class XMPPErrorTest {
- @Test
- public void testConditionHasDefaultTypeMapping() throws NoSuchFieldException, IllegalAccessException {
- Map
* It accomplishes this by wrapping a {@link Forwarded} stanza in a sent
* or received element
@@ -41,7 +41,7 @@ public class CarbonExtension implements ExtensionElement {
/**
* Construct a Carbon message extension.
- *
+ *
* @param dir Determines if the carbon is being sent/received
* @param fwd The forwarded message.
*/
@@ -130,7 +130,7 @@ public class CarbonExtension implements ExtensionElement {
/**
* Stanza extension indicating that a message may not be carbon-copied. Adding this
- * extension to any message will disallow that message from being copied.
+ * extension to any message will disallow that message from being copied.
*/
public static final class Private implements ExtensionElement {
public static final Private INSTANCE = new Private();
@@ -157,7 +157,7 @@ public class CarbonExtension implements ExtensionElement {
/**
* Marks a message "private", so that it will not be carbon-copied, by adding private packet
* extension to the message.
- *
+ *
* @param message the message to add the private extension to
*/
public static void addTo(Message message) {
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/carbons/provider/CarbonManagerProvider.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/carbons/provider/CarbonManagerProvider.java
index d99948f0e..60e5e1e0e 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/carbons/provider/CarbonManagerProvider.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/carbons/provider/CarbonManagerProvider.java
@@ -29,7 +29,7 @@ import org.xmlpull.v1.XmlPullParser;
/**
* This class implements the {@link ExtensionElementProvider} to parse
* carbon copied messages from a packet. It will return a {@link CarbonExtension} stanza extension.
- *
+ *
* @author Georg Lukas
*
*/
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java
index 2749b5a75..a7c03798f 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/ChatMarkersManager.java
@@ -32,11 +32,11 @@ import org.jivesoftware.smackx.disco.ServiceDiscoveryManager;
/**
* Chat Markers Manager class (XEP-0333).
- *
+ *
* @see XEP-0333: Chat
* Markers
* @author Fernando Ramirez
- *
+ *
*/
public final class ChatMarkersManager extends Manager {
@@ -53,7 +53,7 @@ public final class ChatMarkersManager extends Manager {
/**
* Get the singleton instance of ChatMarkersManager.
- *
+ *
* @param connection
* @return the instance of ChatMarkersManager
*/
@@ -74,7 +74,7 @@ public final class ChatMarkersManager extends Manager {
/**
* Returns true if Chat Markers is supported by the server.
- *
+ *
* @return true if Chat Markers is supported by the server.
* @throws NotConnectedException
* @throws XMPPErrorException
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/ChatMarkersElements.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/ChatMarkersElements.java
index 342839d85..d058e55d1 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/ChatMarkersElements.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/ChatMarkersElements.java
@@ -22,11 +22,11 @@ import org.jivesoftware.smack.util.XmlStringBuilder;
/**
* Chat Markers elements (XEP-0333).
- *
+ *
* @see XEP-0333: Chat
* Markers
* @author Fernando Ramirez
- *
+ *
*/
public class ChatMarkersElements {
@@ -34,7 +34,7 @@ public class ChatMarkersElements {
/**
* Markable extension class.
- *
+ *
* @see XEP-0333: Chat
* Markers
* @author Fernando Ramirez
@@ -74,7 +74,7 @@ public class ChatMarkersElements {
/**
* Received extension class.
- *
+ *
* @see XEP-0333: Chat
* Markers
* @author Fernando Ramirez
@@ -95,7 +95,7 @@ public class ChatMarkersElements {
/**
* Get the id.
- *
+ *
* @return the id
*/
public String getId() {
@@ -127,7 +127,7 @@ public class ChatMarkersElements {
/**
* Displayed extension class.
- *
+ *
* @see XEP-0333: Chat
* Markers
* @author Fernando Ramirez
@@ -148,7 +148,7 @@ public class ChatMarkersElements {
/**
* Get the id.
- *
+ *
* @return the id
*/
public String getId() {
@@ -180,7 +180,7 @@ public class ChatMarkersElements {
/**
* Acknowledged extension class.
- *
+ *
* @see XEP-0333: Chat
* Markers
* @author Fernando Ramirez
@@ -201,7 +201,7 @@ public class ChatMarkersElements {
/**
* Get the id.
- *
+ *
* @return the id
*/
public String getId() {
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/package-info.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/package-info.java
index 6a919f016..9ac78d113 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/package-info.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/element/package-info.java
@@ -16,9 +16,9 @@
*/
/**
* Chat Markers elements (XEP-0333).
- *
+ *
* @see XEP-0333: Chat
* Markers
- *
+ *
*/
package org.jivesoftware.smackx.chat_markers.element;
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/package-info.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/package-info.java
index 72fb0c8e5..21bd5cefb 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/package-info.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/package-info.java
@@ -16,9 +16,9 @@
*/
/**
* XEP-0333: Chat Markers.
- *
+ *
* @see XEP-0333: Chat
* Markers
- *
+ *
*/
package org.jivesoftware.smackx.chat_markers;
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/provider/AcknowledgedProvider.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/provider/AcknowledgedProvider.java
index aaee88c72..db5e6505f 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/provider/AcknowledgedProvider.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/chat_markers/provider/AcknowledgedProvider.java
@@ -24,11 +24,11 @@ import org.xmlpull.v1.XmlPullParser;
/**
* Acknowledged extension provider class (XEP-0333).
- *
+ *
* @see XEP-0333: Chat
* Markers
* @author Fernando Ramirez
- *
+ *
*/
public class AcknowledgedProvider extends ExtensionElementProvider
* {@link Socks5BytestreamListener} or {@link InBandBytestreamListener} provide a more specific
* interface of the BytestreamListener.
- *
+ *
* @author Henning Staib
*/
public interface BytestreamListener {
/**
* This listener is notified if a bytestream request from another user has been received.
- *
+ *
* @param request the incoming bytestream request
*/
void incomingBytestreamRequest(BytestreamRequest request);
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamManager.java
index 4bb457854..eb9e6087e 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamManager.java
@@ -31,7 +31,7 @@ import org.jxmpp.jid.Jid;
*
* There are two implementations of the interface. See {@link Socks5BytestreamManager} and
* {@link InBandBytestreamManager}.
- *
+ *
* @author Henning Staib
*/
public interface BytestreamManager {
@@ -43,14 +43,14 @@ public interface BytestreamManager {
* See {@link Socks5BytestreamManager#addIncomingBytestreamListener(BytestreamListener)} and
* {@link InBandBytestreamManager#addIncomingBytestreamListener(BytestreamListener)} for further
* details.
- *
+ *
* @param listener the listener to register
*/
void addIncomingBytestreamListener(BytestreamListener listener);
/**
* Removes the given listener from the list of listeners for all incoming bytestream requests.
- *
+ *
* @param listener the listener to remove
*/
void removeIncomingBytestreamListener(BytestreamListener listener);
@@ -64,7 +64,7 @@ public interface BytestreamManager {
* See {@link Socks5BytestreamManager#addIncomingBytestreamListener(BytestreamListener, Jid)}
* and {@link InBandBytestreamManager#addIncomingBytestreamListener(BytestreamListener, Jid)}
* for further details.
- *
+ *
* @param listener the listener to register
* @param initiatorJID the JID of the user that wants to establish a bytestream
*/
@@ -72,7 +72,7 @@ public interface BytestreamManager {
/**
* Removes the listener for the given user.
- *
+ *
* @param initiatorJID the JID of the user the listener should be removed
*/
void removeIncomingBytestreamListener(Jid initiatorJID);
@@ -89,7 +89,7 @@ public interface BytestreamManager {
*
* See {@link Socks5BytestreamManager#establishSession(Jid)} and
* {@link InBandBytestreamManager#establishSession(Jid)} for further details.
- *
+ *
* @param targetJID the JID of the user a bytestream should be established
* @return the session to send/receive data to/from the user
* @throws XMPPException if an error occurred while establishing the session
@@ -107,7 +107,7 @@ public interface BytestreamManager {
*
* See {@link Socks5BytestreamManager#establishSession(Jid)} and
* {@link InBandBytestreamManager#establishSession(Jid)} for further details.
- *
+ *
* @param targetJID the JID of the user a bytestream should be established
* @param sessionID the session ID for the bytestream request
* @return the session to send/receive data to/from the user
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamRequest.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamRequest.java
index d4b8cba36..5c2a81d3e 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamRequest.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamRequest.java
@@ -31,41 +31,41 @@ import org.jxmpp.jid.Jid;
*
* There are two implementations of the interface. See {@link Socks5BytestreamRequest} and
* {@link InBandBytestreamRequest}.
- *
+ *
* @author Henning Staib
*/
public interface BytestreamRequest {
/**
* Returns the sender of the bytestream open request.
- *
+ *
* @return the sender of the bytestream open request
*/
Jid getFrom();
/**
* Returns the session ID of the bytestream open request.
- *
+ *
* @return the session ID of the bytestream open request
*/
String getSessionID();
/**
* Accepts the bytestream open request and returns the session to send/receive data.
- *
+ *
* @return the session to send/receive data
* @throws XMPPErrorException if an error occurred while accepting the bytestream request
* @throws InterruptedException if the thread was interrupted while waiting in a blocking
* operation
- * @throws NoResponseException
- * @throws SmackException
+ * @throws NoResponseException
+ * @throws SmackException
*/
BytestreamSession accept() throws InterruptedException, XMPPErrorException, SmackException;
/**
* Rejects the bytestream request by sending a reject error to the initiator.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
void reject() throws NotConnectedException, InterruptedException;
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamSession.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamSession.java
index ccac7fc55..f0d9ce8e5 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamSession.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/BytestreamSession.java
@@ -28,14 +28,14 @@ import org.jivesoftware.smackx.bytestreams.socks5.Socks5BytestreamSession;
*
* There are two implementations of the interface. See {@link Socks5BytestreamSession} and
* {@link InBandBytestreamSession}.
- *
+ *
* @author Henning Staib
*/
public interface BytestreamSession {
/**
* Returns the InputStream associated with this session to send data.
- *
+ *
* @return the InputStream associated with this session to send data
* @throws IOException if an error occurs while retrieving the input stream
*/
@@ -43,7 +43,7 @@ public interface BytestreamSession {
/**
* Returns the OutputStream associated with this session to receive data.
- *
+ *
* @return the OutputStream associated with this session to receive data
* @throws IOException if an error occurs while retrieving the output stream
*/
@@ -54,7 +54,7 @@ public interface BytestreamSession {
*
* Closing the session will also close the input stream and the output stream associated to this
* session.
- *
+ *
* @throws IOException if an error occurs while closing the session
*/
void close() throws IOException;
@@ -62,7 +62,7 @@ public interface BytestreamSession {
/**
* Returns the timeout for read operations of the input stream associated with this session. 0
* returns implies that the option is disabled (i.e., timeout of infinity). Default is 0.
- *
+ *
* @return the timeout for read operations
* @throws IOException if there is an error in the underlying protocol
*/
@@ -75,7 +75,7 @@ public interface BytestreamSession {
* session is still valid. The option must be enabled prior to entering the blocking operation
* to have effect. The timeout must be > 0. A timeout of zero is interpreted as an infinite
* timeout. Default is 0.
- *
+ *
* @param timeout the specified timeout, in milliseconds
* @throws IOException if there is an error in the underlying protocol
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListener.java
index b61aae330..825eeaa9f 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListener.java
@@ -28,7 +28,7 @@ import org.jivesoftware.smackx.bytestreams.ibb.packet.Close;
* If a close request is received it looks if a stored In-Band Bytestream
* session exists and closes it. If no session with the given session ID exists
* an <item-not-found/> error is returned to the sender.
- *
+ *
* @author Henning Staib
*/
class CloseListener extends AbstractIqRequestHandler {
@@ -38,7 +38,7 @@ class CloseListener extends AbstractIqRequestHandler {
/**
* Constructor.
- *
+ *
* @param manager the In-Band Bytestream manager
*/
protected CloseListener(InBandBytestreamManager manager) {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/DataListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/DataListener.java
index 99380d60c..09d3f58b0 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/DataListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/DataListener.java
@@ -35,7 +35,7 @@ import org.jivesoftware.smackx.bytestreams.ibb.packet.DataPacketExtension;
* Data packets belonging to a running In-Band Bytestream session are processed
* by more specific listeners registered when an {@link InBandBytestreamSession}
* is created.
- *
+ *
* @author Henning Staib
*/
class DataListener extends AbstractIqRequestHandler {
@@ -45,7 +45,7 @@ class DataListener extends AbstractIqRequestHandler {
/**
* Constructor.
- *
+ *
* @param manager the In-Band Bytestream manager
*/
DataListener(InBandBytestreamManager manager) {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamListener.java
index cc69e7e74..aba1d94d7 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamListener.java
@@ -27,7 +27,7 @@ import org.jivesoftware.smackx.bytestreams.BytestreamRequest;
* {@link InBandBytestreamManager#addIncomingBytestreamListener(BytestreamListener)} and
* {@link InBandBytestreamManager#addIncomingBytestreamListener(BytestreamListener, org.jxmpp.jid.Jid)} for
* further details.
- *
+ *
* @author Henning Staib
*/
public abstract class InBandBytestreamListener implements BytestreamListener {
@@ -42,7 +42,7 @@ public abstract class InBandBytestreamListener implements BytestreamListener {
/**
* This listener is notified if an In-Band Bytestream request from another user has been
* received.
- *
+ *
* @param request the incoming In-Band Bytestream request
*/
public abstract void incomingBytestreamRequest(InBandBytestreamRequest request);
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java
index 1ab8a0447..8cd93ca10 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManager.java
@@ -79,7 +79,7 @@ import org.jxmpp.jid.Jid;
*
* If no {@link InBandBytestreamListener}s are registered, all incoming In-Band bytestream requests
* will be rejected by returning a <not-acceptable/> error to the initiator.
- *
+ *
* @author Henning Staib
*/
public final class InBandBytestreamManager extends Manager implements BytestreamManager {
@@ -186,7 +186,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Returns the InBandBytestreamManager to handle In-Band Bytestreams for a given
* {@link XMPPConnection}.
- *
+ *
* @param connection the XMPP connection
* @return the InBandBytestreamManager for the given XMPP connection
*/
@@ -203,7 +203,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Constructor.
- *
+ *
* @param connection the XMPP connection
*/
private InBandBytestreamManager(XMPPConnection connection) {
@@ -233,7 +233,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
* Socks5 bytestream requests sent in the context of XEP-0096 file transfer. (See
* {@link FileTransferManager})
- *
+ *
* @param listener the listener to register
*/
@Override
@@ -244,7 +244,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Removes the given listener from the list of listeners for all incoming In-Band Bytestream
* requests.
- *
+ *
* @param listener the listener to remove
*/
@Override
@@ -266,7 +266,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
* Socks5 bytestream requests sent in the context of XEP-0096 file transfer. (See
* {@link FileTransferManager})
- *
+ *
* @param listener the listener to register
* @param initiatorJID the JID of the user that wants to establish an In-Band Bytestream
*/
@@ -277,7 +277,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Removes the listener for the given user.
- *
+ *
* @param initiatorJID the JID of the user the listener should be removed
*/
@Override
@@ -292,7 +292,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
*
* This method should be used if you are awaiting an In-Band Bytestream request as a reply to
* another stanza (e.g. file transfer).
- *
+ *
* @param sessionID to be ignored
*/
public void ignoreBytestreamRequestOnce(String sessionID) {
@@ -305,7 +305,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
*
* The recommended default block size is 4096 bytes. See XEP-0047 Section 5.
- *
+ *
* @return the default block size
*/
public int getDefaultBlockSize() {
@@ -319,7 +319,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
* The default block size must be between 1 and 65535 bytes. The recommended default block size
* is 4096 bytes. See XEP-0047
* Section 5.
- *
+ *
* @param defaultBlockSize the default block size to set
*/
public void setDefaultBlockSize(int defaultBlockSize) {
@@ -338,7 +338,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
* block size.
*
* The default maximum block size is 65535 bytes.
- *
+ *
* @return the maximum block size
*/
public int getMaximumBlockSize() {
@@ -353,7 +353,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
* Incoming In-Band Bytestream open request will be rejected with an
* <resource-constraint/> error if the block size is greater then the maximum allowed
* block size.
- *
+ *
* @param maximumBlockSize the maximum block size to set
*/
public void setMaximumBlockSize(int maximumBlockSize) {
@@ -369,7 +369,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
*
* Default is {@link StanzaType#IQ}. See XEP-0047 Section 4.
- *
+ *
* @return the stanza used to send data packets
*/
public StanzaType getStanza() {
@@ -381,7 +381,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
*
* The use of {@link StanzaType#IQ} is recommended. See XEP-0047 Section 4.
- *
+ *
* @param stanza the stanza to set
*/
public void setStanza(StanzaType stanza) {
@@ -398,13 +398,13 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
*
* To establish an In-Band Bytestream after negotiation the kind of data to be sent (e.g. file
* transfer) use {@link #establishSession(Jid, String)}.
- *
+ *
* @param targetJID the JID of the user an In-Band Bytestream should be established
* @return the session to send/receive data to/from the user
* @throws XMPPException if the user doesn't support or accept in-band bytestreams, or if the
* user prefers smaller block sizes
* @throws SmackException if there was no response from the server.
- * @throws InterruptedException
+ * @throws InterruptedException
*/
@Override
public InBandBytestreamSession establishSession(Jid targetJID) throws XMPPException, SmackException, InterruptedException {
@@ -415,15 +415,15 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Establishes an In-Band Bytestream with the given user using the given session ID and returns
* the session to send/receive data to/from the user.
- *
+ *
* @param targetJID the JID of the user an In-Band Bytestream should be established
* @param sessionID the session ID for the In-Band Bytestream request
* @return the session to send/receive data to/from the user
* @throws XMPPErrorException if the user doesn't support or accept in-band bytestreams, or if the
* user prefers smaller block sizes
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
@Override
public InBandBytestreamSession establishSession(Jid targetJID, String sessionID)
@@ -446,10 +446,10 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Responses to the given IQ packet's sender with an XMPP error that an In-Band Bytestream is
* not accepted.
- *
+ *
* @param request IQ stanza that should be answered with a not-acceptable error
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
protected void replyRejectPacket(IQ request) throws NotConnectedException, InterruptedException {
IQ error = IQ.createErrorResponse(request, StanzaError.Condition.not_acceptable);
@@ -459,10 +459,10 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Responses to the given IQ packet's sender with an XMPP error that an In-Band Bytestream open
* request is rejected because its block size is greater than the maximum allowed block size.
- *
+ *
* @param request IQ stanza that should be answered with a resource-constraint error
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
protected void replyResourceConstraintPacket(IQ request) throws NotConnectedException, InterruptedException {
IQ error = IQ.createErrorResponse(request, StanzaError.Condition.resource_constraint);
@@ -472,10 +472,10 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Responses to the given IQ packet's sender with an XMPP error that an In-Band Bytestream
* session could not be found.
- *
+ *
* @param request IQ stanza that should be answered with a item-not-found error
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
protected void replyItemNotFoundPacket(IQ request) throws NotConnectedException, InterruptedException {
IQ error = IQ.createErrorResponse(request, StanzaError.Condition.item_not_found);
@@ -484,7 +484,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Returns a new unique session ID.
- *
+ *
* @return a new unique session ID
*/
private static String getNextSessionID() {
@@ -496,7 +496,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Returns the XMPP connection.
- *
+ *
* @return the XMPP connection
*/
protected XMPPConnection getConnection() {
@@ -506,7 +506,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Returns the {@link InBandBytestreamListener} that should be informed if a In-Band Bytestream
* request from the given initiator JID is received.
- *
+ *
* @param initiator the initiator's JID
* @return the listener
*/
@@ -517,7 +517,7 @@ public final class InBandBytestreamManager extends Manager implements Bytestream
/**
* Returns a list of {@link InBandBytestreamListener} that are informed if there are no
* listeners for a specific initiator.
- *
+ *
* @return list of listeners
*/
protected List
* The data can be sent using IQ stanzas or message stanzas.
- *
+ *
* @param sessionID unique session ID identifying this In-Band Bytestream
* @param blockSize block size in which the data will be fragmented
* @param stanza stanza type used to encapsulate the data
@@ -77,7 +77,7 @@ public class Open extends IQ {
* 65535. A recommended default value is 4096.
*
* The data will be sent using IQ stanzas.
- *
+ *
* @param sessionID unique session ID identifying this In-Band Bytestream
* @param blockSize block size in which the data will be fragmented
*/
@@ -87,7 +87,7 @@ public class Open extends IQ {
/**
* Returns the unique session ID identifying this In-Band Bytestream.
- *
+ *
* @return the unique session ID identifying this In-Band Bytestream
*/
public String getSessionID() {
@@ -96,7 +96,7 @@ public class Open extends IQ {
/**
* Returns the block size in which the data will be fragmented.
- *
+ *
* @return the block size in which the data will be fragmented
*/
public int getBlockSize() {
@@ -105,7 +105,7 @@ public class Open extends IQ {
/**
* Returns the stanza type used to encapsulate the data.
- *
+ *
* @return the stanza type used to encapsulate the data
*/
public StanzaType getStanza() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/provider/CloseIQProvider.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/provider/CloseIQProvider.java
index a42233294..6e29aab9c 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/provider/CloseIQProvider.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/provider/CloseIQProvider.java
@@ -24,7 +24,7 @@ import org.xmlpull.v1.XmlPullParser;
/**
* Parses a close In-Band Bytestream packet.
- *
+ *
* @author Henning Staib
*/
public class CloseIQProvider extends IQProvider
* If no {@link Socks5BytestreamListener}s are registered, all incoming SOCKS5 Bytestream requests
* will be rejected by returning a <not-acceptable/> error to the initiator.
- *
+ *
* @author Henning Staib
*/
public final class Socks5BytestreamManager extends Manager implements BytestreamManager {
@@ -159,7 +159,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
* {@link XMPPConnection}.
*
* If no manager exists a new is created and initialized.
- *
+ *
* @param connection the XMPP connection or
* This method should be used if you are awaiting a SOCKS5 Bytestream request as a reply to
* another stanza (e.g. file transfer).
- *
+ *
* @param sessionID to be ignored
*/
public void ignoreBytestreamRequestOnce(String sessionID) {
@@ -310,7 +310,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Returns the timeout to wait for the response to the SOCKS5 Bytestream initialization request.
* Default is 10000ms.
- *
+ *
* @return the timeout to wait for the response to the SOCKS5 Bytestream initialization request
*/
public int getTargetResponseTimeout() {
@@ -323,7 +323,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Sets the timeout to wait for the response to the SOCKS5 Bytestream initialization request.
* Default is 10000ms.
- *
+ *
* @param targetResponseTimeout the timeout to set
*/
public void setTargetResponseTimeout(int targetResponseTimeout) {
@@ -333,7 +333,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Returns the timeout for connecting to the SOCKS5 proxy selected by the target. Default is
* 10000ms.
- *
+ *
* @return the timeout for connecting to the SOCKS5 proxy selected by the target
*/
public int getProxyConnectionTimeout() {
@@ -346,7 +346,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Sets the timeout for connecting to the SOCKS5 proxy selected by the target. Default is
* 10000ms.
- *
+ *
* @param proxyConnectionTimeout the timeout to set
*/
public void setProxyConnectionTimeout(int proxyConnectionTimeout) {
@@ -356,7 +356,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Returns if the prioritization of the last working SOCKS5 proxy on successive SOCKS5
* Bytestream connections is enabled. Default is
* To establish a SOCKS5 Bytestream after negotiation the kind of data to be sent (e.g. file
* transfer) use {@link #establishSession(Jid, String)}.
- *
+ *
* @param targetJID the JID of the user a SOCKS5 Bytestream should be established
* @return the Socket to send/receive data to/from the user
* @throws XMPPException if the user doesn't support or accept SOCKS5 Bytestreams, if no Socks5
@@ -403,14 +403,14 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Establishes a SOCKS5 Bytestream with the given user using the given session ID and returns
* the Socket to send/receive data to/from the user.
- *
+ *
* @param targetJID the JID of the user a SOCKS5 Bytestream should be established
* @param sessionID the session ID for the SOCKS5 Bytestream request
* @return the Socket to send/receive data to/from the user
* @throws IOException if the bytestream could not be established
* @throws InterruptedException if the current thread was interrupted while waiting
* @throws SmackException if the target does not support SOCKS5.
- * @throws XMPPException
+ * @throws XMPPException
*/
@Override
public Socks5BytestreamSession establishSession(Jid targetJID, String sessionID)
@@ -512,14 +512,14 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Returns
* Specified in XEP-65 5.3.1 (Example 13)
*
* Setting the connection failure threshold to zero disables the blacklisting.
- *
+ *
* @param connectFailureThreshold the number of connection failures it takes for a particular
* SOCKS5 proxy to be blacklisted
*/
@@ -100,7 +100,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Creates a new Socks5BytestreamRequest.
- *
+ *
* @param manager the SOCKS5 Bytestream manager
* @param bytestreamRequest the SOCKS5 Bytestream initialization packet
*/
@@ -118,7 +118,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
*
* You can set the minimum timeout for establishing a connection to one SOCKS5 proxy by invoking
* {@link #setMinimumConnectTimeout(int)}.
- *
+ *
* @return the maximum timeout to connect to SOCKS5 proxies
*/
public int getTotalConnectTimeout() {
@@ -137,7 +137,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
*
* You can set the minimum timeout for establishing a connection to one SOCKS5 proxy by invoking
* {@link #setMinimumConnectTimeout(int)}.
- *
+ *
* @param totalConnectTimeout the maximum timeout to connect to SOCKS5 proxies
*/
public void setTotalConnectTimeout(int totalConnectTimeout) {
@@ -147,7 +147,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Returns the timeout to connect to one SOCKS5 proxy while accepting the SOCKS5 Bytestream
* request. Default is 2000ms.
- *
+ *
* @return the timeout to connect to one SOCKS5 proxy
*/
public int getMinimumConnectTimeout() {
@@ -160,7 +160,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Sets the timeout to connect to one SOCKS5 proxy while accepting the SOCKS5 Bytestream
* request. Default is 2000ms.
- *
+ *
* @param minimumConnectTimeout the timeout to connect to one SOCKS5 proxy
*/
public void setMinimumConnectTimeout(int minimumConnectTimeout) {
@@ -169,7 +169,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Returns the sender of the SOCKS5 Bytestream initialization request.
- *
+ *
* @return the sender of the SOCKS5 Bytestream initialization request.
*/
@Override
@@ -179,7 +179,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Returns the session ID of the SOCKS5 Bytestream initialization request.
- *
+ *
* @return the session ID of the SOCKS5 Bytestream initialization request.
*/
@Override
@@ -193,11 +193,11 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
*
* Before accepting the SOCKS5 Bytestream request you can set timeouts by invoking
* {@link #setTotalConnectTimeout(int)} and {@link #setMinimumConnectTimeout(int)}.
- *
+ *
* @return the socket to send/receive data
* @throws InterruptedException if the current thread was interrupted while waiting
- * @throws XMPPErrorException
- * @throws SmackException
+ * @throws XMPPErrorException
+ * @throws SmackException
*/
@Override
public Socks5BytestreamSession accept() throws InterruptedException, XMPPErrorException, SmackException {
@@ -266,8 +266,8 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Rejects the SOCKS5 Bytestream request by sending a reject error to the initiator.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
@Override
public void reject() throws NotConnectedException, InterruptedException {
@@ -277,9 +277,9 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Cancels the SOCKS5 Bytestream request by sending an error to the initiator and building a
* XMPP exception.
- * @throws XMPPErrorException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
private void cancelRequest() throws XMPPErrorException, NotConnectedException, InterruptedException {
String errorMessage = "Could not establish socket with any provided host";
@@ -291,7 +291,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Returns the response to the SOCKS5 Bytestream request containing the SOCKS5 proxy used.
- *
+ *
* @param selectedHost the used SOCKS5 proxy
* @return the response to the SOCKS5 Bytestream request
*/
@@ -306,7 +306,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Increments the connection failure counter by one for the given address.
- *
+ *
* @param address the address the connection failure counter should be increased
*/
private static void incrementConnectionFailures(String address) {
@@ -316,7 +316,7 @@ public class Socks5BytestreamRequest implements BytestreamRequest {
/**
* Returns how often the connection to the given address failed.
- *
+ *
* @param address the address
* @return number of connection failures
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamSession.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamSession.java
index c44b85f2a..a75a1763f 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamSession.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamSession.java
@@ -26,7 +26,7 @@ import org.jivesoftware.smackx.bytestreams.BytestreamSession;
/**
* Socks5BytestreamSession class represents a SOCKS5 Bytestream session.
- *
+ *
* @author Henning Staib
*/
public class Socks5BytestreamSession implements BytestreamSession {
@@ -45,7 +45,7 @@ public class Socks5BytestreamSession implements BytestreamSession {
/**
* Returns
* (see RFC1928)
- *
+ *
* @return SOCKS5 connection request message
*/
private byte[] createSocks5ConnectRequest() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiator.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiator.java
index a81b87f6f..536aeaa23 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiator.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiator.java
@@ -39,7 +39,7 @@ import org.jxmpp.jid.Jid;
* to the local SOCKS5 proxy differs form the regular way to connect to a SOCKS5 proxy. Additionally
* a remote SOCKS5 proxy has to be activated by the initiator before data can be transferred between
* the peers.
- *
+ *
* @author Henning Staib
*/
public class Socks5ClientForInitiator extends Socks5Client {
@@ -56,7 +56,7 @@ public class Socks5ClientForInitiator extends Socks5Client {
/**
* Creates a new SOCKS5 client for the initiators side.
- *
+ *
* @param streamHost containing network settings of the SOCKS5 proxy
* @param digest identifying the SOCKS5 Bytestream
* @param connection the XMPP connection
@@ -107,10 +107,10 @@ public class Socks5ClientForInitiator extends Socks5Client {
/**
* Activates the SOCKS5 Bytestream by sending an XMPP SOCKS5 Bytestream activation stanza to the
* SOCKS5 proxy.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
* @throws SmackException if there was no response from the server.
*/
private void activate() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
@@ -121,7 +121,7 @@ public class Socks5ClientForInitiator extends Socks5Client {
/**
* Returns a SOCKS5 Bytestream activation packet.
- *
+ *
* @return SOCKS5 Bytestream activation packet
*/
private Bytestream createStreamHostActivation() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Proxy.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Proxy.java
index 88727c668..e97ea15e6 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Proxy.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Proxy.java
@@ -66,7 +66,7 @@ import org.jivesoftware.smack.util.StringUtils;
* with other address typesnull
as provisioningServer to use
* automatic discovery of the provisioning server (the default behavior).
- *
+ *
* @param provisioningServer
*/
public void setConfiguredProvisioningServer(Jid provisioningServer) {
@@ -300,7 +300,7 @@ public final class IoTProvisioningManager extends Manager {
/**
* Try to find a provisioning server component.
- *
+ *
* @return the XMPP address of the provisioning server component if one was found.
* @throws NoResponseException
* @throws XMPPErrorException
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/MamManager.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/MamManager.java
index 47b1dfd1d..04c3d3f32 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/MamManager.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/MamManager.java
@@ -58,12 +58,12 @@ import org.jxmpp.util.XmppDateTime;
/**
* A Manager for Message Archive Management (XEP-0313).
- *
+ *
* @see XEP-0313: Message
* Archive Management
* @author Florian Schmaus
* @author Fernando Ramirez
- *
+ *
*/
public final class MamManager extends Manager {
@@ -80,7 +80,7 @@ public final class MamManager extends Manager {
/**
* Get the singleton instance of MamManager.
- *
+ *
* @param connection
* @return the instance of MamManager
*/
@@ -114,7 +114,7 @@ public final class MamManager extends Manager {
/**
* Query archive with a maximum amount of results.
- *
+ *
* @param max
* @return the MAM query result
* @throws NoResponseException
@@ -130,7 +130,7 @@ public final class MamManager extends Manager {
/**
* Query archive with a JID (only messages from/to the JID).
- *
+ *
* @param withJid
* @return the MAM query result
* @throws NoResponseException
@@ -149,7 +149,7 @@ public final class MamManager extends Manager {
* value of 'start' will be equal to the date/time of the earliest message
* stored in the archive. If end == null, the value of 'end' will be equal
* to the date/time of the most recent message stored in the archive.
- *
+ *
* @param start
* @param end
* @return the MAM query result
@@ -166,7 +166,7 @@ public final class MamManager extends Manager {
/**
* Query Archive adding filters with additional fields.
- *
+ *
* @param additionalFields
* @return the MAM query result
* @throws NoResponseException
@@ -183,7 +183,7 @@ public final class MamManager extends Manager {
/**
* Query archive filtering by start date. The value of 'end' will be equal
* to the date/time of the most recent message stored in the archive.
- *
+ *
* @param start
* @return the MAM query result
* @throws NoResponseException
@@ -200,7 +200,7 @@ public final class MamManager extends Manager {
/**
* Query archive filtering by end date. The value of 'start' will be equal
* to the date/time of the earliest message stored in the archive.
- *
+ *
* @param end
* @return the MAM query result
* @throws NoResponseException
@@ -218,7 +218,7 @@ public final class MamManager extends Manager {
/**
* Query archive applying filters: max count, start date, end date, from/to
* JID and with additional fields.
- *
+ *
* @param max
* @param start
* @param end
@@ -242,7 +242,7 @@ public final class MamManager extends Manager {
* Query an message archive like a MUC archive or a PubSub node archive, addressed by an archiveAddress, applying
* filters: max count, start date, end date, from/to JID and with additional fields. When archiveAddress is null the
* default, the server will be requested.
- *
+ *
* @param node The PubSub node name, can be null
* @param max
* @param start
@@ -326,7 +326,7 @@ public final class MamManager extends Manager {
/**
* Returns a page of the archive.
- *
+ *
* @param dataForm
* @param rsmSet
* @return the MAM query result
@@ -345,7 +345,7 @@ public final class MamManager extends Manager {
/**
* Returns a page of the archive.
- *
+ *
* @param node The PubSub node name, can be null
* @param dataForm
* @param rsmSet
@@ -368,7 +368,7 @@ public final class MamManager extends Manager {
/**
* Returns the next page of the archive.
- *
+ *
* @param mamQueryResult
* is the previous query result
* @param count
@@ -389,7 +389,7 @@ public final class MamManager extends Manager {
/**
* Returns the previous page of the archive.
- *
+ *
* @param mamQueryResult
* is the previous query result
* @param count
@@ -482,7 +482,7 @@ public final class MamManager extends Manager {
/**
* Get the form fields supported by the server.
- *
+ *
* @return the list of form fields.
* @throws NoResponseException
* @throws XMPPErrorException
@@ -497,7 +497,7 @@ public final class MamManager extends Manager {
/**
* Get the form fields supported by the server.
- *
+ *
* @param node The PubSub node name, can be null
* @return the list of form fields.
* @throws NoResponseException
@@ -618,7 +618,7 @@ public final class MamManager extends Manager {
/**
* Get the preferences stored in the server.
- *
+ *
* @return the MAM preferences result
* @throws NoResponseException
* @throws XMPPErrorException
@@ -634,7 +634,7 @@ public final class MamManager extends Manager {
/**
* Update the preferences in the server.
- *
+ *
* @param alwaysJids
* is the list of JIDs that should always have messages to/from
* archived in the user's store
diff --git a/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/element/MamElements.java b/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/element/MamElements.java
index 3f48604d2..8c7732e25 100644
--- a/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/element/MamElements.java
+++ b/smack-experimental/src/main/java/org/jivesoftware/smackx/mam/element/MamElements.java
@@ -30,11 +30,11 @@ import org.jxmpp.jid.Jid;
/**
* MAM elements.
- *
+ *
* @see XEP-0313: Message
* Archive Management
* @author Fernando Ramirez and Florian Schmaus
- *
+ *
*/
public class MamElements {
@@ -42,7 +42,7 @@ public class MamElements {
/**
* MAM result extension class.
- *
+ *
* @see XEP-0313: Message
* Archive Management
*
@@ -71,7 +71,7 @@ public class MamElements {
/**
* MAM result extension constructor.
- *
+ *
* @param queryId
* @param id
* @param forwarded
@@ -90,7 +90,7 @@ public class MamElements {
/**
* Get the id.
- *
+ *
* @return the id
*/
public String getId() {
@@ -99,7 +99,7 @@ public class MamElements {
/**
* Get the forwarded element.
- *
+ *
* @return the forwarded element
*/
public Forwarded getForwarded() {
@@ -108,7 +108,7 @@ public class MamElements {
/**
* Get query id.
- *
+ *
* @return the query id
*/
public final String getQueryId() {
@@ -159,7 +159,7 @@ public class MamElements {
/**
* Always JID list element constructor.
- *
+ *
* @param alwaysJids
*/
AlwaysJidListElement(Listnull
.
*/
public Listfalse
.
- *
+ *
* @return true
if both streams will be closed if one of the streams is closed,
* false
if both streams can be closed independently.
*/
@@ -149,7 +149,7 @@ public class InBandBytestreamSession implements BytestreamSession {
/**
* Sets whether both streams should be closed automatically if one of the streams is closed.
* Default is false
.
- *
+ *
* @param closeBothStreamsEnabled true
if both streams should be closed if one of
* the streams is closed, false
if both streams should be closed
* independently
@@ -166,10 +166,10 @@ public class InBandBytestreamSession implements BytestreamSession {
/**
* This method is invoked if a request to close the In-Band Bytestream has been received.
- *
+ *
* @param closeRequest the close request from the remote peer
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
protected void closeByPeer(Close closeRequest) throws NotConnectedException, InterruptedException {
@@ -282,14 +282,14 @@ public class InBandBytestreamSession implements BytestreamSession {
/**
* Returns the stanza listener that processes In-Band Bytestream data packets.
- *
+ *
* @return the data stanza listener
*/
protected abstract StanzaListener getDataPacketListener();
/**
* Returns the stanza filter that accepts In-Band Bytestream data packets.
- *
+ *
* @return the data stanza filter
*/
protected abstract StanzaFilter getDataPacketFilter();
@@ -352,7 +352,7 @@ public class InBandBytestreamSession implements BytestreamSession {
/**
* This method blocks until a data stanza is received, the stream is closed or the current
* thread is interrupted.
- *
+ *
* @return true
if data was received, otherwise false
* @throws IOException if data packets are out of sequence
*/
@@ -406,7 +406,7 @@ public class InBandBytestreamSession implements BytestreamSession {
/**
* Checks if this stream is closed and throws an IOException if necessary
- *
+ *
* @throws IOException if stream is closed and no data should be read anymore
*/
private void checkClosed() throws IOException {
@@ -633,11 +633,11 @@ public class InBandBytestreamSession implements BytestreamSession {
/**
* Writes the given data stanza to the XMPP stream.
- *
+ *
* @param data the data packet
* @throws IOException if an I/O error occurred while sending or if the stream is closed
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
protected abstract void writeToXML(DataPacketExtension data) throws IOException, NotConnectedException, InterruptedException;
@@ -695,7 +695,7 @@ public class InBandBytestreamSession implements BytestreamSession {
* Fills the buffer with the given data and sends it over the XMPP stream if the buffers
* capacity has been reached. This method is only called from this class so it is assured
* that the amount of data to send is <= buffer capacity
- *
+ *
* @param b the data
* @param off the data
* @param len the number of bytes to write
@@ -771,7 +771,7 @@ public class InBandBytestreamSession implements BytestreamSession {
/**
* Sets the close flag and optionally flushes the stream.
- *
+ *
* @param flush if true
flushes the stream
*/
protected void closeInternal(boolean flush) {
@@ -848,8 +848,8 @@ public class InBandBytestreamSession implements BytestreamSession {
* Process IQ stanza.
* @param data
* @throws NotConnectedException
- * @throws InterruptedException
- * @throws NotLoggedInException
+ * @throws InterruptedException
+ * @throws NotLoggedInException
*/
public void processIQPacket(Data data) throws NotConnectedException, InterruptedException, NotLoggedInException {
inputStream.dataPacketListener.processStanza(data);
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListener.java
index 5a8c1121c..e5de08106 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListener.java
@@ -40,7 +40,7 @@ import org.jivesoftware.smackx.filetransfer.StreamNegotiator;
* All In-Band Bytestream request having a block size greater than the maximum allowed block size
* for this connection are rejected with an <resource-constraint/> error. The maximum block
* size can be set by invoking {@link InBandBytestreamManager#setMaximumBlockSize(int)}.
- *
+ *
* @author Henning Staib
*/
class InitiationListener extends AbstractIqRequestHandler {
@@ -54,7 +54,7 @@ class InitiationListener extends AbstractIqRequestHandler {
/**
* Constructor.
- *
+ *
* @param manager the In-Band Bytestream manager
*/
protected InitiationListener(InBandBytestreamManager manager) {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Close.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Close.java
index 40d295169..cdd002590 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Close.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Close.java
@@ -20,7 +20,7 @@ import org.jivesoftware.smack.packet.IQ;
/**
* Represents a request to close an In-Band Bytestream.
- *
+ *
* @author Henning Staib
*/
public class Close extends IQ {
@@ -33,7 +33,7 @@ public class Close extends IQ {
/**
* Creates a new In-Band Bytestream close request packet.
- *
+ *
* @param sessionID unique session ID identifying this In-Band Bytestream
*/
public Close(String sessionID) {
@@ -47,7 +47,7 @@ public class Close extends IQ {
/**
* Returns the unique session ID identifying this In-Band Bytestream.
- *
+ *
* @return the unique session ID identifying this In-Band Bytestream
*/
public String getSessionID() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Data.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Data.java
index 67e7f88cd..54bbaeb80 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Data.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Data.java
@@ -21,7 +21,7 @@ import org.jivesoftware.smack.packet.IQ;
/**
* Represents a chunk of data sent over an In-Band Bytestream encapsulated in an
* IQ stanza.
- *
+ *
* @author Henning Staib
*/
public class Data extends IQ {
@@ -31,7 +31,7 @@ public class Data extends IQ {
/**
* Constructor.
- *
+ *
* @param data data stanza extension containing the encoded data
*/
public Data(DataPacketExtension data) {
@@ -46,7 +46,7 @@ public class Data extends IQ {
/**
* Returns the data stanza extension.
- *
+ *
* @return the data stanza extension
*/
public DataPacketExtension getDataPacketExtension() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtension.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtension.java
index 580c17191..d27f27221 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtension.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtension.java
@@ -24,7 +24,7 @@ import org.jivesoftware.smack.util.stringencoder.Base64;
/**
* Represents a chunk of data of an In-Band Bytestream within an IQ stanza or a
* message stanza.
- *
+ *
* @author Henning Staib
*/
public class DataPacketExtension implements ExtensionElement {
@@ -52,7 +52,7 @@ public class DataPacketExtension implements ExtensionElement {
/**
* Creates a new In-Band Bytestream data packet.
- *
+ *
* @param sessionID unique session ID identifying this In-Band Bytestream
* @param seq sequence of this stanza in regard to the other data packets
* @param data the base64 encoded data contained in this packet
@@ -74,7 +74,7 @@ public class DataPacketExtension implements ExtensionElement {
/**
* Returns the unique session ID identifying this In-Band Bytestream.
- *
+ *
* @return the unique session ID identifying this In-Band Bytestream
*/
public String getSessionID() {
@@ -83,7 +83,7 @@ public class DataPacketExtension implements ExtensionElement {
/**
* Returns the sequence of this stanza in regard to the other data packets.
- *
+ *
* @return the sequence of this stanza in regard to the other data packets.
*/
public long getSeq() {
@@ -92,7 +92,7 @@ public class DataPacketExtension implements ExtensionElement {
/**
* Returns the data contained in this packet.
- *
+ *
* @return the data contained in this packet.
*/
public String getData() {
@@ -107,7 +107,7 @@ public class DataPacketExtension implements ExtensionElement {
* character(s) of the data. See XEP-0047 Section
* 6.
- *
+ *
* @return the decoded data
*/
public byte[] getDecodedData() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Open.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Open.java
index 11043dd3c..768cf3f20 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Open.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/ibb/packet/Open.java
@@ -24,7 +24,7 @@ import org.jivesoftware.smackx.bytestreams.ibb.InBandBytestreamManager.StanzaTyp
/**
* Represents a request to open an In-Band Bytestream.
- *
+ *
* @author Henning Staib
*/
public class Open extends IQ {
@@ -49,7 +49,7 @@ public class Open extends IQ {
* 65535. A recommended default value is 4096.
* null
if given connection is
* null
* @return the Socks5BytestreamManager for the given XMPP connection
@@ -178,7 +178,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Private constructor.
- *
+ *
* @param connection the XMPP connection
*/
private Socks5BytestreamManager(XMPPConnection connection) {
@@ -198,7 +198,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
* bytestream requests sent in the context of XEP-0096 file transfer. (See
* {@link FileTransferManager})
- *
+ *
* @param listener the listener to register
*/
@Override
@@ -209,7 +209,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Removes the given listener from the list of listeners for all incoming SOCKS5 Bytestream
* requests.
- *
+ *
* @param listener the listener to remove
*/
@Override
@@ -231,7 +231,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
* bytestream requests sent in the context of XEP-0096 file transfer. (See
* {@link FileTransferManager})
- *
+ *
* @param listener the listener to register
* @param initiatorJID the JID of the user that wants to establish a SOCKS5 Bytestream
*/
@@ -242,7 +242,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Removes the listener for the given user.
- *
+ *
* @param initiatorJID the JID of the user the listener should be removed
*/
@Override
@@ -257,7 +257,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
* true
.
- *
+ *
* @return true
if prioritization is enabled, false
otherwise
*/
public boolean isProxyPrioritizationEnabled() {
@@ -366,7 +366,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Enable/disable the prioritization of the last working SOCKS5 proxy on successive SOCKS5
* Bytestream connections.
- *
+ *
* @param proxyPrioritizationEnabled enable/disable the prioritization of the last working
* SOCKS5 proxy
*/
@@ -384,7 +384,7 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
* true
if the given target JID supports feature SOCKS5 Bytestream.
- *
+ *
* @param targetJID the target JID
* @return true
if the given target JID supports feature SOCKS5 Bytestream
* otherwise false
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
private boolean supportsSocks5(Jid targetJID) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return ServiceDiscoveryManager.getInstanceFor(connection()).supportsFeature(targetJID, Bytestream.NAMESPACE);
@@ -528,12 +528,12 @@ public final class Socks5BytestreamManager extends Manager implements Bytestream
/**
* Returns a list of JIDs of SOCKS5 proxies by querying the XMPP server. The SOCKS5 proxies are
* in the same order as returned by the XMPP server.
- *
+ *
* @return list of JIDs of SOCKS5 proxies
* @throws XMPPErrorException if there was an error querying the XMPP server for SOCKS5 proxies
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public Listtrue
if the session is established through a direct connection between
* the initiator and target, false
if the session is mediated over a SOCKS proxy.
- *
+ *
* @return true
if session is a direct connection, false
if session is
* mediated over a SOCKS5 proxy
*/
@@ -56,7 +56,7 @@ public class Socks5BytestreamSession implements BytestreamSession {
/**
* Returns true
if the session is mediated over a SOCKS proxy, false
* if this session is established through a direct connection between the initiator and target.
- *
+ *
* @return true
if session is mediated over a SOCKS5 proxy, false
if
* session is a direct connection
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Client.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Client.java
index b2d35e500..1e58b9c9f 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Client.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Client.java
@@ -41,7 +41,7 @@ import org.jivesoftware.smackx.bytestreams.socks5.packet.Bytestream.StreamHost;
* The SOCKS5 client class handles establishing a connection to a SOCKS5 proxy. Connecting to a
* SOCKS5 proxy requires authentication. This implementation only supports the no-authentication
* authentication method.
- *
+ *
* @author Henning Staib
*/
public class Socks5Client {
@@ -56,7 +56,7 @@ public class Socks5Client {
/**
* Constructor for a SOCKS5 client.
- *
+ *
* @param streamHost containing network settings of the SOCKS5 proxy
* @param digest identifying the SOCKS5 Bytestream
*/
@@ -68,14 +68,14 @@ public class Socks5Client {
/**
* Returns the initialized socket that can be used to transfer data between peers via the SOCKS5
* proxy.
- *
+ *
* @param timeout timeout to connect to SOCKS5 proxy in milliseconds
* @return socket the initialized socket
* @throws IOException if initializing the socket failed due to a network error
* @throws TimeoutException if connecting to SOCKS5 proxy timed out
* @throws InterruptedException if the current thread was interrupted while waiting
* @throws SmackException if the connection to the SOCKS5 proxy failed
- * @throws XMPPException
+ * @throws XMPPException
*/
public Socket getSocket(int timeout) throws IOException, InterruptedException,
TimeoutException, SmackException, XMPPException {
@@ -139,10 +139,10 @@ public class Socks5Client {
* Initializes the connection to the SOCKS5 proxy by negotiating authentication method and
* requesting a stream for the given digest. Currently only the no-authentication method is
* supported by the Socks5Client.
- *
+ *
* @param socket connected to a SOCKS5 proxy
- * @throws SmackException
- * @throws IOException
+ * @throws SmackException
+ * @throws IOException
*/
protected void establish(Socket socket) throws SmackException, IOException {
@@ -196,7 +196,7 @@ public class Socks5Client {
* type "domain" and the digest as address.
*
InetAddress.getLocalHost().getHostAddress()
. You can replace the list of
* addresses by invoking {@link #replaceLocalAddresses(Collection)}.
- *
+ *
* @param address the local network address to add
*/
public void addLocalAddress(String address) {
@@ -275,7 +275,7 @@ public final class Socks5Proxy {
/**
* Removes the given address from the list of local network addresses. This address will then no
* longer be used of outgoing SOCKS5 Bytestream requests.
- *
+ *
* @param address the local network address to remove
* @return true if the address was removed.
*/
@@ -288,7 +288,7 @@ public final class Socks5Proxy {
/**
* Returns an set of the local network addresses that will be used for streamhost
* candidates of outgoing SOCKS5 Bytestream requests.
- *
+ *
* @return set of the local network addresses
*/
public List
* The digest should be removed after establishing the SOCKS5 Bytestream is finished, an error
* occurred while establishing the connection or if the connection is not allowed anymore.
- *
+ *
* @param digest to be removed from the list of allowed transfers
*/
protected void removeTransfer(String digest) {
@@ -369,7 +369,7 @@ public final class Socks5Proxy {
/**
* Returns true
if the local SOCKS5 proxy server is running, otherwise
* false
.
- *
+ *
* @return true
if the local SOCKS5 proxy server is running, otherwise
* false
*/
@@ -423,7 +423,7 @@ public final class Socks5Proxy {
/**
* Negotiates a SOCKS5 connection and stores it on success.
- *
+ *
* @param socket connection to the client
* @throws SmackException if client requests a connection in an unsupported way
* @throws IOException if a network error occurred
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Utils.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Utils.java
index bca0c5727..209c3d1d4 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Utils.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5Utils.java
@@ -26,7 +26,7 @@ import org.jxmpp.jid.Jid;
/**
* A collection of utility methods for SOcKS5 messages.
- *
+ *
* @author Henning Staib
*/
public class Socks5Utils {
@@ -34,7 +34,7 @@ public class Socks5Utils {
/**
* Returns a SHA-1 digest of the given parameters as specified in XEP-0065.
- *
+ *
* @param sessionID for the SOCKS5 Bytestream
* @param initiatorJID JID of the initiator of a SOCKS5 Bytestream
* @param targetJID JID of the target of a SOCKS5 Bytestream
@@ -51,7 +51,7 @@ public class Socks5Utils {
* message or a SOCKS5 response message.
*
* (see RFC1928)
- *
+ *
* @param in the DataInputStream to read the message from
* @return the SOCKS5 message
* @throws IOException if a network error occurred
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java
index 39732bf08..a11226c75 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/packet/Bytestream.java
@@ -30,7 +30,7 @@ import org.jxmpp.jid.Jid;
/**
* A stanza representing part of a SOCKS5 Bytestream negotiation.
- *
+ *
* @author Alexander Wenckus
*/
public class Bytestream extends IQ {
@@ -61,7 +61,7 @@ public class Bytestream extends IQ {
/**
* A constructor where the session ID can be specified.
- *
+ *
* @param SID The session ID related to the negotiation.
* @see #setSessionID(String)
*/
@@ -73,7 +73,7 @@ public class Bytestream extends IQ {
/**
* Set the session ID related to the bytestream. The session ID is a unique identifier used to
* differentiate between stream negotiations.
- *
+ *
* @param sessionID the unique session ID that identifies the transfer.
*/
public void setSessionID(final String sessionID) {
@@ -82,7 +82,7 @@ public class Bytestream extends IQ {
/**
* Returns the session ID related to the bytestream negotiation.
- *
+ *
* @return Returns the session ID related to the bytestream negotiation.
* @see #setSessionID(String)
*/
@@ -92,7 +92,7 @@ public class Bytestream extends IQ {
/**
* Set the transport mode. This should be put in the initiation of the interaction.
- *
+ *
* @param mode the transport mode, either UDP or TCP
* @see Mode
*/
@@ -102,7 +102,7 @@ public class Bytestream extends IQ {
/**
* Returns the transport mode.
- *
+ *
* @return Returns the transport mode.
* @see #setMode(Mode)
*/
@@ -112,7 +112,7 @@ public class Bytestream extends IQ {
/**
* Adds a potential stream host that the remote user can connect to to receive the file.
- *
+ *
* @param JID The JID of the stream host.
* @param address The internet address of the stream host.
* @return The added stream host.
@@ -123,7 +123,7 @@ public class Bytestream extends IQ {
/**
* Adds a potential stream host that the remote user can connect to to receive the file.
- *
+ *
* @param JID The JID of the stream host.
* @param address The internet address of the stream host.
* @param port The port on which the remote host is seeking connections.
@@ -138,7 +138,7 @@ public class Bytestream extends IQ {
/**
* Adds a potential stream host that the remote user can transfer the file through.
- *
+ *
* @param host The potential stream host.
*/
public void addStreamHost(final StreamHost host) {
@@ -147,7 +147,7 @@ public class Bytestream extends IQ {
/**
* Returns the list of stream hosts contained in the packet.
- *
+ *
* @return Returns the list of stream hosts contained in the packet.
*/
public List
- * Default filename encoder {@link Base32}, as this will work on all
- * file systems, both case sensitive and case insensitive. It does however
+ * Default filename encoder {@link Base32}, as this will work on all
+ * file systems, both case sensitive and case insensitive. It does however
* produce longer filenames.
- *
+ *
* @param cacheDir
*/
public SimpleDirectoryPersistentCache(File cacheDir) {
@@ -62,10 +62,10 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
/**
* Creates a new SimpleDirectoryPersistentCache Object. Make sure that the
* cacheDir exists and that it's an directory.
- *
+ *
* If your cacheDir is case insensitive then make sure to set the
* StringEncoder to {@link Base32} (which is the default).
- *
+ *
* @param cacheDir The directory where the cache will be stored.
* @param filenameEncoder Encodes the node string into a filename.
*/
@@ -124,7 +124,7 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
/**
* Writes the DiscoverInfo stanza to an file
- *
+ *
* @param file
* @param info
* @throws IOException
@@ -140,7 +140,7 @@ public class SimpleDirectoryPersistentCache implements EntityCapsPersistentCache
/**
* Tries to restore an DiscoverInfo stanza from a file.
- *
+ *
* @param file
* @return the restored DiscoverInfo
* @throws Exception
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommand.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommand.java
index 37028483d..fffd03cd5 100755
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommand.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommand.java
@@ -68,9 +68,9 @@ import org.jxmpp.jid.Jid;
*
- *
+ *
* For more information see XEP-0091
* and XEP-0203.
- *
+ *
* @author Gaston Dombiak
* @author Florian Schmaus
*/
@@ -45,7 +45,7 @@ public class DelayInformation implements ExtensionElement {
private final String reason;
/**
- * Creates a new instance with the specified timestamp.
+ * Creates a new instance with the specified timestamp.
* @param stamp the timestamp
* @param from sender
* @param reason reason of delay.
@@ -61,10 +61,10 @@ public class DelayInformation implements ExtensionElement {
}
/**
- * Returns the JID of the entity that originally sent the stanza or that delayed the
+ * Returns the JID of the entity that originally sent the stanza or that delayed the
* delivery of the stanza or null if this information is not available.
- *
- * @return the JID of the entity that originally sent the stanza or that delayed the
+ *
+ * @return the JID of the entity that originally sent the stanza or that delayed the
* delivery of the packet.
*/
public String getFrom() {
@@ -72,9 +72,9 @@ public class DelayInformation implements ExtensionElement {
}
/**
- * Returns the timestamp when the stanza was originally sent. The returned Date is
+ * Returns the timestamp when the stanza was originally sent. The returned Date is
* be understood as UTC.
- *
+ *
* @return the timestamp when the stanza was originally sent.
*/
public Date getStamp() {
@@ -82,9 +82,9 @@ public class DelayInformation implements ExtensionElement {
}
/**
- * Returns a natural-language description of the reason for the delay or null if
+ * Returns a natural-language description of the reason for the delay or null if
* this information is not available.
- *
+ *
* @return a natural-language description of the reason for the delay or null.
*/
public String getReason() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/delay/provider/DelayInformationProvider.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/delay/provider/DelayInformationProvider.java
index a9ed78498..fc7378410 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/delay/provider/DelayInformationProvider.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/delay/provider/DelayInformationProvider.java
@@ -23,7 +23,7 @@ import org.jxmpp.util.XmppDateTime;
/**
* The DelayInformationProvider parses DelayInformation packets.
- *
+ *
* @author Florian Schmaus
*/
public class DelayInformationProvider extends AbstractDelayInformationProvider {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/NodeInformationProvider.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/NodeInformationProvider.java
index 34a8f4969..cc8a8a5a7 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/NodeInformationProvider.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/disco/NodeInformationProvider.java
@@ -38,9 +38,9 @@ public interface NodeInformationProvider {
/**
* Returns a list of the Items {@link org.jivesoftware.smackx.disco.packet.DiscoverItems.Item}
- * defined in the node. For example, the MUC protocol specifies that an XMPP client should
+ * defined in the node. For example, the MUC protocol specifies that an XMPP client should
* answer an Item for each joined room when asked for the rooms where the use has joined.
- *
+ *
* @return a list of the Items defined in the node.
*/
List
- *
+ *
* In MUC, a node could be 'http://jabber.org/protocol/muc#rooms' which means that the
* NodeInformationProvider will provide information about the rooms where the user has joined.
- *
+ *
* @param node the node that contains items associated with an entity not addressable as a JID.
- * @return the NodeInformationProvider responsible for providing information related
+ * @return the NodeInformationProvider responsible for providing information related
* to a given node.
*/
private NodeInformationProvider getNodeInformationProvider(String node) {
@@ -327,14 +327,14 @@ public final class ServiceDiscoveryManager extends Manager {
}
/**
- * Sets the NodeInformationProvider responsible for providing information
+ * Sets the NodeInformationProvider responsible for providing information
* (ie items) related to a given node. Every time this client receives a disco request
- * regarding the items of a given node, the provider associated to that node will be the
+ * regarding the items of a given node, the provider associated to that node will be the
* responsible for providing the requested information.
- *
+ *
* In MUC, a node could be 'http://jabber.org/protocol/muc#rooms' which means that the
- * NodeInformationProvider will provide information about the rooms where the user has joined.
- *
+ * NodeInformationProvider will provide information about the rooms where the user has joined.
+ *
* @param node the node whose items will be provided by the NodeInformationProvider.
* @param listener the NodeInformationProvider responsible for providing items related
* to the node.
@@ -344,13 +344,13 @@ public final class ServiceDiscoveryManager extends Manager {
}
/**
- * Removes the NodeInformationProvider responsible for providing information
+ * Removes the NodeInformationProvider responsible for providing information
* (ie items) related to a given node. This means that no more information will be
* available for the specified node.
- *
+ *
* In MUC, a node could be 'http://jabber.org/protocol/muc#rooms' which means that the
- * NodeInformationProvider will provide information about the rooms where the user has joined.
- *
+ * NodeInformationProvider will provide information about the rooms where the user has joined.
+ *
* @param node the node to remove the associated NodeInformationProvider.
*/
public void removeNodeInformationProvider(String node) {
@@ -362,7 +362,7 @@ public final class ServiceDiscoveryManager extends Manager {
*
* The result is a copied modifiable list of the original features.
*
*
* Since no stanza is actually sent to the server it is safe to perform this operation
@@ -436,7 +436,7 @@ public final class ServiceDiscoveryManager extends Manager {
/**
* Returns the data form that is set as extended information for this Service Discovery instance (XEP-0128).
- *
+ *
* @see XEP-128: Service Discovery Extensions
* @return the data form
*/
@@ -447,7 +447,7 @@ public final class ServiceDiscoveryManager extends Manager {
/**
* Returns the data form as List of PacketExtensions, or null if no data form is set.
* This representation is needed by some classes (e.g. EntityCapsManager, NodeInformationProvider)
- *
+ *
* @return the data form as List of PacketExtensions
*/
public List
- *
- * The received information may contain one or more identities of the requested XMPP entity, and
+ * A DiscoverInfo IQ packet, which is used by XMPP clients to request and receive information
+ * to/from other XMPP entities.
+ *
+ * The received information may contain one or more identities of the requested XMPP entity, and
* a list of supported features by the requested XMPP entity.
*
* @author Gaston Dombiak
@@ -58,7 +58,7 @@ public class DiscoverInfo extends IQ implements TypedCloneable
- *
- * Node attributes SHOULD be used only when trying to provide or query information which
+ * Returns the node attribute that supplements the 'jid' attribute. A node is merely
+ * something that is associated with a JID and for which the JID can provide information.
+ *
+ * Node attributes SHOULD be used only when trying to provide or query information which
* is not directly addressable.
*
* @return the node attribute that supplements the 'jid' attribute
@@ -192,12 +192,12 @@ public class DiscoverInfo extends IQ implements TypedCloneable
- *
- * Node attributes SHOULD be used only when trying to provide or query information which
+ * Sets the node attribute that supplements the 'jid' attribute. A node is merely
+ * something that is associated with a JID and for which the JID can provide information.
+ *
+ * Node attributes SHOULD be used only when trying to provide or query information which
* is not directly addressable.
- *
+ *
* @param node the node attribute that supplements the 'jid' attribute
*/
public void setNode(String node) {
@@ -206,7 +206,7 @@ public class DiscoverInfo extends IQ implements TypedCloneable
- *
+ *
* Refer to Jabber::Registrar
- * in order to get the official registry of values for the category and type
+ * in order to get the official registry of values for the category and type
* attributes.
- *
+ *
*/
public static class Identity implements Comparable
- *
- * The items could also be queried in order to discover if they contain items inside. Some items
+ *
+ * The items could also be queried in order to discover if they contain items inside. Some items
* may be addressable by its JID and others may require to be addressed by a JID and a node name.
*
* @author Gaston Dombiak
@@ -49,7 +49,7 @@ public class DiscoverItems extends IQ {
/**
* Adds a new item to the discovered information.
- *
+ *
* @param item the discovered entity's item
*/
public void addItem(Item item) {
@@ -70,7 +70,7 @@ public class DiscoverItems extends IQ {
/**
- * Returns the discovered items of the queried XMPP entity.
+ * Returns the discovered items of the queried XMPP entity.
*
* @return an unmodifiable list of the discovered entity's items
*/
@@ -79,10 +79,10 @@ public class DiscoverItems extends IQ {
}
/**
- * Returns the node attribute that supplements the 'jid' attribute. A node is merely
- * something that is associated with a JID and for which the JID can provide information.
- *
- * Node attributes SHOULD be used only when trying to provide or query information which
+ * Returns the node attribute that supplements the 'jid' attribute. A node is merely
+ * something that is associated with a JID and for which the JID can provide information.
+ *
+ * Node attributes SHOULD be used only when trying to provide or query information which
* is not directly addressable.
*
* @return the node attribute that supplements the 'jid' attribute
@@ -92,12 +92,12 @@ public class DiscoverItems extends IQ {
}
/**
- * Sets the node attribute that supplements the 'jid' attribute. A node is merely
- * something that is associated with a JID and for which the JID can provide information.
- *
- * Node attributes SHOULD be used only when trying to provide or query information which
+ * Sets the node attribute that supplements the 'jid' attribute. A node is merely
+ * something that is associated with a JID and for which the JID can provide information.
+ *
+ * Node attributes SHOULD be used only when trying to provide or query information which
* is not directly addressable.
- *
+ *
* @param node the node attribute that supplements the 'jid' attribute
*/
public void setNode(String node) {
@@ -117,11 +117,11 @@ public class DiscoverItems extends IQ {
}
/**
- * An item is associated with an XMPP Entity, usually thought of a children of the parent
- * entity and normally are addressable as a JID.
- *
- * An item associated with an entity may not be addressable as a JID. In order to handle
- * such items, Service Discovery uses an optional 'node' attribute that supplements the
+ * An item is associated with an XMPP Entity, usually thought of a children of the parent
+ * entity and normally are addressable as a JID.
+ *
+ * An item associated with an entity may not be addressable as a JID. In order to handle
+ * such items, Service Discovery uses an optional 'node' attribute that supplements the
* 'jid' attribute.
*/
public static class Item {
@@ -143,7 +143,7 @@ public class DiscoverItems extends IQ {
/**
* Create a new Item associated with a given entity.
- *
+ *
* @param entityID the id of the entity that contains the item
*/
public Item(Jid entityID) {
@@ -178,10 +178,10 @@ public class DiscoverItems extends IQ {
}
/**
- * Returns the node attribute that supplements the 'jid' attribute. A node is merely
- * something that is associated with a JID and for which the JID can provide information.
- *
- * Node attributes SHOULD be used only when trying to provide or query information which
+ * Returns the node attribute that supplements the 'jid' attribute. A node is merely
+ * something that is associated with a JID and for which the JID can provide information.
+ *
+ * Node attributes SHOULD be used only when trying to provide or query information which
* is not directly addressable.
*
* @return the node attribute that supplements the 'jid' attribute
@@ -191,12 +191,12 @@ public class DiscoverItems extends IQ {
}
/**
- * Sets the node attribute that supplements the 'jid' attribute. A node is merely
- * something that is associated with a JID and for which the JID can provide information.
- *
- * Node attributes SHOULD be used only when trying to provide or query information which
+ * Sets the node attribute that supplements the 'jid' attribute. A node is merely
+ * something that is associated with a JID and for which the JID can provide information.
+ *
+ * Node attributes SHOULD be used only when trying to provide or query information which
* is not directly addressable.
- *
+ *
* @param node the node attribute that supplements the 'jid' attribute
*/
public void setNode(String node) {
@@ -204,11 +204,11 @@ public class DiscoverItems extends IQ {
}
/**
- * Returns the action that specifies the action being taken for this item. Possible action
- * values are: "update" and "remove". Update should either create a new entry if the node
- * and jid combination does not already exist, or simply update an existing entry. If
+ * Returns the action that specifies the action being taken for this item. Possible action
+ * values are: "update" and "remove". Update should either create a new entry if the node
+ * and jid combination does not already exist, or simply update an existing entry. If
* "remove" is used as the action, the item should be removed from persistent storage.
- *
+ *
* @return the action being taken for this item
*/
public String getAction() {
@@ -216,11 +216,11 @@ public class DiscoverItems extends IQ {
}
/**
- * Sets the action that specifies the action being taken for this item. Possible action
- * values are: "update" and "remove". Update should either create a new entry if the node
- * and jid combination does not already exist, or simply update an existing entry. If
+ * Sets the action that specifies the action being taken for this item. Possible action
+ * values are: "update" and "remove". Update should either create a new entry if the node
+ * and jid combination does not already exist, or simply update an existing entry. If
* "remove" is used as the action, the item should be removed from persistent storage.
- *
+ *
* @param action the action being taken for this item
*/
public void setAction(String action) {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferException.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferException.java
index 71a1b9428..4efcc86a8 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferException.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferException.java
@@ -21,14 +21,14 @@ import org.jivesoftware.smack.SmackException;
public abstract class FileTransferException extends SmackException {
/**
- *
+ *
*/
private static final long serialVersionUID = 1L;
public static class NoStreamMethodsOfferedException extends FileTransferException {
/**
- *
+ *
*/
private static final long serialVersionUID = 1L;
@@ -37,7 +37,7 @@ public abstract class FileTransferException extends SmackException {
public static class NoAcceptableTransferMechanisms extends FileTransferException {
/**
- *
+ *
*/
private static final long serialVersionUID = 1L;
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferListener.java
index 92633be0e..d54b19ae9 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferListener.java
@@ -19,13 +19,13 @@ package org.jivesoftware.smackx.filetransfer;
/**
* File transfers can cause several events to be raised. These events can be
* monitored through this interface.
- *
+ *
* @author Alexander Wenckus
*/
public interface FileTransferListener {
/**
* A request to send a file has been received from another user.
- *
+ *
* @param request
* The request from the other user.
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferManager.java
index ced4802d9..dc44d4b11 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/filetransfer/FileTransferManager.java
@@ -41,9 +41,9 @@ import org.jxmpp.jid.EntityFullJid;
* listener will notify you when there is a new file transfer request. To create
* the {@link IncomingFileTransfer} object accept the transfer, or, if the
* transfer is not desirable reject it.
- *
+ *
* @author Alexander Wenckus
- *
+ *
*/
public final class FileTransferManager extends Manager {
@@ -64,7 +64,7 @@ public final class FileTransferManager extends Manager {
/**
* Creates a file transfer manager to initiate and receive file transfers.
- *
+ *
* @param connection
* The XMPPConnection that the file transfers will use.
*/
@@ -89,7 +89,7 @@ public final class FileTransferManager extends Manager {
/**
* Add a file transfer listener to listen to incoming file transfer
* requests.
- *
+ *
* @param li
* The listener
* @see #removeFileTransferListener(FileTransferListener)
@@ -101,7 +101,7 @@ public final class FileTransferManager extends Manager {
/**
* Removes a file transfer listener.
- *
+ *
* @param li
* The file transfer listener to be removed
* @see FileTransferListener
@@ -112,7 +112,7 @@ public final class FileTransferManager extends Manager {
/**
* Creates an OutgoingFileTransfer to send a file to another user.
- *
+ *
* @param userID
* The fully qualified jabber ID (i.e. full JID) with resource of the user to
* send the file to.
@@ -136,7 +136,7 @@ public final class FileTransferManager extends Manager {
* When the file transfer request is acceptable, this method should be
* invoked. It will create an IncomingFileTransfer which allows the
* transmission of the file to proceed.
- *
+ *
* @param request
* The remote request that is being accepted.
* @return The IncomingFileTransfer which manages the download of the file
@@ -162,7 +162,7 @@ public final class FileTransferManager extends Manager {
*
- *
+ *
*
- *
- * You can use some or all of these variable to control the amount of history to receive:
+ *
+ * You can use some or all of these variable to control the amount of history to receive:
*
- *
+ *
* If the room is password-protected, the invitee will receive a password to use to join
* the room. If the room is members-only, the the invitee may be added to the member list.
- *
+ *
* @param conn the XMPPConnection that received the invitation.
* @param room the room that invitation refers to.
* @param inviter the inviter that sent the invitation. (e.g. crone1@shakespeare.lit).
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationRejectionListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationRejectionListener.java
index b31d0830d..a9844d87b 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationRejectionListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationRejectionListener.java
@@ -25,14 +25,14 @@ import org.jxmpp.jid.EntityBareJid;
/**
* A listener that is fired anytime an invitee declines or rejects an invitation.
- *
+ *
* @author Gaston Dombiak
*/
public interface InvitationRejectionListener {
/**
* Called when the invitee declines the invitation.
- *
+ *
* @param invitee the invitee that declined the invitation. (e.g. hecate@shakespeare.lit).
* @param reason the reason why the invitee declined the invitation.
* @param message the message used to decline the invitation.
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MucConfigFormManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MucConfigFormManager.java
index b97b49e1e..30ecf0860 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MucConfigFormManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/MucConfigFormManager.java
@@ -83,10 +83,10 @@ public class MucConfigFormManager {
*
* A builder for this can be obtained by calling {@link MultiUserChat#getEnterConfigurationBuilder(Resourcepart)}.
*
- * The amount of discussion history provided on entering a room (perhaps because the
+ * The amount of discussion history provided on entering a room (perhaps because the
* user is on a low-bandwidth connection or is using a small-footprint client) could be managed by
- * setting a configured History instance to the MUCInitialPresence instance.
+ * setting a configured History instance to the MUCInitialPresence instance.
*
* @author Gaston Dombiak
* @see MUCInitialPresence#setHistory(MUCInitialPresence.History)
@@ -45,7 +45,7 @@ public class MUCInitialPresence implements ExtensionElement {
// TODO make those fields final once deprecated setter methods have been removed.
private String password;
- private History history;
+ private History history;
/**
* Deprecated constructor.
@@ -94,10 +94,10 @@ public class MUCInitialPresence implements ExtensionElement {
}
/**
- * Returns the history that manages the amount of discussion history provided on
+ * Returns the history that manages the amount of discussion history provided on
* entering a room.
- *
- * @return the history that manages the amount of discussion history provided on
+ *
+ * @return the history that manages the amount of discussion history provided on
* entering a room.
*/
public History getHistory() {
@@ -106,7 +106,7 @@ public class MUCInitialPresence implements ExtensionElement {
/**
* Returns the password to use when the room requires a password.
- *
+ *
* @return the password to use when the room requires a password.
*/
public String getPassword() {
@@ -114,10 +114,10 @@ public class MUCInitialPresence implements ExtensionElement {
}
/**
- * Sets the History that manages the amount of discussion history provided on
+ * Sets the History that manages the amount of discussion history provided on
* entering a room.
- *
- * @param history that manages the amount of discussion history provided on
+ *
+ * @param history that manages the amount of discussion history provided on
* entering a room.
* @deprecated use {@link #MUCInitialPresence(String, int, int, int, Date)} instead.
*/
@@ -128,7 +128,7 @@ public class MUCInitialPresence implements ExtensionElement {
/**
* Sets the password to use when the room requires a password.
- *
+ *
* @param password the password to use when the room requires a password.
* @deprecated use {@link #MUCInitialPresence(String, int, int, int, Date)} instead.
*/
@@ -162,7 +162,7 @@ public class MUCInitialPresence implements ExtensionElement {
/**
* The History class controls the number of characters or messages to receive
* when entering a room.
- *
+ *
* @author Gaston Dombiak
*/
public static class History implements NamedElement {
@@ -173,7 +173,7 @@ public class MUCInitialPresence implements ExtensionElement {
private int maxChars;
private int maxStanzas;
private int seconds;
- private Date since;
+ private Date since;
/**
* Deprecated constructor.
@@ -198,7 +198,7 @@ public class MUCInitialPresence implements ExtensionElement {
/**
* Returns the total number of characters to receive in the history.
- *
+ *
* @return total number of characters to receive in the history.
*/
public int getMaxChars() {
@@ -207,7 +207,7 @@ public class MUCInitialPresence implements ExtensionElement {
/**
* Returns the total number of messages to receive in the history.
- *
+ *
* @return the total number of messages to receive in the history.
*/
public int getMaxStanzas() {
@@ -215,10 +215,10 @@ public class MUCInitialPresence implements ExtensionElement {
}
/**
- * Returns the number of seconds to use to filter the messages received during that time.
- * In other words, only the messages received in the last "X" seconds will be included in
+ * Returns the number of seconds to use to filter the messages received during that time.
+ * In other words, only the messages received in the last "X" seconds will be included in
* the history.
- *
+ *
* @return the number of seconds to use to filter the messages received during that time.
*/
public int getSeconds() {
@@ -226,10 +226,10 @@ public class MUCInitialPresence implements ExtensionElement {
}
/**
- * Returns the since date to use to filter the messages received during that time.
- * In other words, only the messages received since the datetime specified will be
+ * Returns the since date to use to filter the messages received during that time.
+ * In other words, only the messages received since the datetime specified will be
* included in the history.
- *
+ *
* @return the since date to use to filter the messages received during that time.
*/
public Date getSince() {
@@ -238,7 +238,7 @@ public class MUCInitialPresence implements ExtensionElement {
/**
* Sets the total number of characters to receive in the history.
- *
+ *
* @param maxChars the total number of characters to receive in the history.
* @deprecated use {@link #History(int, int, int, Date)} instead.
*/
@@ -249,7 +249,7 @@ public class MUCInitialPresence implements ExtensionElement {
/**
* Sets the total number of messages to receive in the history.
- *
+ *
* @param maxStanzas the total number of messages to receive in the history.
* @deprecated use {@link #History(int, int, int, Date)} instead.
*/
@@ -259,11 +259,11 @@ public class MUCInitialPresence implements ExtensionElement {
}
/**
- * Sets the number of seconds to use to filter the messages received during that time.
- * In other words, only the messages received in the last "X" seconds will be included in
+ * Sets the number of seconds to use to filter the messages received during that time.
+ * In other words, only the messages received in the last "X" seconds will be included in
* the history.
- *
- * @param seconds the number of seconds to use to filter the messages received during
+ *
+ * @param seconds the number of seconds to use to filter the messages received during
* that time.
* @deprecated use {@link #History(int, int, int, Date)} instead.
*/
@@ -273,10 +273,10 @@ public class MUCInitialPresence implements ExtensionElement {
}
/**
- * Sets the since date to use to filter the messages received during that time.
- * In other words, only the messages received since the datetime specified will be
+ * Sets the since date to use to filter the messages received during that time.
+ * In other words, only the messages received since the datetime specified will be
* included in the history.
- *
+ *
* @param since the since date to use to filter the messages received during that time.
* @deprecated use {@link #History(int, int, int, Date)} instead.
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCItem.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCItem.java
index de39760bf..c02fb7576 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCItem.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCItem.java
@@ -68,7 +68,7 @@ public class MUCItem implements NamedElement {
/**
* Creates a new item child.
- *
+ *
* @param affiliation the actor's affiliation to the room
* @param role the privilege level of an occupant within a room.
* @param actor
@@ -90,7 +90,7 @@ public class MUCItem implements NamedElement {
/**
* Returns the actor (JID of an occupant in the room) that was kicked or banned.
- *
+ *
* @return the JID of an occupant in the room that was kicked or banned.
*/
public Jid getActor() {
@@ -110,7 +110,7 @@ public class MUCItem implements NamedElement {
/**
* Returns the reason for the item child. The reason is optional and could be used to explain
* the reason why a user (occupant) was kicked or banned.
- *
+ *
* @return the reason for the item child.
*/
public String getReason() {
@@ -122,7 +122,7 @@ public class MUCItem implements NamedElement {
* association or connection with a room. The possible affiliations are "owner", "admin",
* "member", and "outcast" (naturally it is also possible to have no affiliation). An
* affiliation lasts across a user's visits to a room.
- *
+ *
* @return the actor's affiliation to the room
*/
public MUCAffiliation getAffiliation() {
@@ -132,7 +132,7 @@ public class MUCItem implements NamedElement {
/**
* Returns the <room@service/nick> by which an occupant is identified within the context of a
* room. If the room is non-anonymous, the JID will be included in the item.
- *
+ *
* @return the room JID by which an occupant is identified within the room.
*/
public Jid getJid() {
@@ -142,7 +142,7 @@ public class MUCItem implements NamedElement {
/**
* Returns the new nickname of an occupant that is changing his/her nickname. The new nickname
* is sent as part of the unavailable presence.
- *
+ *
* @return the new nickname of an occupant that is changing his/her nickname.
*/
public Resourcepart getNick() {
@@ -153,7 +153,7 @@ public class MUCItem implements NamedElement {
* Returns the temporary position or privilege level of an occupant within a room. The possible
* roles are "moderator", "participant", "visitor" and "none" (it is also possible to have no defined
* role). A role lasts only for the duration of an occupant's visit to a room.
- *
+ *
* @return the privilege level of an occupant within a room.
*/
public MUCRole getRole() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCOwner.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCOwner.java
index 9a1c95224..92d70e0dc 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCOwner.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCOwner.java
@@ -23,10 +23,10 @@ import java.util.List;
import org.jivesoftware.smack.packet.IQ;
/**
- * IQ stanza that serves for granting and revoking ownership privileges, granting
- * and revoking administrative privileges and destroying a room. All these operations
+ * IQ stanza that serves for granting and revoking ownership privileges, granting
+ * and revoking administrative privileges and destroying a room. All these operations
* are scoped by the 'http://jabber.org/protocol/muc#owner' namespace.
- *
+ *
* @author Gaston Dombiak
*/
public class MUCOwner extends IQ {
@@ -44,7 +44,7 @@ public class MUCOwner extends IQ {
/**
* Returns a List of item children that holds information about affiliation,
* jids and nicks.
- *
+ *
* @return a List of item children that holds information about affiliation,
* jids and nicks.
*/
@@ -58,7 +58,7 @@ public class MUCOwner extends IQ {
* Returns a request to the server to destroy a room. The sender of the request
* should be the room's owner. If the sender of the destroy request is not the room's owner
* then the server will answer a "Forbidden" error.
- *
+ *
* @return a request to the server to destroy a room.
*/
public Destroy getDestroy() {
@@ -69,7 +69,7 @@ public class MUCOwner extends IQ {
* Sets a request to the server to destroy a room. The sender of the request
* should be the room's owner. If the sender of the destroy request is not the room's owner
* then the server will answer a "Forbidden" error.
- *
+ *
* @param destroy the request to the server to destroy a room.
*/
public void setDestroy(Destroy destroy) {
@@ -78,7 +78,7 @@ public class MUCOwner extends IQ {
/**
* Adds an item child that holds information about affiliation, jids and nicks.
- *
+ *
* @param item the item child that holds information about affiliation, jids and nicks.
*/
public void addItem(MUCItem item) {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/provider/MUCAdminProvider.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/provider/MUCAdminProvider.java
index a14576de1..8b450e71d 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/provider/MUCAdminProvider.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/provider/MUCAdminProvider.java
@@ -28,7 +28,7 @@ import org.xmlpull.v1.XmlPullParserException;
/**
* The MUCAdminProvider parses MUCAdmin packets. (@see MUCAdmin)
- *
+ *
* @author Gaston Dombiak
*/
public class MUCAdminProvider extends IQProvider
- * Use {@link #isPingSupported(Jid)} to determine if XMPP Ping is supported
+ * Use {@link #isPingSupported(Jid)} to determine if XMPP Ping is supported
* by the entity.
- *
+ *
* @param jid The id of the entity the ping is being sent to
* @param pingTimeout The time to wait for a reply in milliseconds
* @return true if a reply was received from the entity, false otherwise.
* @throws NoResponseException if there was no response from the jid.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public boolean ping(Jid jid, long pingTimeout) throws NotConnectedException, NoResponseException, InterruptedException {
final XMPPConnection connection = connection();
@@ -246,14 +246,14 @@ public final class PingManager extends Manager {
}
/**
- * Same as calling {@link #ping(Jid, long)} with the defaultpacket reply
+ * Same as calling {@link #ping(Jid, long)} with the defaultpacket reply
* timeout.
- *
+ *
* @param jid The id of the entity the ping is being sent to
* @return true if a reply was received from the entity, false otherwise.
* @throws NotConnectedException
* @throws NoResponseException if there was no response from the jid.
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public boolean ping(Jid jid) throws NotConnectedException, NoResponseException, InterruptedException {
return ping(jid, connection().getReplyTimeout());
@@ -261,13 +261,13 @@ public final class PingManager extends Manager {
/**
* Query the specified entity to see if it supports the Ping protocol (XEP-0199).
- *
+ *
* @param jid The id of the entity the query is being sent to
* @return true if it supports ping, false otherwise.
- * @throws XMPPErrorException An XMPP related error occurred during the request
+ * @throws XMPPErrorException An XMPP related error occurred during the request
* @throws NoResponseException if there was no response from the jid.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public boolean isPingSupported(Jid jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return ServiceDiscoveryManager.getInstanceFor(connection()).supportsFeature(jid, Ping.NAMESPACE);
@@ -277,12 +277,12 @@ public final class PingManager extends Manager {
* Pings the server. This method will return true if the server is reachable. It
* is the equivalent of calling
- * Unlike the {@link #ping(Jid)} case, this method will return true even if
+ * Unlike the {@link #ping(Jid)} case, this method will return true even if
* {@link #isPingSupported(Jid)} is false.
- *
+ *
* @return true if a reply was received from the server, false otherwise.
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public boolean pingMyServer() throws NotConnectedException, InterruptedException {
return pingMyServer(true);
@@ -298,7 +298,7 @@ public final class PingManager extends Manager {
* @param notifyListeners Notify the PingFailedListener in case of error if true
* @return true if the user's server could be pinged.
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public boolean pingMyServer(boolean notifyListeners) throws NotConnectedException, InterruptedException {
return pingMyServer(notifyListeners, connection().getReplyTimeout());
@@ -315,7 +315,7 @@ public final class PingManager extends Manager {
* @param pingTimeout The time to wait for a reply in milliseconds
* @return true if the user's server could be pinged.
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public boolean pingMyServer(boolean notifyListeners, long pingTimeout) throws NotConnectedException, InterruptedException {
boolean res;
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/packet/Ping.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/packet/Ping.java
index e59c73083..65d7186fa 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/packet/Ping.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/packet/Ping.java
@@ -38,7 +38,7 @@ public class Ping extends SimpleIQ {
/**
* Create an XMPP Pong for this Ping.
- *
+ *
* @return the Pong
*/
public IQ getPong() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/privacy/PrivacyList.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/privacy/PrivacyList.java
index eee6de877..120c4d341 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/privacy/PrivacyList.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/privacy/PrivacyList.java
@@ -21,7 +21,7 @@ import java.util.List;
import org.jivesoftware.smackx.privacy.packet.PrivacyItem;
/**
- * A privacy list represents a list of contacts that is a read only class used to represent a set of allowed or blocked communications.
+ * A privacy list represents a list of contacts that is a read only class used to represent a set of allowed or blocked communications.
* Basically it can:
*
* @param connection the XMPP connection.
@@ -203,7 +203,7 @@ public final class PrivacyListManager extends Manager {
/**
* Returns the PrivacyListManager instance associated with a given XMPPConnection.
- *
+ *
* @param connection the connection used to look for the proper PrivacyListManager.
* @return the PrivacyListManager associated with a given XMPPConnection.
*/
@@ -218,17 +218,17 @@ public final class PrivacyListManager extends Manager {
}
/**
- * Send the {@link Privacy} stanza to the server in order to know some privacy content and then
+ * Send the {@link Privacy} stanza to the server in order to know some privacy content and then
* waits for the answer.
- *
+ *
* @param requestPrivacy is the {@link Privacy} stanza configured properly whose XML
* will be sent to the server.
* @return a new {@link Privacy} with the data received from the server.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
- */
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
+ */
private Privacy getRequest(Privacy requestPrivacy) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// The request is a get iq type
requestPrivacy.setType(Privacy.Type.get);
@@ -239,14 +239,14 @@ public final class PrivacyListManager extends Manager {
/**
* Send the {@link Privacy} stanza to the server in order to modify the server privacy and waits
* for the answer.
- *
+ *
* @param requestPrivacy is the {@link Privacy} stanza configured properly whose xml will be
* sent to the server.
* @return a new {@link Privacy} with the data received from the server.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
private Stanza setRequest(Privacy requestPrivacy) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// The request is a get iq type
@@ -257,13 +257,13 @@ public final class PrivacyListManager extends Manager {
/**
* Answer a privacy containing the list structure without {@link PrivacyItem}.
- *
+ *
* @return a Privacy with the list names.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
- */
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
+ */
private Privacy getPrivacyWithListNames() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// The request of the list is an empty privacy message
Privacy request = new Privacy();
@@ -274,13 +274,13 @@ public final class PrivacyListManager extends Manager {
/**
* Answer the active privacy list. Returns Unlike the {@link Form}.setAnswer(XXX)} methods, which throw an exception if the field does not
* exist, all ConfigureForm.setXXX methods will create the field in the wrapped form
- * if it does not already exist.
- *
+ * if it does not already exist.
+ *
* @author Robin Collier
*/
public class ConfigureForm extends Form {
/**
* Create a decorator from an existing {@link DataForm} that has been
* retrieved from parsing a node configuration request.
- *
+ *
* @param configDataForm
*/
public ConfigureForm(DataForm configDataForm) {
@@ -48,7 +48,7 @@ public class ConfigureForm extends Form {
* Create a decorator from an existing {@link Form} for node configuration.
* Typically, this can be used to create a decorator for an answer form
* by using the result of {@link #createAnswerForm()} as the input parameter.
- *
+ *
* @param nodeConfigForm
*/
public ConfigureForm(Form nodeConfigForm) {
@@ -56,8 +56,8 @@ public class ConfigureForm extends Form {
}
/**
- * Create a new form for configuring a node. This would typically only be used
- * when creating and configuring a node at the same time via {@link PubSubManager#createNode(String, Form)}, since
+ * Create a new form for configuring a node. This would typically only be used
+ * when creating and configuring a node at the same time via {@link PubSubManager#createNode(String, Form)}, since
* configuration of an existing node is typically accomplished by calling {@link LeafNode#getNodeConfiguration()} and
* using the resulting form to create a answer form. See {@link #ConfigureForm(Form)}.
* @param formType
@@ -68,7 +68,7 @@ public class ConfigureForm extends Form {
/**
* Get the currently configured {@link AccessModel}, null if it is not set.
- *
+ *
* @return The current {@link AccessModel}
*/
public AccessModel getAccessModel() {
@@ -82,7 +82,7 @@ public class ConfigureForm extends Form {
/**
* Sets the value of access model.
- *
+ *
* @param accessModel
*/
public void setAccessModel(AccessModel accessModel) {
@@ -91,9 +91,9 @@ public class ConfigureForm extends Form {
}
/**
- * Returns the URL of an XSL transformation which can be applied to payloads in order to
+ * Returns the URL of an XSL transformation which can be applied to payloads in order to
* generate an appropriate message body element.
- *
+ *
* @return URL to an XSL
*/
public String getBodyXSLT() {
@@ -101,9 +101,9 @@ public class ConfigureForm extends Form {
}
/**
- * Set the URL of an XSL transformation which can be applied to payloads in order to
+ * Set the URL of an XSL transformation which can be applied to payloads in order to
* generate an appropriate message body element.
- *
+ *
* @param bodyXslt The URL of an XSL
*/
public void setBodyXSLT(String bodyXslt) {
@@ -113,7 +113,7 @@ public class ConfigureForm extends Form {
/**
* The id's of the child nodes associated with a collection node (both leaf and collection).
- *
+ *
* @return list of child nodes.
*/
public List Value: {@link AccessModel} Value: {@link URL} Value: String Value: {@link URL} Value: {@link ChildrenAssociationPolicy} Value: List of JIDs as Strings Value: List of Strings Value: int Value: int Value: int Value: {@link NodeType} Value: boolean Value: boolean Value: boolean Value: boolean Value: boolean Value: {@link PublishModel} Value: List of JIDs as Strings Value: List of JIDs as Strings Value: List of strings Value: boolean Value: String Value: String Top level extensions have only one element, but they can have multiple children, or
- * their children can have multiple children. This interface is a way of allowing extensions
- * to be embedded within one another as a partial or complete one to one mapping of extension
+ * their children can have multiple children. This interface is a way of allowing extensions
+ * to be embedded within one another as a partial or complete one to one mapping of extension
* to element.
- *
+ *
* @author Robin Collier
*/
public interface EmbeddedPacketExtension extends ExtensionElement {
/**
* Get the list of embedded {@link ExtensionElement} objects.
- *
+ *
* @return List of embedded {@link ExtensionElement}
*/
List
* To customise the payload object being returned from the {@link PayloadItem#getPayload()} method, you can
* add a custom parser as explained in {@link ItemProvider}.
* Please note, this class is used for internal purposes, and is not required for usage of
+ *
+ * Please note, this class is used for internal purposes, and is not required for usage of
* pubsub functionality. Valid scenarios are: Valid scenarios are: Note: Some implementations may keep the last item
* sent.
- * @throws XMPPErrorException
+ * @throws XMPPErrorException
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void deleteAllItems() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
PubSub request = createPubsubPacket(Type.set, new NodeExtension(PubSubElementType.PURGE_OWNER, getId()));
@@ -348,12 +348,12 @@ public class LeafNode extends Node {
/**
* Delete the item with the specified id from the node.
- *
+ *
* @param itemId The id of the item
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void deleteItem(String itemId) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
Collection
* Note that this is an optional PubSub feature ('pubsub#modify-affiliations').
* To customise the payload object being returned from the {@link #getPayload()} method, you can
* add a custom parser as explained in {@link ItemProvider}.
- * Note: This is not valid for publishing an item to a node, only receiving from
- * one as part of {@link Message}. If used to create an Item to publish
+ * Note: This is not valid for publishing an item to a node, only receiving from
+ * one as part of {@link Message}. If used to create an Item to publish
* (via {@link LeafNode#publish(Item)}, the server may return an
* error for an invalid packet.
* Unlike the {@link Form}.setAnswer(XXX)} methods, which throw an exception if the field does not
* exist, all SubscribeForm.setXXX methods will create the field in the wrapped form
* if it does not already exist.
- *
+ *
* @author Robin Collier
*/
public class SubscribeForm extends Form {
@@ -54,7 +54,7 @@ public class SubscribeForm extends Form {
/**
* Determines if an entity wants to receive notifications.
- *
+ *
* @return true if want to receive, false otherwise
*/
public boolean isDeliverOn() {
@@ -73,7 +73,7 @@ public class SubscribeForm extends Form {
/**
* Determines if notifications should be delivered as aggregations or not.
- *
+ *
* @return true to aggregate, false otherwise
*/
public boolean isDigestOn() {
@@ -82,8 +82,8 @@ public class SubscribeForm extends Form {
/**
* Sets whether notifications should be delivered as aggregations or not.
- *
- * @param digestOn true to aggregate, false otherwise
+ *
+ * @param digestOn true to aggregate, false otherwise
*/
public void setDigestOn(boolean digestOn) {
addField(SubscribeOptionFields.deliver, FormField.Type.bool);
@@ -92,7 +92,7 @@ public class SubscribeForm extends Form {
/**
* Gets the minimum number of milliseconds between sending notification digests.
- *
+ *
* @return The frequency in milliseconds
*/
public int getDigestFrequency() {
@@ -101,7 +101,7 @@ public class SubscribeForm extends Form {
/**
* Sets the minimum number of milliseconds between sending notification digests.
- *
+ *
* @param frequency The frequency in milliseconds
*/
public void setDigestFrequency(int frequency) {
@@ -111,7 +111,7 @@ public class SubscribeForm extends Form {
/**
* Get the time at which the leased subscription will expire, or has expired.
- *
+ *
* @return The expiry date
*/
public Date getExpiry() {
@@ -128,7 +128,7 @@ public class SubscribeForm extends Form {
/**
* Sets the time at which the leased subscription will expire, or has expired.
- *
+ *
* @param expire The expiry date
*/
public void setExpiry(Date expire) {
@@ -137,9 +137,9 @@ public class SubscribeForm extends Form {
}
/**
- * Determines whether the entity wants to receive an XMPP message body in
+ * Determines whether the entity wants to receive an XMPP message body in
* addition to the payload format.
- *
+ *
* @return true to receive the message body, false otherwise
*/
public boolean isIncludeBody() {
@@ -147,9 +147,9 @@ public class SubscribeForm extends Form {
}
/**
- * Sets whether the entity wants to receive an XMPP message body in
+ * Sets whether the entity wants to receive an XMPP message body in
* addition to the payload format.
- *
+ *
* @param include true to receive the message body, false otherwise
*/
public void setIncludeBody(boolean include) {
@@ -158,9 +158,9 @@ public class SubscribeForm extends Form {
}
/**
- * Gets the {@link PresenceState} for which an entity wants to receive
+ * Gets the {@link PresenceState} for which an entity wants to receive
* notifications.
- *
+ *
* @return the list of states
*/
public List Value: boolean Value: boolean Value: int Value: boolean Value:
- *
+ *
* If the value to set to the field is not a basic type (e.g. String, boolean, int, etc.) you
- * can use this message where the String value is the String representation of the object.
- *
+ * can use this message where the String value is the String representation of the object.
+ *
* @param variable the variable name that was completed.
* @param value the String value that was answered.
* @throws IllegalStateException if the form is not of type "submit".
@@ -126,10 +126,10 @@ public class Form {
}
/**
- * Sets a new int value to a given form's field. The field whose variable matches the
- * requested variable will be completed with the specified value. If no field could be found
+ * Sets a new int value to a given form's field. The field whose variable matches the
+ * requested variable will be completed with the specified value. If no field could be found
* for the specified variable then an exception will be raised.
- *
+ *
* @param variable the variable name that was completed.
* @param value the int value that was answered.
* @throws IllegalStateException if the form is not of type "submit".
@@ -146,10 +146,10 @@ public class Form {
}
/**
- * Sets a new long value to a given form's field. The field whose variable matches the
- * requested variable will be completed with the specified value. If no field could be found
+ * Sets a new long value to a given form's field. The field whose variable matches the
+ * requested variable will be completed with the specified value. If no field could be found
* for the specified variable then an exception will be raised.
- *
+ *
* @param variable the variable name that was completed.
* @param value the long value that was answered.
* @throws IllegalStateException if the form is not of type "submit".
@@ -166,10 +166,10 @@ public class Form {
}
/**
- * Sets a new float value to a given form's field. The field whose variable matches the
- * requested variable will be completed with the specified value. If no field could be found
+ * Sets a new float value to a given form's field. The field whose variable matches the
+ * requested variable will be completed with the specified value. If no field could be found
* for the specified variable then an exception will be raised.
- *
+ *
* @param variable the variable name that was completed.
* @param value the float value that was answered.
* @throws IllegalStateException if the form is not of type "submit".
@@ -186,10 +186,10 @@ public class Form {
}
/**
- * Sets a new double value to a given form's field. The field whose variable matches the
- * requested variable will be completed with the specified value. If no field could be found
+ * Sets a new double value to a given form's field. The field whose variable matches the
+ * requested variable will be completed with the specified value. If no field could be found
* for the specified variable then an exception will be raised.
- *
+ *
* @param variable the variable name that was completed.
* @param value the double value that was answered.
* @throws IllegalStateException if the form is not of type "submit".
@@ -217,10 +217,10 @@ public class Form {
}
/**
- * Sets a new boolean value to a given form's field. The field whose variable matches the
- * requested variable will be completed with the specified value. If no field could be found
+ * Sets a new boolean value to a given form's field. The field whose variable matches the
+ * requested variable will be completed with the specified value. If no field could be found
* for the specified variable then an exception will be raised.
- *
+ *
* @param variable the variable name that was completed.
* @param value the boolean value that was answered.
* @throws IllegalStateException if the form is not of type "submit".
@@ -239,19 +239,19 @@ public class Form {
}
/**
- * Sets a new Object value to a given form's field. In fact, the object representation
+ * Sets a new Object value to a given form's field. In fact, the object representation
* (i.e. #toString) will be the actual value of the field.
- *
+ *
* If the value to set to the field is not a basic type (e.g. String, boolean, int, etc.) you
- * will need to use {@link #setAnswer(String, String)} where the String value is the
- * String representation of the object.
- *
- * Before setting the new value to the field we will check if the form is of type submit. If
- * the form isn't of type submit means that it's not possible to complete the form and an
+ * will need to use {@link #setAnswer(String, String)} where the String value is the
+ * String representation of the object.
+ *
+ * Before setting the new value to the field we will check if the form is of type submit. If
+ * the form isn't of type submit means that it's not possible to complete the form and an
* exception will be thrown.
- *
+ *
* @param field the form field that was completed.
- * @param value the Object value that was answered. The object representation will be the
+ * @param value the Object value that was answered. The object representation will be the
* actual value.
* @throws IllegalStateException if the form is not of type "submit".
*/
@@ -265,13 +265,13 @@ public class Form {
}
/**
- * Sets a new values to a given form's field. The field whose variable matches the requested
- * variable will be completed with the specified values. If no field could be found for
+ * Sets a new values to a given form's field. The field whose variable matches the requested
+ * variable will be completed with the specified values. If no field could be found for
* the specified variable then an exception will be raised.
- *
+ *
* The Objects contained in the List could be of any type. The String representation of them
* (i.e. #toString) will be actually used when sending the answer to the server.
- *
+ *
* @param variable the variable that was completed.
* @param values the values that were answered.
* @throws IllegalStateException if the form is not of type "submit".
@@ -295,7 +295,7 @@ public class Form {
default:
throw new IllegalArgumentException("This field only accept list of values.");
}
- // Clear the old values
+ // Clear the old values
field.resetValues();
// Set the new values. The string representation of each value will be actually used.
field.addValues(values);
@@ -344,10 +344,10 @@ public class Form {
/**
* Returns the field of the form whose variable matches the specified variable.
- * The fields of type FIXED will never be returned since they do not specify a
- * variable.
- *
- * @param variable the variable to look for in the form fields.
+ * The fields of type FIXED will never be returned since they do not specify a
+ * variable.
+ *
+ * @param variable the variable to look for in the form fields.
* @return the field of the form whose variable matches the specified variable.
*/
public FormField getField(String variable) {
@@ -367,7 +367,7 @@ public class Form {
/**
* Returns the instructions that explain how to fill out the form and what the form is about.
- *
+ *
* @return instructions that explain how to fill out the form.
*/
public String getInstructions() {
@@ -385,9 +385,9 @@ public class Form {
/**
- * Returns the description of the data. It is similar to the title on a web page or an X
+ * Returns the description of the data. It is similar to the title on a web page or an X
* window. You can put a title on either a form to fill out, or a set of data results.
- *
+ *
* @return description of the data.
*/
public String getTitle() {
@@ -398,17 +398,17 @@ public class Form {
/**
* Returns the meaning of the data within the context. The data could be part of a form
* to fill out, a form submission or data results.
- *
+ *
* @return the form's type.
*/
public DataForm.Type getType() {
- return dataForm.getType();
+ return dataForm.getType();
}
/**
* Sets instructions that explain how to fill out the form and what the form is about.
- *
+ *
* @param instructions instructions that explain how to fill out the form.
*/
public void setInstructions(String instructions) {
@@ -427,7 +427,7 @@ public class Form {
/**
* Sets the description of the data. It is similar to the title on a web page or an X window.
* You can put a title on either a form to fill out, or a set of data results.
- *
+ *
* @param title description of the data.
*/
public void setTitle(String title) {
@@ -435,15 +435,15 @@ public class Form {
}
/**
- * Returns a DataForm that serves to send this Form to the server. If the form is of type
- * submit, it may contain fields with no value. These fields will be removed since they only
- * exist to assist the user while editing/completing the form in a UI.
- *
+ * Returns a DataForm that serves to send this Form to the server. If the form is of type
+ * submit, it may contain fields with no value. These fields will be removed since they only
+ * exist to assist the user while editing/completing the form in a UI.
+ *
* @return the wrapped DataForm.
*/
public DataForm getDataFormToSend() {
if (isSubmitType()) {
- // Create a new DataForm that contains only the answered fields
+ // Create a new DataForm that contains only the answered fields
DataForm dataFormToSend = new DataForm(getType());
for (FormField field : getFields()) {
if (!field.getValues().isEmpty()) {
@@ -457,7 +457,7 @@ public class Form {
/**
* Returns true if the form is a form to fill out.
- *
+ *
* @return if the form is a form to fill out.
*/
private boolean isFormType() {
@@ -466,7 +466,7 @@ public class Form {
/**
* Returns true if the form is a form to submit.
- *
+ *
* @return if the form is a form to submit.
*/
private boolean isSubmitType() {
@@ -475,16 +475,16 @@ public class Form {
/**
* Returns a new Form to submit the completed values. The new Form will include all the fields
- * of the original form except for the fields of type FIXED. Only the HIDDEN fields will
- * include the same value of the original form. The other fields of the new form MUST be
- * completed. If a field remains with no answer when sending the completed form, then it won't
+ * of the original form except for the fields of type FIXED. Only the HIDDEN fields will
+ * include the same value of the original form. The other fields of the new form MUST be
+ * completed. If a field remains with no answer when sending the completed form, then it won't
* be included as part of the completed form.
- *
- * The reason why the fields with variables are included in the new form is to provide a model
- * for binding with any UI. This means that the UIs will use the original form (of type
+ *
+ * The reason why the fields with variables are included in the new form is to provide a model
+ * for binding with any UI. This means that the UIs will use the original form (of type
* "form") to learn how to render the form, but the UIs will bind the fields to the form of
* type submit.
- *
+ *
* @return a Form to submit the completed values.
*/
public Form createAnswerForm() {
@@ -500,9 +500,9 @@ public class Form {
FormField newField = new FormField(field.getVariable());
newField.setType(field.getType());
form.addField(newField);
- // Set the answer ONLY to the hidden fields
+ // Set the answer ONLY to the hidden fields
if (field.getType() == FormField.Type.hidden) {
- // Since a hidden field could have many values we need to collect them
+ // Since a hidden field could have many values we need to collect them
// in a list
List
* For example, to add a new item, do as follows:
- *
+ *
*
- *
+ *
* Before starting to send XHTML messages to a user, check that the user can handle XHTML
- * messages. Enable the XHTML support to indicate that this client handles XHTML messages.
+ * messages. Enable the XHTML support to indicate that this client handles XHTML messages.
*
* @param connection the connection where the service will be enabled or disabled
- * @param enabled indicates if the service will be enabled or disabled
+ * @param enabled indicates if the service will be enabled or disabled
*/
public static synchronized void setServiceEnabled(XMPPConnection connection, boolean enabled) {
if (isServiceEnabled(connection) == enabled)
@@ -129,10 +129,10 @@ public class XHTMLManager {
* @param connection the connection to use to perform the service discovery
* @param userID the user to check. A fully qualified xmpp ID, e.g. jdoe@example.com
* @return a boolean indicating whether the specified user handles XHTML messages
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public static boolean isServiceEnabled(XMPPConnection connection, Jid userID)
throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java
index cb37980ca..b08507ad0 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/XHTMLText.java
@@ -21,7 +21,7 @@ import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.util.XmlStringBuilder;
/**
- * An XHTMLText represents formatted text. This class also helps to build valid
+ * An XHTMLText represents formatted text. This class also helps to build valid
* XHTML tags.
*
* @author Gaston Dombiak
@@ -34,7 +34,7 @@ public class XHTMLText {
/**
* Creates a new XHTMLText with body tag params.
- *
+ *
* @param style the XHTML style of the body
* @param lang the language of the body
*/
@@ -48,7 +48,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that an anchor section begins.
- *
+ *
* @param href indicates the URL being linked to
* @param style the XHTML style of the anchor
* @return this.
@@ -74,7 +74,7 @@ public class XHTMLText {
public static final String BLOCKQUOTE = "blockquote";
/**
* Appends a tag that indicates that a blockquote section begins.
- *
+ *
* @param style the XHTML style of the blockquote
* @return this.
*/
@@ -97,7 +97,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that a body section begins.
- *
+ *
* @param style the XHTML style of the body
* @param lang the language of the body
* @return this.
@@ -191,7 +191,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates a header, a title of a section of the message.
- *
+ *
* @param level the level of the Header. It must be a value between 1 and 3
* @param style the XHTML style of the blockquote
*
@@ -209,7 +209,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that a header section ends.
- *
+ *
* @param level the level of the Header. It must be a value between 1 and 3
* @return this.
*/
@@ -225,7 +225,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates an image.
- *
+ *
* @param align how text should flow around the picture
* @param alt the text to show if you don't show the picture
* @param height how tall is the picture
@@ -250,7 +250,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates the start of a new line item within a list.
- *
+ *
* @param style the style of the line item
*
* @return this.
@@ -273,9 +273,9 @@ public class XHTMLText {
}
/**
- * Appends a tag that creates an ordered list. "Ordered" means that the order of the items
- * in the list is important. To show this, browsers automatically number the list.
- *
+ * Appends a tag that creates an ordered list. "Ordered" means that the order of the items
+ * in the list is important. To show this, browsers automatically number the list.
+ *
* @param style the style of the ordered list
*
* @return this.
@@ -300,9 +300,9 @@ public class XHTMLText {
public static final String UL = "ul";
/**
- * Appends a tag that creates an unordered list. The unordered part means that the items
+ * Appends a tag that creates an unordered list. The unordered part means that the items
* in the list are not in any particular order.
- *
+ *
* @param style the style of the unordered list
*
* @return this.
@@ -327,9 +327,9 @@ public class XHTMLText {
public static final String P = "p";
/**
- * Appends a tag that indicates the start of a new paragraph. This is usually rendered
+ * Appends a tag that indicates the start of a new paragraph. This is usually rendered
* with two carriage returns, producing a single blank line in between the two paragraphs.
- *
+ *
* @param style the style of the paragraph
*
* @return this.
@@ -342,7 +342,7 @@ public class XHTMLText {
}
/**
- * Appends a tag that indicates the end of a new paragraph. This is usually rendered
+ * Appends a tag that indicates the end of a new paragraph. This is usually rendered
* with two carriage returns, producing a single blank line in between the two paragraphs.
*
* @return this.
@@ -356,7 +356,7 @@ public class XHTMLText {
/**
* Appends a tag that indicates that an inlined quote section begins.
- *
+ *
* @param style the style of the inlined quote
*
* @return this.
@@ -382,7 +382,7 @@ public class XHTMLText {
/**
* Appends a tag that allows to set the fonts for a span of text.
- *
+ *
* @param style the style for a span of text
*
* @return this.
@@ -428,7 +428,7 @@ public class XHTMLText {
/**
* Appends a given text to the XHTMLText.
- *
+ *
* @param textToAppend the text to append
*
* @return this.
@@ -440,8 +440,8 @@ public class XHTMLText {
/**
* Returns the text of the XHTMLText.
- *
- * @return the text of the XHTMLText
+ *
+ * @return the text of the XHTMLText
*/
@Override
public String toString() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/packet/XHTMLExtension.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/packet/XHTMLExtension.java
index 059137b25..3653f56b1 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/packet/XHTMLExtension.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xhtmlim/packet/XHTMLExtension.java
@@ -26,7 +26,7 @@ import org.jivesoftware.smack.packet.Message;
import org.jivesoftware.smack.util.XmlStringBuilder;
/**
- * An XHTML sub-packet, which is used by XMPP clients to exchange formatted text. The XHTML
+ * An XHTML sub-packet, which is used by XMPP clients to exchange formatted text. The XHTML
* extension is only a subset of XHTML 1.0.
*
* The following link summarizes the requirements of XHTML IM:
@@ -53,7 +53,7 @@ public class XHTMLExtension implements ExtensionElement {
return ELEMENT;
}
- /**
+ /**
* Returns the XML namespace of the extension sub-packet root element.
* According the specification the namespace is always "http://jabber.org/protocol/xhtml-im"
*
@@ -66,7 +66,7 @@ public class XHTMLExtension implements ExtensionElement {
/**
* Returns the XML representation of a XHTML extension according the specification.
- *
+ *
* Usually the XML representation will be inside of a Message XML representation like
* in the following example:
*
* Tests sending data encapsulated in message stanzas.
- *
+ *
* @author Henning Staib
*/
public class InBandBytestreamSessionMessageTest extends InitExtensions {
@@ -77,9 +77,9 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Initialize fields used in the tests.
- * @throws XMPPException
- * @throws SmackException
- * @throws InterruptedException
+ * @throws XMPPException
+ * @throws SmackException
+ * @throws InterruptedException
*/
@Before
public void setup() throws XMPPException, SmackException, InterruptedException {
@@ -115,7 +115,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Test the output stream write(byte[]) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -140,7 +140,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Test the output stream write(byte) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -167,7 +167,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Test the output stream write(byte[], int, int) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -196,7 +196,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Test the output stream flush() method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -223,7 +223,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Test successive calls to the output stream flush() method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -252,7 +252,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* If a data stanza is received out of order the session should be closed. See XEP-0047 Section
* 2.2.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -292,7 +292,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Test the input stream read(byte[], int, int) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -337,7 +337,7 @@ public class InBandBytestreamSessionMessageTest extends InitExtensions {
/**
* Test the input stream read() method.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionTest.java
index 425cffe2e..b19c9cc44 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionTest.java
@@ -52,7 +52,7 @@ import org.powermock.reflect.Whitebox;
*
* Tests the basic behavior of an In-Band Bytestream session along with sending data encapsulated in
* IQ stanzas.
- *
+ *
* @author Henning Staib
*/
public class InBandBytestreamSessionTest extends InitExtensions {
@@ -78,9 +78,9 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Initialize fields used in the tests.
- * @throws XMPPException
- * @throws SmackException
- * @throws InterruptedException
+ * @throws XMPPException
+ * @throws SmackException
+ * @throws InterruptedException
*/
@Before
public void setup() throws XMPPException, SmackException, InterruptedException {
@@ -114,7 +114,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test the output stream write(byte[]) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -140,7 +140,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test the output stream write(byte) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -168,7 +168,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test the output stream write(byte[], int, int) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -198,7 +198,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test the output stream flush() method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -226,7 +226,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test successive calls to the output stream flush() method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -255,7 +255,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test that the data is correctly chunked.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -298,7 +298,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* If the input stream is closed the output stream should not be closed as well.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -337,7 +337,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Valid data packets should be confirmed.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -363,7 +363,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* If the data stanza has a sequence that is already used an 'unexpected-request' error should
* be returned. See XEP-0047 Section 2.2.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -405,7 +405,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* If the data stanza contains invalid Base64 encoding an 'bad-request' error should be
* returned. See XEP-0047 Section 2.2.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -441,7 +441,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* If a data stanza is received out of order the session should be closed. See XEP-0047 Section
* 2.2.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -484,7 +484,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test the input stream read(byte[], int, int) method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -531,7 +531,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* Test the input stream read() method.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -575,7 +575,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* If the output stream is closed the input stream should not be closed as well.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -618,7 +618,7 @@ public class InBandBytestreamSessionTest extends InitExtensions {
/**
* If the input stream is closed concurrently there should be no deadlock.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListenerTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListenerTest.java
index 7947f0a05..76c6647c6 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListenerTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InitiationListenerTest.java
@@ -39,7 +39,7 @@ import org.powermock.reflect.Whitebox;
/**
* Test for the InitiationListener class.
- *
+ *
* @author Henning Staib
*/
public class InitiationListenerTest extends InitExtensions {
@@ -78,7 +78,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* If no listeners are registered for incoming In-Band Bytestream requests, all request should
* be rejected with an error.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -105,7 +105,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* Open request with a block size that exceeds the maximum block size should be replied with an
* resource-constraint error.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -132,7 +132,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* If a listener for all requests is registered it should be notified on incoming requests.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -160,7 +160,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* If a listener for a specific user in registered it should be notified on incoming requests
* for that user.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -188,7 +188,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* If listener for a specific user is registered it should not be notified on incoming requests
* from other users.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -222,7 +222,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* If a user specific listener and an all requests listener is registered only the user specific
* listener should be notified.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -255,7 +255,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* If a user specific listener and an all requests listener is registered only the all requests
* listener should be notified on an incoming request for another user.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -288,7 +288,7 @@ public class InitiationListenerTest extends InitExtensions {
/**
* If a request with a specific session ID should be ignored no listeners should be notified.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/CloseTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/CloseTest.java
index d300046d3..4adb4857b 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/CloseTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/CloseTest.java
@@ -32,7 +32,7 @@ import org.jxmpp.jid.impl.JidCreate;
/**
* Test for the Close class.
- *
+ *
* @author Henning Staib
*/
public class CloseTest extends InitExtensions {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtensionTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtensionTest.java
index 45fd55835..f3c881aa6 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtensionTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataPacketExtensionTest.java
@@ -32,7 +32,7 @@ import org.junit.Test;
/**
* Test for the DataPacketExtension class.
- *
+ *
* @author Henning Staib
*/
public class DataPacketExtensionTest extends InitExtensions {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataTest.java
index 3484686d7..ea53cf94c 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/DataTest.java
@@ -34,7 +34,7 @@ import org.jxmpp.jid.impl.JidCreate;
/**
* Test for the Data class.
- *
+ *
* @author Henning Staib
*/
public class DataTest extends InitExtensions {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/OpenTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/OpenTest.java
index dc15a5239..730035ced 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/OpenTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/packet/OpenTest.java
@@ -33,7 +33,7 @@ import org.jxmpp.jid.impl.JidCreate;
/**
* Test for the Open class.
- *
+ *
* @author Henning Staib
*/
public class OpenTest extends InitExtensions {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/provider/OpenIQProviderTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/provider/OpenIQProviderTest.java
index bcc22e1ee..ef0918c31 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/provider/OpenIQProviderTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/provider/OpenIQProviderTest.java
@@ -34,7 +34,7 @@ import org.xmlpull.v1.XmlPullParserFactory;
/**
* Test for the OpenIQProvider class.
- *
+ *
* @author Henning Staib
*/
public class OpenIQProviderTest extends InitExtensions {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/InitiationListenerTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/InitiationListenerTest.java
index bb6eb109d..5db3fd84d 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/InitiationListenerTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/InitiationListenerTest.java
@@ -41,7 +41,7 @@ import org.powermock.reflect.Whitebox;
/**
* Test for the InitiationListener class.
- *
+ *
* @author Henning Staib
*/
public class InitiationListenerTest {
@@ -88,7 +88,7 @@ public class InitiationListenerTest {
/**
* If no listeners are registered for incoming SOCKS5 Bytestream requests, all request should be
* rejected with an error.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -111,7 +111,7 @@ public class InitiationListenerTest {
/**
* If a listener for all requests is registered it should be notified on incoming requests.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -136,7 +136,7 @@ public class InitiationListenerTest {
/**
* If a listener for a specific user in registered it should be notified on incoming requests
* for that user.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -161,7 +161,7 @@ public class InitiationListenerTest {
/**
* If listener for a specific user is registered it should not be notified on incoming requests
* from other users.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -192,7 +192,7 @@ public class InitiationListenerTest {
/**
* If a user specific listener and an all requests listener is registered only the user specific
* listener should be notified.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -222,7 +222,7 @@ public class InitiationListenerTest {
/**
* If a user specific listener and an all requests listener is registered only the all requests
* listener should be notified on an incoming request for another user.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -254,7 +254,7 @@ public class InitiationListenerTest {
/**
* If a request with a specific session ID should be ignored no listeners should be notified.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamManagerTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamManagerTest.java
index 6d96bcedc..251c4fa89 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamManagerTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamManagerTest.java
@@ -60,7 +60,7 @@ import org.jxmpp.stringprep.XmppStringprepException;
/**
* Test for Socks5BytestreamManager.
- *
+ *
* @author Henning Staib
*/
public class Socks5ByteStreamManagerTest {
@@ -81,9 +81,9 @@ public class Socks5ByteStreamManagerTest {
/**
* Initialize fields used in the tests.
- * @throws XMPPException
- * @throws SmackException
- * @throws InterruptedException
+ * @throws XMPPException
+ * @throws SmackException
+ * @throws InterruptedException
*/
@Before
public void setup() throws XMPPException, SmackException, InterruptedException {
@@ -146,7 +146,7 @@ public class Socks5ByteStreamManagerTest {
/**
* Invoking {@link Socks5BytestreamManager#establishSession(org.jxmpp.jid.Jid)} should throw an exception
* if the given target does not support SOCKS5 Bytestream.
- * @throws XMPPException
+ * @throws XMPPException
*/
@Test
public void shouldFailIfTargetDoesNotSupportSocks5() throws XMPPException {
@@ -462,7 +462,7 @@ public class Socks5ByteStreamManagerTest {
/**
* Invoking {@link Socks5BytestreamManager#establishSession(org.jxmpp.jid.Jid, String)} should fail if the
* proxy used by target is invalid.
- * @throws XmppStringprepException
+ * @throws XmppStringprepException
*/
@Test
public void shouldFailIfTargetUsesInvalidSocks5Proxy() throws XmppStringprepException {
@@ -638,7 +638,7 @@ public class Socks5ByteStreamManagerTest {
/**
* Invoking {@link Socks5BytestreamManager#establishSession(org.jxmpp.jid.Jid, String)} should successfully
* negotiate and return a SOCKS5 Bytestream connection.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -753,7 +753,7 @@ public class Socks5ByteStreamManagerTest {
/**
* If multiple network addresses are added to the local SOCKS5 proxy, all of them should be
* contained in the SOCKS5 Bytestream request.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -852,7 +852,7 @@ public class Socks5ByteStreamManagerTest {
* Invoking {@link Socks5BytestreamManager#establishSession(org.jxmpp.jid.Jid, String)} the first time
* should successfully negotiate a SOCKS5 Bytestream via the second SOCKS5 proxy and should
* prioritize this proxy for a second SOCKS5 Bytestream negotiation.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -937,7 +937,7 @@ public class Socks5ByteStreamManagerTest {
* Invoking {@link Socks5BytestreamManager#establishSession(org.jxmpp.jid.Jid, String)} the first time
* should successfully negotiate a SOCKS5 Bytestream via the second SOCKS5 proxy. The second
* negotiation should run in the same manner if prioritization is disabled.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamRequestTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamRequestTest.java
index 371df7597..9811d5f39 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamRequestTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ByteStreamRequestTest.java
@@ -49,7 +49,7 @@ import org.jxmpp.jid.impl.JidCreate;
/**
* Tests for the Socks5BytestreamRequest class.
- *
+ *
* @author Henning Staib
*/
public class Socks5ByteStreamRequestTest {
@@ -67,9 +67,9 @@ public class Socks5ByteStreamRequestTest {
/**
* Initialize fields used in the tests.
- * @throws XMPPException
- * @throws SmackException
- * @throws InterruptedException
+ * @throws XMPPException
+ * @throws SmackException
+ * @throws InterruptedException
*/
@Before
public void setup() throws XMPPException, SmackException, InterruptedException {
@@ -85,7 +85,7 @@ public class Socks5ByteStreamRequestTest {
/**
* Accepting a SOCKS5 Bytestream request should fail if the request doesn't contain any Socks5
* proxies.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -127,7 +127,7 @@ public class Socks5ByteStreamRequestTest {
/**
* Accepting a SOCKS5 Bytestream request should fail if target is not able to connect to any of
* the provided SOCKS5 proxies.
- *
+ *
* @throws Exception
*/
@Test
@@ -170,7 +170,7 @@ public class Socks5ByteStreamRequestTest {
/**
* Target should not try to connect to SOCKS5 proxies that already failed twice.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -259,7 +259,7 @@ public class Socks5ByteStreamRequestTest {
/**
* Target should not not blacklist any SOCKS5 proxies regardless of failing connections.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -316,7 +316,7 @@ public class Socks5ByteStreamRequestTest {
* If the SOCKS5 Bytestream request contains multiple SOCKS5 proxies and the first one doesn't
* respond, the connection attempt to this proxy should not consume the whole timeout for
* connecting to the proxies.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -381,7 +381,7 @@ public class Socks5ByteStreamRequestTest {
/**
* Accepting the SOCKS5 Bytestream request should be successfully.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiatorTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiatorTest.java
index 744ffcd9e..393187fe5 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiatorTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientForInitiatorTest.java
@@ -50,7 +50,7 @@ import org.jxmpp.jid.JidTestUtil;
/**
* Test for Socks5ClientForInitiator class.
- *
+ *
* @author Henning Staib
*/
public class Socks5ClientForInitiatorTest {
@@ -74,9 +74,9 @@ public class Socks5ClientForInitiatorTest {
/**
* Initialize fields used in the tests.
- * @throws XMPPException
- * @throws SmackException
- * @throws InterruptedException
+ * @throws XMPPException
+ * @throws SmackException
+ * @throws InterruptedException
*/
@Before
public void setup() throws XMPPException, SmackException, InterruptedException {
@@ -90,7 +90,7 @@ public class Socks5ClientForInitiatorTest {
/**
* If the target is not connected to the local SOCKS5 proxy an exception should be thrown.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -128,7 +128,7 @@ public class Socks5ClientForInitiatorTest {
/**
* Initiator and target should successfully connect to the local SOCKS5 proxy.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -197,7 +197,7 @@ public class Socks5ClientForInitiatorTest {
/**
* If the initiator can connect to a SOCKS5 proxy but activating the stream fails an exception
* should be thrown.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -241,7 +241,7 @@ public class Socks5ClientForInitiatorTest {
/**
* Target and initiator should successfully connect to a "remote" SOCKS5 proxy and the initiator
* activates the bytestream.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientTest.java
index e836e5d4c..430b83f5b 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5ClientTest.java
@@ -40,7 +40,7 @@ import org.jxmpp.jid.JidTestUtil;
/**
* Test for Socks5Client class.
- *
+ *
* @author Henning Staib
*/
public class Socks5ClientTest {
@@ -54,7 +54,7 @@ public class Socks5ClientTest {
/**
* Initialize fields used in the tests.
- *
+ *
* @throws Exception should not happen
*/
@Before
@@ -68,7 +68,7 @@ public class Socks5ClientTest {
/**
* A SOCKS5 client MUST close connection if server doesn't accept any of the given
* authentication methods. (See RFC1928 Section 3)
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -126,7 +126,7 @@ public class Socks5ClientTest {
/**
* The SOCKS5 client should close connection if server replies in an unsupported way.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -188,7 +188,7 @@ public class Socks5ClientTest {
/**
* The SOCKS5 client should close connection if server replies with an error.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -254,7 +254,7 @@ public class Socks5ClientTest {
/**
* The SOCKS5 client should successfully connect to the SOCKS5 server.
- *
+ *
* @throws Exception should not happen
*/
@Test
@@ -330,7 +330,7 @@ public class Socks5ClientTest {
/**
* Close fake SOCKS5 proxy.
- *
+ *
* @throws Exception should not happen
*/
@After
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5PacketUtils.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5PacketUtils.java
index f0c768e7a..d6e9ca3b1 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5PacketUtils.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5PacketUtils.java
@@ -27,7 +27,7 @@ import org.jxmpp.jid.Jid;
/**
* A collection of utility methods to create XMPP packets.
- *
+ *
* @author Henning Staib
*/
public class Socks5PacketUtils {
@@ -35,7 +35,7 @@ public class Socks5PacketUtils {
/**
* Returns a SOCKS5 Bytestream initialization request packet. The Request doesn't contain any
* SOCKS5 proxies.
- *
+ *
* @param from the initiator
* @param to the target
* @param sessionID the session ID
@@ -53,7 +53,7 @@ public class Socks5PacketUtils {
/**
* Returns a response to a SOCKS5 Bytestream initialization request. The stanza doesn't contain
* the uses-host information.
- *
+ *
* @param from the target
* @param to the initiator
* @return response to a SOCKS5 Bytestream initialization request
@@ -68,7 +68,7 @@ public class Socks5PacketUtils {
/**
* Returns a response to an item discovery request. The stanza doesn't contain any items.
- *
+ *
* @param from the XMPP server
* @param to the XMPP client
* @return response to an item discovery request
@@ -83,7 +83,7 @@ public class Socks5PacketUtils {
/**
* Returns a response to an info discovery request. The stanza doesn't contain any infos.
- *
+ *
* @param from the target
* @param to the initiator
* @return response to an info discovery request
@@ -98,7 +98,7 @@ public class Socks5PacketUtils {
/**
* Returns a response IQ for a activation request to the proxy.
- *
+ *
* @param from JID of the proxy
* @param to JID of the client who wants to activate the SOCKS5 Bytestream
* @return response IQ for a activation request to the proxy
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5TestProxy.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5TestProxy.java
index 208efeeef..180838e29 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5TestProxy.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5TestProxy.java
@@ -35,7 +35,7 @@ import org.jivesoftware.smack.util.StringUtils;
/**
* Simple SOCKS5 proxy for testing purposes. It is almost the same as the Socks5Proxy class but the
* port can be configured more easy and it all connections are allowed.
- *
+ *
* @author Henning Staib
*/
public final class Socks5TestProxy {
@@ -71,7 +71,7 @@ public final class Socks5TestProxy {
/**
* Returns the local SOCKS5 proxy server.
- *
+ *
* @param port of the test proxy
* @return the local SOCKS5 proxy server
*/
@@ -144,7 +144,7 @@ public final class Socks5TestProxy {
/**
* Returns the host address of the local SOCKS5 proxy server.
- *
+ *
* @return the host address of the local SOCKS5 proxy server
*/
public static String getAddress() {
@@ -158,7 +158,7 @@ public final class Socks5TestProxy {
/**
* Returns the port of the local SOCKS5 proxy server. If it is not running -1 will be returned.
- *
+ *
* @return the port of the local SOCKS5 proxy server or -1 if proxy is not running
*/
public int getPort() {
@@ -170,7 +170,7 @@ public final class Socks5TestProxy {
/**
* Returns the socket for the given digest.
- *
+ *
* @param digest identifying the connection
* @return socket or null if there is no socket for the given digest
*/
@@ -193,7 +193,7 @@ public final class Socks5TestProxy {
/**
* Returns true if the local SOCKS5 proxy server is running, otherwise false.
- *
+ *
* @return true if the local SOCKS5 proxy server is running, otherwise false
*/
public boolean isRunning() {
@@ -202,7 +202,7 @@ public final class Socks5TestProxy {
/**
* Implementation of a simplified SOCKS5 proxy server.
- *
+ *
* @author Henning Staib
*/
class Socks5ServerProcess implements Runnable {
@@ -248,7 +248,7 @@ public final class Socks5TestProxy {
/**
* Negotiates a SOCKS5 connection and stores it on success.
- *
+ *
* @param socket connection to the client
* @throws SmackException if client requests a connection in an unsupported way
* @throws IOException if a network error occurred
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/caps/EntityCapsManagerTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/caps/EntityCapsManagerTest.java
index 4c019c9a2..b912f8544 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/caps/EntityCapsManagerTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/caps/EntityCapsManagerTest.java
@@ -47,7 +47,7 @@ public class EntityCapsManagerTest extends InitExtensions {
/**
* XEP-
* 0115 Complex Generation Example.
- * @throws XmppStringprepException
+ * @throws XmppStringprepException
*/
@Test
public void testComplexGenerationExample() throws XmppStringprepException {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/delay/provider/DelayInformationTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/delay/provider/DelayInformationTest.java
index 692a225d1..7a4c6756c 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/delay/provider/DelayInformationTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/delay/provider/DelayInformationTest.java
@@ -60,7 +60,7 @@ public class DelayInformationTest extends InitExtensions {
String control;
GregorianCalendar calendar = new GregorianCalendar(2002, 9 - 1, 10, 23, 8, 25);
calendar.setTimeZone(TimeZone.getTimeZone("UTC"));
- Date date = calendar.getTime();
+ Date date = calendar.getTime();
control = XMLBuilder.create("x")
.a("xmlns", "jabber:x:delay")
@@ -112,7 +112,7 @@ public class DelayInformationTest extends InitExtensions {
delayInfo = p.parse(PacketParserUtils.getParserFor(control));
- GregorianCalendar cal = (GregorianCalendar) calendar.clone();
+ GregorianCalendar cal = (GregorianCalendar) calendar.clone();
cal.add(Calendar.MILLISECOND, 120);
assertEquals(cal.getTime(), delayInfo.getStamp());
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/geoloc/packet/GeoLocationTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/geoloc/packet/GeoLocationTest.java
index 1bb34b040..a80748377 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/geoloc/packet/GeoLocationTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/geoloc/packet/GeoLocationTest.java
@@ -34,7 +34,7 @@ import org.jxmpp.util.XmppDateTime;
/**
* Unit tests for GeoLocation.
- *
+ *
* @author Ishan Khanna
*/
public class GeoLocationTest extends InitExtensions {
@@ -84,7 +84,7 @@ public class GeoLocationTest extends InitExtensions {
public void toXMLMethodTest() throws Exception {
// @formatter:off
- final String geoLocationMessageString = "
* This mocked connection can used to collect packets that require a reply using a
* StanzaCollector.
- *
+ *
*
* For convenience there are some useful predefined implementations.
- *
+ *
* @param getSpecificErrorConditionFrom
to obtain the specific
* information from an XMPPError
.
- *
+ *
* @author Gabriel Guardincerri
- *
+ *
*/
public abstract class AdHocCommand {
// TODO: Analyze the redesign of command by having an ExecutionResponse as a
@@ -89,7 +89,7 @@ public abstract class AdHocCommand {
/**
* Returns the specific condition of the error
or null if the
* error doesn't have any.
- *
+ *
* @param error the error the get the specific condition from.
* @return the specific condition of this error, or null if it doesn't have
* any.
@@ -109,7 +109,7 @@ public abstract class AdHocCommand {
/**
* Set the the human readable name of the command, usually used for
* displaying in a UI.
- *
+ *
* @param name the name.
*/
public void setName(String name) {
@@ -118,7 +118,7 @@ public abstract class AdHocCommand {
/**
* Returns the human readable name of the command.
- *
+ *
* @return the human readable name of the command
*/
public String getName() {
@@ -128,7 +128,7 @@ public abstract class AdHocCommand {
/**
* Sets the unique identifier of the command. This value must be unique for
* the OwnerJID
.
- *
+ *
* @param node the unique identifier of the command.
*/
public void setNode(String node) {
@@ -138,7 +138,7 @@ public abstract class AdHocCommand {
/**
* Returns the unique identifier of the command. It is unique for the
* OwnerJID
.
- *
+ *
* @return the unique identifier of the command.
*/
public String getNode() {
@@ -148,14 +148,14 @@ public abstract class AdHocCommand {
/**
* Returns the full JID of the owner of this command. This JID is the "to" of a
* execution request.
- *
+ *
* @return the owner JID.
*/
public abstract Jid getOwnerJID();
/**
* Returns the notes that the command has at the current stage.
- *
+ *
* @return a list of notes.
*/
public Listtrue
if this command is completed.
* @since 4.2
*/
@@ -348,7 +348,7 @@ public abstract class AdHocCommand {
/**
* Sets the data of the current stage. This should not used.
- *
+ *
* @param data the data.
*/
void setData(AdHocCommandData data) {
@@ -368,7 +368,7 @@ public abstract class AdHocCommand {
* Returns true if the action
is available in the current stage.
* The {@link Action#cancel cancel} action is always allowed. To define the
* available actions use the addActionAvailable
method.
- *
+ *
* @param action
* The action to check if it is available.
* @return True if the action is available for the current stage.
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java
index 5a7e72125..871d84840 100755
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/commands/AdHocCommandManager.java
@@ -59,8 +59,8 @@ import org.jxmpp.jid.Jid;
*
* Pass in an XMPPConnection instance to
* {@link #getAddHocCommandsManager(XMPPConnection)} in order to
- * get an instance of this class.
- *
+ * get an instance of this class.
+ *
* @author Gabriel Guardincerri
*/
public final class AdHocCommandManager extends Manager {
@@ -258,7 +258,7 @@ public final class AdHocCommandManager extends Manager {
* @return the discovered items.
* @throws XMPPException if the operation failed for some reason.
* @throws SmackException if there was no response from the server.
- * @throws InterruptedException
+ * @throws InterruptedException
*/
public DiscoverItems discoverCommands(Jid jid) throws XMPPException, SmackException, InterruptedException {
return serviceDiscoveryManager.discoverItems(jid, NAMESPACE);
@@ -270,7 +270,7 @@ public final class AdHocCommandManager extends Manager {
* @param jid the full JID to publish the commands to.
* @throws XMPPException if the operation failed for some reason.
* @throws SmackException if there was no response from the server.
- * @throws InterruptedException
+ * @throws InterruptedException
* @deprecated This method uses no longer existent XEP-0030 features and will be removed.
*/
@SuppressWarnings("deprecation")
@@ -315,7 +315,7 @@ public final class AdHocCommandManager extends Manager {
*
*
* If this is not the first request, this method checks, before executing
@@ -330,7 +330,7 @@ public final class AdHocCommandManager extends Manager {
* the stanza to process.
* @throws NotConnectedException
* @throws NoResponseException
- * @throws InterruptedException
+ * @throws InterruptedException
*/
private IQ processAdHocCommand(AdHocCommandData requestData) throws NoResponseException, NotConnectedException, InterruptedException {
// Creates the response with the corresponding data
@@ -587,10 +587,10 @@ public final class AdHocCommandManager extends Manager {
/**
* Responds an error with an specific condition.
- *
+ *
* @param response the response to send.
* @param condition the condition of the error.
- * @throws NotConnectedException
+ * @throws NotConnectedException
*/
private static IQ respondError(AdHocCommandData response,
StanzaError.Condition condition) {
@@ -599,11 +599,11 @@ public final class AdHocCommandManager extends Manager {
/**
* Responds an error with an specific condition.
- *
+ *
* @param response the response to send.
* @param condition the condition of the error.
* @param specificCondition the adhoc command error condition.
- * @throws NotConnectedException
+ * @throws NotConnectedException
*/
private static IQ respondError(AdHocCommandData response, StanzaError.Condition condition,
AdHocCommand.SpecificErrorCondition specificCondition) {
@@ -613,10 +613,10 @@ public final class AdHocCommandManager extends Manager {
/**
* Responds an error with an specific error.
- *
+ *
* @param response the response to send.
* @param error the error to send.
- * @throws NotConnectedException
+ * @throws NotConnectedException
*/
private static IQ respondError(AdHocCommandData response, StanzaError.Builder error) {
response.setType(IQ.Type.error);
@@ -626,17 +626,17 @@ public final class AdHocCommandManager extends Manager {
/**
* Creates a new instance of a command to be used by a new execution request
- *
+ *
* @param commandNode the command node that identifies it.
* @param sessionID the session id of this execution.
* @return the command instance to execute.
* @throws XMPPErrorException if there is problem creating the new instance.
- * @throws SecurityException
- * @throws NoSuchMethodException
- * @throws InvocationTargetException
- * @throws IllegalArgumentException
- * @throws IllegalAccessException
- * @throws InstantiationException
+ * @throws SecurityException
+ * @throws NoSuchMethodException
+ * @throws InvocationTargetException
+ * @throws IllegalArgumentException
+ * @throws IllegalAccessException
+ * @throws InstantiationException
*/
private LocalCommand newInstanceOfCmd(String commandNode, String sessionID)
throws XMPPErrorException, InstantiationException, IllegalAccessException, IllegalArgumentException,
@@ -653,7 +653,7 @@ public final class AdHocCommandManager extends Manager {
/**
* Returns the registered commands of this command manager, which is related
* to a connection.
- *
+ *
* @return the registered commands.
*/
private Collection
@@ -57,31 +57,31 @@ import org.jxmpp.jid.Jid;
* specified when doing so.
*
- *
+ *
* For example to get the idle time of a user logged in a resource, simple send
* the LastActivity stanza to them, as in the following code:
- *
+ *
*
* XMPPConnection con = new XMPPTCPConnection("jabber.org");
* con.login("john", "doe");
* LastActivity activity = LastActivity.getLastActivity(con, "xray@jabber.org/Smack");
*
- *
+ *
* To get the lapsed time since the last user logout is the same as above but
* with out the resource:
- *
+ *
*
* LastActivity activity = LastActivity.getLastActivity(con, "xray@jabber.org");
*
- *
+ *
* To get the uptime of a host, you simple send the LastActivity stanza to it,
* as in the following code example:
*
* LastActivity activity = LastActivity.getLastActivity(con, "jabber.org");
*
- *
+ *
* @author Gabriel Guardincerri
* @author Florian Schmaus
* @see XEP-0012: Last
@@ -126,7 +126,7 @@ public final class LastActivityManager extends Manager {
/**
* Creates a last activity manager to response last activity requests.
- *
+ *
* @param connection
* The XMPPConnection that the last activity requests will use.
*/
@@ -208,7 +208,7 @@ public final class LastActivityManager extends Manager {
/**
* The idle time is the lapsed time between the last message sent and now.
- *
+ *
* @return the lapsed time between the last message sent and now.
*/
private long getIdleTime() {
@@ -225,15 +225,15 @@ public final class LastActivityManager extends Manager {
* time since the last logout or 0 if the user is currently logged in.
* Moreover, when the jid is a server or component (e.g., a JID of the form
* 'host') the last activity is the uptime.
- *
+ *
* @param jid
* the JID of the user.
* @return the LastActivity stanza of the jid.
* @throws XMPPErrorException
* thrown if a server error has occured.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public LastActivity getLastActivity(Jid jid) throws NoResponseException, XMPPErrorException,
NotConnectedException, InterruptedException {
@@ -243,13 +243,13 @@ public final class LastActivityManager extends Manager {
/**
* Returns true if Last Activity (XEP-0012) is supported by a given JID.
- *
+ *
* @param jid a JID to be tested for Last Activity support
* @return true if Last Activity is supported, otherwise false
- * @throws NotConnectedException
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws InterruptedException
*/
public boolean isLastActivitySupported(Jid jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return ServiceDiscoveryManager.getInstanceFor(connection()).supportsFeature(jid, LastActivity.NAMESPACE);
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java
index c47db4291..73c88566d 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/iqprivate/PrivateDataManager.java
@@ -153,10 +153,10 @@ public final class PrivateDataManager extends Manager {
* @param elementName the element name.
* @param namespace the namespace.
* @return the private data.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public PrivateData getPrivateData(final String elementName, final String namespace) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// Create an IQ packet to get the private data.
@@ -173,10 +173,10 @@ public final class PrivateDataManager extends Manager {
* element name and namespace, then the new private data will overwrite the old value.
*
* @param privateData the private data.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void setPrivateData(final PrivateData privateData) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// Create an IQ packet to set the private data.
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/iqregister/AccountManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/iqregister/AccountManager.java
index 923317715..defd0cef6 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/iqregister/AccountManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/iqregister/AccountManager.java
@@ -131,10 +131,10 @@ public final class AccountManager extends Manager {
* behavior is to only create new accounts before having logged in to a server.
*
* @return true if the server support creating new accounts.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public boolean supportsAccountCreation() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// TODO: Replace this body with isSupported() and possible deprecate this method.
@@ -176,10 +176,10 @@ public final class AccountManager extends Manager {
* the user's email address.
*
* @return the required account attributes.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public Set
*
- *
+ *
* Note: Setting maxchars to 0 indicates that the user requests to receive no history.
- *
+ *
* @author Gaston Dombiak
* @deprecated use {@link org.jivesoftware.smackx.muc.MucEnterConfiguration} instead.
*/
@@ -51,7 +51,7 @@ public class DiscussionHistory {
/**
* Returns the total number of characters to receive in the history.
- *
+ *
* @return total number of characters to receive in the history.
*/
public int getMaxChars() {
@@ -60,7 +60,7 @@ public class DiscussionHistory {
/**
* Returns the total number of messages to receive in the history.
- *
+ *
* @return the total number of messages to receive in the history.
*/
public int getMaxStanzas() {
@@ -68,10 +68,10 @@ public class DiscussionHistory {
}
/**
- * Returns the number of seconds to use to filter the messages received during that time.
- * In other words, only the messages received in the last "X" seconds will be included in
+ * Returns the number of seconds to use to filter the messages received during that time.
+ * In other words, only the messages received in the last "X" seconds will be included in
* the history.
- *
+ *
* @return the number of seconds to use to filter the messages received during that time.
*/
public int getSeconds() {
@@ -79,10 +79,10 @@ public class DiscussionHistory {
}
/**
- * Returns the since date to use to filter the messages received during that time.
- * In other words, only the messages received since the datetime specified will be
+ * Returns the since date to use to filter the messages received during that time.
+ * In other words, only the messages received since the datetime specified will be
* included in the history.
- *
+ *
* @return the since date to use to filter the messages received during that time.
*/
public Date getSince() {
@@ -91,7 +91,7 @@ public class DiscussionHistory {
/**
* Sets the total number of characters to receive in the history.
- *
+ *
* @param maxChars the total number of characters to receive in the history.
*/
public void setMaxChars(int maxChars) {
@@ -100,7 +100,7 @@ public class DiscussionHistory {
/**
* Sets the total number of messages to receive in the history.
- *
+ *
* @param maxStanzas the total number of messages to receive in the history.
*/
public void setMaxStanzas(int maxStanzas) {
@@ -108,11 +108,11 @@ public class DiscussionHistory {
}
/**
- * Sets the number of seconds to use to filter the messages received during that time.
- * In other words, only the messages received in the last "X" seconds will be included in
+ * Sets the number of seconds to use to filter the messages received during that time.
+ * In other words, only the messages received in the last "X" seconds will be included in
* the history.
- *
- * @param seconds the number of seconds to use to filter the messages received during
+ *
+ * @param seconds the number of seconds to use to filter the messages received during
* that time.
*/
public void setSeconds(int seconds) {
@@ -120,10 +120,10 @@ public class DiscussionHistory {
}
/**
- * Sets the since date to use to filter the messages received during that time.
- * In other words, only the messages received since the datetime specified will be
+ * Sets the since date to use to filter the messages received during that time.
+ * In other words, only the messages received since the datetime specified will be
* included in the history.
- *
+ *
* @param since the since date to use to filter the messages received during that time.
*/
public void setSince(Date since) {
@@ -132,7 +132,7 @@ public class DiscussionHistory {
/**
* Returns true if the history has been configured with some values.
- *
+ *
* @return true if the history has been configured with some values.
*/
private boolean isConfigured() {
@@ -140,14 +140,14 @@ public class DiscussionHistory {
}
/**
- * Returns the History that manages the amount of discussion history provided on entering a
+ * Returns the History that manages the amount of discussion history provided on entering a
* room.
- *
- * @return the History that manages the amount of discussion history provided on entering a
+ *
+ * @return the History that manages the amount of discussion history provided on entering a
* room.
*/
MUCInitialPresence.History getMUCHistory() {
- // Return null if the history was not properly configured
+ // Return null if the history was not properly configured
if (!isConfigured()) {
return null;
}
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationListener.java
index 2855d8e5a..74699fa4e 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/InvitationListener.java
@@ -26,17 +26,17 @@ import org.jxmpp.jid.EntityJid;
/**
* A listener that is fired anytime an invitation to join a MUC room is received.
- *
+ *
* @author Gaston Dombiak
*/
public interface InvitationListener {
/**
* Called when the an invitation to join a MUC room is received.Affiliate
with the room owners.
* @throws XMPPErrorException if you don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ListAffiliate
with the room administrators.
* @throws XMPPErrorException if you don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ListAffiliate
with the room members.
* @throws XMPPErrorException if you don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ListAffiliate
with the room outcasts.
* @throws XMPPErrorException if you don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ListAffiliate
that have the specified room affiliation.
* @throws XMPPErrorException if you don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
private ListOccupant
with the room moderators.
* @throws XMPPErrorException if you don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ListOccupant
with the room participants.
- *
+ *
* @return a list of Occupant
with the room participants.
* @throws XMPPErrorException if you don't have enough privileges to get this information.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public Listtrue
if the provided JID provides a MUC service, false
otherwise.
* @throws NoResponseException
@@ -387,8 +387,8 @@ public final class MultiUserChatManager extends Manager {
* @throws XMPPErrorException
* @throws NoResponseException
* @throws NotConnectedException
- * @throws InterruptedException
- * @throws NotAMucServiceException
+ * @throws InterruptedException
+ * @throws NotAMucServiceException
*/
public Listnull
.
* null
if the room itself changed the subject.
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/UserStatusListener.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/UserStatusListener.java
index e0b270660..105a09a0d 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/UserStatusListener.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/UserStatusListener.java
@@ -20,9 +20,9 @@ package org.jivesoftware.smackx.muc;
import org.jxmpp.jid.Jid;
/**
- * A listener that is fired anytime your participant's status in a room is changed, such as the
+ * A listener that is fired anytime your participant's status in a room is changed, such as the
* user being kicked, banned, or granted admin permissions or the room is destroyed.
- *
+ *
* @author Gaston Dombiak
*/
public interface UserStatusListener {
@@ -30,102 +30,102 @@ public interface UserStatusListener {
/**
* Called when a moderator kicked your user from the room. This means that you are no longer
* participanting in the room.
- *
+ *
* @param actor the moderator that kicked your user from the room (e.g. user@host.org).
* @param reason the reason provided by the actor to kick you from the room.
*/
void kicked(Jid actor, String reason);
/**
- * Called when a moderator grants voice to your user. This means that you were a visitor in
- * the moderated room before and now you can participate in the room by sending messages to
+ * Called when a moderator grants voice to your user. This means that you were a visitor in
+ * the moderated room before and now you can participate in the room by sending messages to
* all occupants.
- *
+ *
*/
void voiceGranted();
/**
- * Called when a moderator revokes voice from your user. This means that you were a
- * participant in the room able to speak and now you are a visitor that can't send
+ * Called when a moderator revokes voice from your user. This means that you were a
+ * participant in the room able to speak and now you are a visitor that can't send
* messages to the room occupants.
- *
+ *
*/
void voiceRevoked();
/**
- * Called when an administrator or owner banned your user from the room. This means that you
+ * Called when an administrator or owner banned your user from the room. This means that you
* will no longer be able to join the room unless the ban has been removed.
- *
+ *
* @param actor the administrator that banned your user (e.g. user@host.org).
* @param reason the reason provided by the administrator to banned you.
*/
void banned(Jid actor, String reason);
/**
- * Called when an administrator grants your user membership to the room. This means that you
- * will be able to join the members-only room.
- *
+ * Called when an administrator grants your user membership to the room. This means that you
+ * will be able to join the members-only room.
+ *
*/
void membershipGranted();
/**
- * Called when an administrator revokes your user membership to the room. This means that you
+ * Called when an administrator revokes your user membership to the room. This means that you
* will not be able to join the members-only room.
- *
+ *
*/
void membershipRevoked();
/**
- * Called when an administrator grants moderator privileges to your user. This means that you
- * will be able to kick users, grant and revoke voice, invite other users, modify room's
+ * Called when an administrator grants moderator privileges to your user. This means that you
+ * will be able to kick users, grant and revoke voice, invite other users, modify room's
* subject plus all the partcipants privileges.
- *
+ *
*/
void moderatorGranted();
/**
- * Called when an administrator revokes moderator privileges from your user. This means that
- * you will no longer be able to kick users, grant and revoke voice, invite other users,
+ * Called when an administrator revokes moderator privileges from your user. This means that
+ * you will no longer be able to kick users, grant and revoke voice, invite other users,
* modify room's subject plus all the partcipants privileges.
- *
+ *
*/
void moderatorRevoked();
/**
- * Called when an owner grants to your user ownership on the room. This means that you
- * will be able to change defining room features as well as perform all administrative
+ * Called when an owner grants to your user ownership on the room. This means that you
+ * will be able to change defining room features as well as perform all administrative
* functions.
- *
+ *
*/
void ownershipGranted();
/**
- * Called when an owner revokes from your user ownership on the room. This means that you
- * will no longer be able to change defining room features as well as perform all
+ * Called when an owner revokes from your user ownership on the room. This means that you
+ * will no longer be able to change defining room features as well as perform all
* administrative functions.
- *
+ *
*/
void ownershipRevoked();
/**
- * Called when an owner grants administrator privileges to your user. This means that you
- * will be able to perform administrative functions such as banning users and edit moderator
+ * Called when an owner grants administrator privileges to your user. This means that you
+ * will be able to perform administrative functions such as banning users and edit moderator
* list.
- *
+ *
*/
void adminGranted();
/**
- * Called when an owner revokes administrator privileges from your user. This means that you
- * will no longer be able to perform administrative functions such as banning users and edit
+ * Called when an owner revokes administrator privileges from your user. This means that you
+ * will no longer be able to perform administrative functions such as banning users and edit
* moderator list.
- *
+ *
*/
void adminRevoked();
/**
* Called when the room is destroyed.
- *
+ *
* @param alternateMUC an alternate MultiUserChat, may be null.
* @param reason the reason why the room was closed, may be null.
*/
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/Destroy.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/Destroy.java
index cf2fd22de..157a77dd2 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/Destroy.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/Destroy.java
@@ -27,7 +27,7 @@ import org.jxmpp.jid.EntityBareJid;
* Represents a request to the server to destroy a room. The sender of the request should be the
* room's owner. If the sender of the destroy request is not the room's owner then the server will
* answer a "Forbidden" error.
- *
+ *
* @author Gaston Dombiak
*/
public class Destroy implements NamedElement, Serializable {
@@ -52,7 +52,7 @@ public class Destroy implements NamedElement, Serializable {
/**
* Returns the JID of an alternate location since the current room is being destroyed.
- *
+ *
* @return the JID of an alternate location.
*/
public EntityBareJid getJid() {
@@ -61,7 +61,7 @@ public class Destroy implements NamedElement, Serializable {
/**
* Returns the reason for the room destruction.
- *
+ *
* @return the reason for the room destruction.
*/
public String getReason() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/GroupChatInvitation.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/GroupChatInvitation.java
index 37ab7d63a..6b2721b42 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/GroupChatInvitation.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/GroupChatInvitation.java
@@ -53,7 +53,7 @@ import org.xmlpull.v1.XmlPullParserException;
* (XEP-45). However, most
* existing clients still use this older protocol. Once MUC support becomes more
* widespread, this API may be deprecated.
- *
+ *
* @author Matt Tucker
*/
public class GroupChatInvitation implements ExtensionElement {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCAdmin.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCAdmin.java
index 71dfa351e..a718b46fb 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCAdmin.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCAdmin.java
@@ -23,11 +23,11 @@ import java.util.List;
import org.jivesoftware.smack.packet.IQ;
/**
- * IQ stanza that serves for kicking users, granting and revoking voice, banning users,
- * modifying the ban list, granting and revoking membership and granting and revoking
- * moderator privileges. All these operations are scoped by the
+ * IQ stanza that serves for kicking users, granting and revoking voice, banning users,
+ * modifying the ban list, granting and revoking membership and granting and revoking
+ * moderator privileges. All these operations are scoped by the
* 'http://jabber.org/protocol/muc#admin' namespace.
- *
+ *
* @author Gaston Dombiak
*/
public class MUCAdmin extends IQ {
@@ -44,7 +44,7 @@ public class MUCAdmin extends IQ {
/**
* Returns a List of item children that holds information about roles, affiliation,
* jids and nicks.
- *
+ *
* @return a List of item children that holds information about roles, affiliation,
* jids and nicks.
*/
@@ -56,7 +56,7 @@ public class MUCAdmin extends IQ {
/**
* Adds an item child that holds information about roles, affiliation, jids and nicks.
- *
+ *
* @param item the item child that holds information about roles, affiliation, jids and nicks.
*/
public void addItem(MUCItem item) {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCInitialPresence.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCInitialPresence.java
index 31154f571..915ebafcf 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCInitialPresence.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/muc/packet/MUCInitialPresence.java
@@ -27,13 +27,13 @@ import org.jivesoftware.smack.util.XmlStringBuilder;
import org.jxmpp.util.XmppDateTime;
/**
- * Represents extended presence information whose sole purpose is to signal the ability of
- * the occupant to speak the MUC protocol when joining a room. If the room requires a password
+ * Represents extended presence information whose sole purpose is to signal the ability of
+ * the occupant to speak the MUC protocol when joining a room. If the room requires a password
* then the MUCInitialPresence should include one.
*
* PEPManager pepManager = new PEPManager(smackConnection);
* pepManager.addPEPListener(new PEPListener() {
@@ -64,7 +64,7 @@ import org.jxmpp.jid.EntityBareJid;
* }
* });
*
- *
+ *
* @author Jeff Williams
* @author Florian Schmaus
*/
@@ -141,14 +141,14 @@ public final class PEPManager extends Manager {
/**
* Publish an event.
- *
+ *
* @param item the item to publish.
* @param node the node to publish on.
* @throws NotConnectedException
* @throws InterruptedException
* @throws XMPPErrorException
* @throws NoResponseException
- * @throws NotAPubSubNodeException
+ * @throws NotAPubSubNodeException
*/
public void publish(Item item, String node) throws NotConnectedException, InterruptedException,
NoResponseException, XMPPErrorException, NotAPubSubNodeException {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java
index e60bea159..276f50fbc 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/ping/PingManager.java
@@ -59,7 +59,7 @@ import org.jxmpp.jid.Jid;
* The default server ping interval is 30 minutes and can be modified with
* {@link #setDefaultPingInterval(int)} and {@link #setPingInterval(int)}.
* ping
with the XMPP domain.
*
*
*
- * Privacy Items can handle different kind of permission communications based on JID, group,
+ * Privacy Items can handle different kind of permission communications based on JID, group,
* subscription type or globally (see {@link PrivacyItem}).
- *
+ *
* @author Francisco Vives
* @see XEP-16: Privacy Lists
*/
@@ -92,7 +92,7 @@ public final class PrivacyListManager extends Manager {
/**
* Creates a new privacy manager to maintain the communication privacy. Note: no
- * information is sent to or received from the server until you attempt to
+ * information is sent to or received from the server until you attempt to
* get or set the privacy communication.null
if there is no active list.
- *
+ *
* @return the privacy list of the active list.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
- */
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
+ */
public PrivacyList getActiveList() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
Privacy privacyAnswer = this.getPrivacyWithListNames();
String listName = privacyAnswer.getActiveName();
@@ -293,12 +293,12 @@ public final class PrivacyListManager extends Manager {
/**
* Get the name of the active list.
- *
+ *
* @return the name of the active list or null if there is none set.
* @throws NoResponseException
* @throws XMPPErrorException
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @since 4.1
*/
public String getActiveListName() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
@@ -310,13 +310,13 @@ public final class PrivacyListManager extends Manager {
/**
* Answer the default privacy list. Returns null
if there is no default list.
- *
+ *
* @return the privacy list of the default list.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
- */
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
+ */
public PrivacyList getDefaultList() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
Privacy privacyAnswer = this.getPrivacyWithListNames();
String listName = privacyAnswer.getDefaultName();
@@ -334,7 +334,7 @@ public final class PrivacyListManager extends Manager {
* @throws NoResponseException
* @throws XMPPErrorException
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @since 4.1
*/
public String getDefaultListName() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
@@ -355,7 +355,7 @@ public final class PrivacyListManager extends Manager {
* @throws NoResponseException
* @throws XMPPErrorException
* @throws NotConnectedException
- * @throws InterruptedException
+ * @throws InterruptedException
* @since 4.1
*/
public String getEffectiveListName() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
@@ -368,14 +368,14 @@ public final class PrivacyListManager extends Manager {
/**
* Answer the privacy list items under listName with the allowed and blocked permissions.
- *
+ *
* @param listName the name of the list to get the allowed and blocked permissions.
* @return a list of privacy items under the list listName.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
- */
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
+ */
private List
- *
- * Privacy Items can handle different kind of blocking communications based on JID, group,
+ * Privacy Items can handle different kind of blocking communications based on JID, group,
* subscription type or globally {@link PrivacyItem}
- *
+ *
* @author Francisco Vives
*/
public class Privacy extends IQ {
@@ -53,7 +53,7 @@ public class Privacy extends IQ {
private boolean declineDefaultList = false;
/** defaultName is the name of the default list that applies to the user as a whole **/
private String defaultName;
- /** itemLists holds the set of privacy items classified in lists. It is a map where the
+ /** itemLists holds the set of privacy items classified in lists. It is a map where the
* key is the name of the list and the value a collection with privacy items. **/
private final MapAn Item received from a node (via {@link LeafNode#getItems()} or {@link LeafNode#addItemEventListener(org.jivesoftware.smackx.pubsub.listener.ItemEventListener)}
*
*
- *
+ *
* An Item created to send to a node (via {@link LeafNode#publish()} or {@link LeafNode#publish()}
*
- *
- *
+ *
*
*
- *
+ *
* @param itemsType Type of representation
* @param nodeId The node to which the items are being sent or deleted
* @param items The list of {@link Item} or {@link RetractItem}
@@ -91,19 +91,19 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
/**
* Construct an instance with a list representing items that have been published or deleted.
- *
+ *
* null
+ * null
- * null
*
*
- *
+ *
* @param nodeId The node to which the items are being sent or deleted
* @param items The list of {@link Item} or {@link RetractItem}
* @param notify
@@ -111,13 +111,13 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
public ItemsExtension(String nodeId, List extends ExtensionElement> items, boolean notify) {
super(ItemsElementType.retract.getNodeElement(), nodeId);
type = ItemsElementType.retract;
- this.items = items;
+ this.items = items;
this.notify = notify;
}
/**
* Get the type of element.
- *
+ *
* @return The element type
*/
public ItemsElementType getItemsElementType() {
@@ -132,7 +132,7 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
/**
* Gets the items related to the type of request or event.
- *
+ *
* @return List of {@link Item}, {@link RetractItem}, or null
*/
public List extends NamedElement> getItems() {
@@ -141,7 +141,7 @@ public class ItemsExtension extends NodeExtension implements EmbeddedPacketExten
/**
* Gets the value of the optional attribute related to the {@link ItemsElementType}.
- *
+ *
* @return The attribute value
*/
public boolean getNotify() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/LeafNode.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/LeafNode.java
index 1bd204970..22b4701dc 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/LeafNode.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/LeafNode.java
@@ -34,7 +34,7 @@ import org.jivesoftware.smackx.pubsub.packet.PubSub;
* almost all PubSub capabilities are related to the concept of a node.
* All items are published to a node, and typically subscribed to by other
* users. These users then retrieve events based on this subscription.
- *
+ *
* @author Robin Collier
*/
public class LeafNode extends Node {
@@ -45,12 +45,12 @@ public class LeafNode extends Node {
/**
* Get information on the items in the node in standard
* {@link DiscoverItems} format.
- *
+ *
* @return The item details in {@link DiscoverItems} format
- * @throws XMPPErrorException
+ * @throws XMPPErrorException
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public DiscoverItems discoverItems() throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
DiscoverItems items = new DiscoverItems();
@@ -66,8 +66,8 @@ public class LeafNode extends Node {
* @return List of {@link Item} in the node
* @throws XMPPErrorException
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public null
- * null
* null
or a PubSub stanza with additional information on success.
* @throws NoResponseException
@@ -371,20 +371,20 @@ public abstract class Node {
/**
* The user subscribes to the node using the supplied jid. The
* bare jid portion of this one must match the jid for the connection.
- *
- * Please note that the {@link Subscription.State} should be checked
+ *
+ * Please note that the {@link Subscription.State} should be checked
* on return since more actions may be required by the caller.
- * {@link Subscription.State#pending} - The owner must approve the subscription
+ * {@link Subscription.State#pending} - The owner must approve the subscription
* request before messages will be received.
- * {@link Subscription.State#unconfigured} - If the {@link Subscription#isConfigRequired()} is true,
+ * {@link Subscription.State#unconfigured} - If the {@link Subscription#isConfigRequired()} is true,
* the caller must configure the subscription before messages will be received. If it is false
* the caller can configure it but is not required to do so.
* @param jid The jid to subscribe as.
* @return The subscription
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public Subscription subscribe(String jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
PubSub pubSub = createPubsubPacket(Type.set, new SubscribeExtension(jid, getId()));
@@ -394,14 +394,14 @@ public abstract class Node {
/**
* The user subscribes to the node using the supplied jid and subscription
- * options. The bare jid portion of this one must match the jid for the
+ * options. The bare jid portion of this one must match the jid for the
* connection.
- *
- * Please note that the {@link Subscription.State} should be checked
+ *
+ * Please note that the {@link Subscription.State} should be checked
* on return since more actions may be required by the caller.
- * {@link Subscription.State#pending} - The owner must approve the subscription
+ * {@link Subscription.State#pending} - The owner must approve the subscription
* request before messages will be received.
- * {@link Subscription.State#unconfigured} - If the {@link Subscription#isConfigRequired()} is true,
+ * {@link Subscription.State#unconfigured} - If the {@link Subscription#isConfigRequired()} is true,
* the caller must configure the subscription before messages will be received. If it is false
* the caller can configure it but is not required to do so.
*
@@ -409,10 +409,10 @@ public abstract class Node {
* @param subForm
*
* @return The subscription
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public Subscription subscribe(String jid, SubscribeForm subForm) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
PubSub request = createPubsubPacket(Type.set, new SubscribeExtension(jid, getId()));
@@ -422,16 +422,16 @@ public abstract class Node {
}
/**
- * Remove the subscription related to the specified JID. This will only
+ * Remove the subscription related to the specified JID. This will only
* work if there is only 1 subscription. If there are multiple subscriptions,
* use {@link #unsubscribe(String, String)}.
- *
+ *
* @param jid The JID used to subscribe to the node
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
- *
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
+ *
*/
public void unsubscribe(String jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
unsubscribe(jid, null);
@@ -439,13 +439,13 @@ public abstract class Node {
/**
* Remove the specific subscription related to the specified JID.
- *
+ *
* @param jid The JID used to subscribe to the node
* @param subscriptionId The id of the subscription being removed
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void unsubscribe(String jid, String subscriptionId) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
sendPubsubPacket(createPubsubPacket(Type.set, new UnsubscribeExtension(jid, getId(), subscriptionId)));
@@ -458,10 +458,10 @@ public abstract class Node {
* @param jid
*
* @return A subscription options form
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public SubscribeForm getSubscriptionOptions(String jid) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return getSubscriptionOptions(jid, null);
@@ -470,16 +470,16 @@ public abstract class Node {
/**
* Get the options for configuring the specified subscription.
- *
+ *
* @param jid JID the subscription is registered under
* @param subscriptionId The subscription id
- *
+ *
* @return The subscription option form
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
- *
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
+ *
*/
public SubscribeForm getSubscriptionOptions(String jid, String subscriptionId) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
PubSub packet = sendPubsubPacket(createPubsubPacket(Type.get, new OptionsExtension(jid, getId(), subscriptionId)));
@@ -488,22 +488,22 @@ public abstract class Node {
}
/**
- * Register a listener for item publication events. This
- * listener will get called whenever an item is published to
+ * Register a listener for item publication events. This
+ * listener will get called whenever an item is published to
* this node.
- *
+ *
* @param listener The handler for the event
*/
@SuppressWarnings("unchecked")
public void addItemEventListener(@SuppressWarnings("rawtypes") ItemEventListener listener) {
- StanzaListener conListener = new ItemEventTranslator(listener);
+ StanzaListener conListener = new ItemEventTranslator(listener);
itemEventToListenerMap.put(listener, conListener);
pubSubManager.getConnection().addSyncStanzaListener(conListener, new EventContentFilter(EventElementType.items.toString(), "item"));
}
/**
* Unregister a listener for publication events.
- *
+ *
* @param listener The handler to unregister
*/
public void removeItemEventListener(@SuppressWarnings("rawtypes") ItemEventListener listener) {
@@ -516,18 +516,18 @@ public abstract class Node {
/**
* Register a listener for configuration events. This listener
* will get called whenever the node's configuration changes.
- *
+ *
* @param listener The handler for the event
*/
public void addConfigurationListener(NodeConfigListener listener) {
- StanzaListener conListener = new NodeConfigTranslator(listener);
+ StanzaListener conListener = new NodeConfigTranslator(listener);
configEventToListenerMap.put(listener, conListener);
pubSubManager.getConnection().addSyncStanzaListener(conListener, new EventContentFilter(EventElementType.configuration.toString()));
}
/**
* Unregister a listener for configuration events.
- *
+ *
* @param listener The handler to unregister
*/
public void removeConfigurationListener(NodeConfigListener listener) {
@@ -540,11 +540,11 @@ public abstract class Node {
/**
* Register an listener for item delete events. This listener
* gets called whenever an item is deleted from the node.
- *
+ *
* @param listener The handler for the event
*/
public void addItemDeleteListener(ItemDeleteListener listener) {
- StanzaListener delListener = new ItemDeleteTranslator(listener);
+ StanzaListener delListener = new ItemDeleteTranslator(listener);
itemDeleteToListenerMap.put(listener, delListener);
EventContentFilter deleteItem = new EventContentFilter(EventElementType.items.toString(), "retract");
EventContentFilter purge = new EventContentFilter(EventElementType.purge.toString());
@@ -555,7 +555,7 @@ public abstract class Node {
/**
* Unregister a listener for item delete events.
- *
+ *
* @param listener The handler to unregister
*/
public void removeItemDeleteListener(ItemDeleteListener listener) {
@@ -594,9 +594,9 @@ public abstract class Node {
}
/**
- * This class translates low level item publication events into api level objects for
+ * This class translates low level item publication events into api level objects for
* user consumption.
- *
+ *
* @author Robin Collier
*/
public static class ItemEventTranslator implements StanzaListener {
@@ -619,9 +619,9 @@ public abstract class Node {
}
/**
- * This class translates low level item deletion events into api level objects for
+ * This class translates low level item deletion events into api level objects for
* user consumption.
- *
+ *
* @author Robin Collier
*/
public static class ItemDeleteTranslator implements StanzaListener {
@@ -659,9 +659,9 @@ public abstract class Node {
}
/**
- * This class translates low level node configuration events into api level objects for
+ * This class translates low level node configuration events into api level objects for
* user consumption.
- *
+ *
* @author Robin Collier
*/
public static class NodeConfigTranslator implements StanzaListener {
@@ -682,9 +682,9 @@ public abstract class Node {
}
/**
- * Filter for {@link StanzaListener} to filter out events not specific to the
+ * Filter for {@link StanzaListener} to filter out events not specific to the
* event type expected for this node.
- *
+ *
* @author Robin Collier
*/
class EventContentFilter extends FlexibleStanzaTypeFilterAn Item received from a node (via {@link LeafNode#getItems()} or {@link LeafNode#addItemEventListener(org.jivesoftware.smackx.pubsub.listener.ItemEventListener)}
*
*
- *
+ *
* An Item created to send to a node (via {@link LeafNode#publish()}
*
- *
- *
+ *
* null
.
* @throws NoResponseException
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PublishItem.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PublishItem.java
index 0f0d26cc8..b282f28af 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PublishItem.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/PublishItem.java
@@ -21,7 +21,7 @@ import java.util.Collection;
/**
* Represents a request to publish an item(s) to a specific node.
- *
+ *
* @author Robin Collier
*/
public class PublishItem
@@ -68,7 +68,7 @@ public class PubSub extends IQ {
* </pubsub>
* </iq>
*
- *
+ *
*/
@Override
protected IQChildElementXmlStringBuilder getIQChildElementBuilder(IQChildElementXmlStringBuilder xml) {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/packet/PubSubNamespace.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/packet/PubSubNamespace.java
index ca6ad5747..9bd744393 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/packet/PubSubNamespace.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/packet/PubSubNamespace.java
@@ -19,7 +19,7 @@ package org.jivesoftware.smackx.pubsub.packet;
/**
* Defines all the valid namespaces that are used with the {@link PubSub} packet
* as defined by the specification.
- *
+ *
* @author Robin Collier
*/
public enum PubSubNamespace {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java
index cee29f7b3..6b6d83a64 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/pubsub/provider/AffiliationProvider.java
@@ -29,7 +29,7 @@ import org.xmlpull.v1.XmlPullParser;
/**
* Parses the affiliation element out of the reply stanza from the server
* as specified in the affiliation schema.
- *
+ *
* @author Robin Collier
*/
public class AffiliationProvider extends ExtensionElementProviderForm
to send for querying.
* @param searchService the search service to use. (ex. search.jivesoftware.com)
* @return ReportedData the data found from the query.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ReportedData sendSearchForm(XMPPConnection con, Form searchForm, DomainBareJid searchService) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
UserSearch search = new UserSearch();
@@ -103,10 +103,10 @@ public class UserSearch extends SimpleIQ {
* @param searchForm the Form
to send for querying.
* @param searchService the search service to use. (ex. search.jivesoftware.com)
* @return ReportedData the data found from the query.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ReportedData sendSimpleSearchForm(XMPPConnection con, Form searchForm, DomainBareJid searchService) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
SimpleUserSearch search = new SimpleUserSearch();
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/search/UserSearchManager.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/search/UserSearchManager.java
index 35d09f8c9..2566a548e 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/search/UserSearchManager.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/search/UserSearchManager.java
@@ -66,10 +66,10 @@ public class UserSearchManager {
*
* @param searchService the search service to query.
* @return the form to fill out to perform a search.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public Form getSearchForm(DomainBareJid searchService) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return userSearch.getSearchForm(con, searchService);
@@ -82,10 +82,10 @@ public class UserSearchManager {
* @param searchForm the Form
to submit for searching.
* @param searchService the name of the search service to use.
* @return the ReportedData returned by the server.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public ReportedData getSearchResults(Form searchForm, DomainBareJid searchService) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
return userSearch.sendSearchForm(con, searchForm, searchService);
@@ -96,10 +96,10 @@ public class UserSearchManager {
* Returns a collection of search services found on the server.
*
* @return a Collection of search services found on the server.
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public List
*
- *
+ *
* Depending of the form's type different operations are available. For example, it's only possible
* to set answers if the form is of type "submit".
- *
+ *
* @see XEP-0004 Data Forms
- *
+ *
* @author Gaston Dombiak
*/
public class Form {
@@ -47,9 +47,9 @@ public class Form {
private DataForm dataForm;
/**
- * Returns a new ReportedData if the stanza is used for gathering data and includes an
- * extension that matches the elementName and namespace "x","jabber:x:data".
- *
+ * Returns a new ReportedData if the stanza is used for gathering data and includes an
+ * extension that matches the elementName and namespace "x","jabber:x:data".
+ *
* @param packet the stanza used for gathering data.
* @return the data form parsed from the stanza or null if there was not
* a form in the packet.
@@ -67,9 +67,9 @@ public class Form {
/**
* Creates a new Form that will wrap an existing DataForm. The wrapped DataForm must be
- * used for gathering data.
- *
- * @param dataForm the data form used for gathering data.
+ * used for gathering data.
+ *
+ * @param dataForm the data form used for gathering data.
*/
public Form(DataForm dataForm) {
this.dataForm = dataForm;
@@ -86,7 +86,7 @@ public class Form {
/**
* Adds a new field to complete as part of the form.
- *
+ *
* @param field the field to complete.
*/
public void addField(FormField field) {
@@ -94,13 +94,13 @@ public class Form {
}
/**
- * Sets a new String value to a given form's field. The field whose variable matches the
- * requested variable will be completed with the specified value. If no field could be found
+ * Sets a new String value to a given form's field. The field whose variable matches the
+ * requested variable will be completed with the specified value. If no field could be found
* for the specified variable then an exception will be raised.
* getSectionLayout().add(newItem);
*
@@ -199,7 +199,7 @@ public class DataLayout implements ExtensionElement {
/**
* Gets the value of the label property.
- *
+ *
* @return possible object is {@link String }
*/
public String getLabel() {
@@ -252,7 +252,7 @@ public class DataLayout implements ExtensionElement {
/**
* Gets the value of the var property.
- *
+ *
* @return possible object is {@link String }
*/
public String getText() {
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/ValidationConsistencyException.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/ValidationConsistencyException.java
index e321901c8..3a0c8a33c 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/ValidationConsistencyException.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/ValidationConsistencyException.java
@@ -27,7 +27,7 @@ import org.jivesoftware.smackx.xdatavalidation.packet.ValidateElement;
public class ValidationConsistencyException extends IllegalArgumentException {
/**
- *
+ *
*/
private static final long serialVersionUID = 1L;
diff --git a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/packet/ValidateElement.java b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/packet/ValidateElement.java
index 46c432355..d397c803d 100644
--- a/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/packet/ValidateElement.java
+++ b/smack-extensions/src/main/java/org/jivesoftware/smackx/xdatavalidation/packet/ValidateElement.java
@@ -1,6 +1,6 @@
/**
*
- * Copyright 2014 Anno van Vliet
+ * Copyright 2014 Anno van Vliet
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -47,7 +47,7 @@ public abstract class ValidateElement implements ExtensionElement {
/**
* The 'datatype' attribute specifies the datatype. This attribute is OPTIONAL, and when not specified, defaults to
* "xs:string".
- *
+ *
* @param datatype the data type of any value contained within the {@link FormField} element.
*/
private ValidateElement(String datatype) {
@@ -65,7 +65,7 @@ public abstract class ValidateElement implements ExtensionElement {
*
@@ -78,7 +78,7 @@ public class XHTMLExtension implements ExtensionElement {
* </html>
* </message>
*
- *
+ *
*/
@Override
public XmlStringBuilder toXML(String enclosingNamespace) {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListenerTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListenerTest.java
index c93d27a21..373619818 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListenerTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/CloseListenerTest.java
@@ -35,7 +35,7 @@ import org.powermock.reflect.Whitebox;
/**
* Test for the CloseListener class.
- *
+ *
* @author Henning Staib
*/
public class CloseListenerTest extends InitExtensions {
@@ -46,7 +46,7 @@ public class CloseListenerTest extends InitExtensions {
/**
* If a close request to an unknown session is received it should be replied
* with an <item-not-found/> error.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/DataListenerTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/DataListenerTest.java
index ebd52489c..36ca56058 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/DataListenerTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/DataListenerTest.java
@@ -36,7 +36,7 @@ import org.powermock.reflect.Whitebox;
/**
* Test for the CloseListener class.
- *
+ *
* @author Henning Staib
*/
public class DataListenerTest extends InitExtensions {
@@ -47,7 +47,7 @@ public class DataListenerTest extends InitExtensions {
/**
* If a data stanza of an unknown session is received it should be replied
* with an <item-not-found/> error.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/IBBPacketUtils.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/IBBPacketUtils.java
index 37a0e3f6d..28404544b 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/IBBPacketUtils.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/IBBPacketUtils.java
@@ -25,14 +25,14 @@ import org.jxmpp.jid.Jid;
/**
* Utility methods to create packets.
- *
+ *
* @author Henning Staib
*/
public class IBBPacketUtils {
/**
* Returns an error IQ.
- *
+ *
* @param from the senders JID
* @param to the recipients JID
* @param condition the XMPP error condition
@@ -49,7 +49,7 @@ public class IBBPacketUtils {
/**
* Returns a result IQ.
- *
+ *
* @param from the senders JID
* @param to the recipients JID
* @return a result IQ
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManagerTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManagerTest.java
index b130eddce..b707836c9 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManagerTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamManagerTest.java
@@ -43,7 +43,7 @@ import org.jxmpp.jid.JidTestUtil;
/**
* Test for InBandBytestreamManager.
- *
+ *
* @author Henning Staib
*/
public class InBandBytestreamManagerTest extends InitExtensions {
@@ -61,9 +61,9 @@ public class InBandBytestreamManagerTest extends InitExtensions {
/**
* Initialize fields used in the tests.
- * @throws XMPPException
- * @throws SmackException
- * @throws InterruptedException
+ * @throws XMPPException
+ * @throws SmackException
+ * @throws InterruptedException
*/
@Before
public void setup() throws XMPPException, SmackException, InterruptedException {
@@ -105,9 +105,9 @@ public class InBandBytestreamManagerTest extends InitExtensions {
* Invoking {@link InBandBytestreamManager#establishSession(org.jxmpp.jid.Jid)} should
* throw an exception if the given target does not support in-band
* bytestream.
- * @throws SmackException
- * @throws XMPPException
- * @throws InterruptedException
+ * @throws SmackException
+ * @throws XMPPException
+ * @throws InterruptedException
*/
@Test
public void shouldFailIfTargetDoesNotSupportIBB() throws SmackException, XMPPException, InterruptedException {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamRequestTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamRequestTest.java
index 75a461e5f..44bbc0dd2 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamRequestTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamRequestTest.java
@@ -37,7 +37,7 @@ import org.mockito.ArgumentCaptor;
/**
* Test for InBandBytestreamRequest.
- *
+ *
* @author Henning Staib
*/
public class InBandBytestreamRequestTest extends InitExtensions {
@@ -71,8 +71,8 @@ public class InBandBytestreamRequestTest extends InitExtensions {
/**
* Test reject() method.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
@Test
public void shouldReplyWithErrorIfRequestIsRejected() throws NotConnectedException, InterruptedException {
@@ -96,7 +96,7 @@ public class InBandBytestreamRequestTest extends InitExtensions {
/**
* Test accept() method.
- *
+ *
* @throws Exception should not happen
*/
@Test
diff --git a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionMessageTest.java b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionMessageTest.java
index 92863ed1c..5df280e0a 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionMessageTest.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/smackx/bytestreams/ibb/InBandBytestreamSessionMessageTest.java
@@ -51,7 +51,7 @@ import org.powermock.reflect.Whitebox;
* Test for InBandBytestreamSession.
*
*
- *
+ *
* @param protocol protocol helper containing answer packets
* @param initiatorJID the user associated to the XMPP connection
* @return a mocked XMPP connection
- * @throws SmackException
- * @throws XMPPErrorException
- * @throws InterruptedException
+ * @throws SmackException
+ * @throws XMPPErrorException
+ * @throws InterruptedException
*/
public static XMPPConnection createMockedConnection(final Protocol protocol,
EntityFullJid initiatorJID) throws SmackException, XMPPErrorException, InterruptedException {
diff --git a/smack-extensions/src/test/java/org/jivesoftware/util/Protocol.java b/smack-extensions/src/test/java/org/jivesoftware/util/Protocol.java
index 3cb075bdc..2c9a3084a 100644
--- a/smack-extensions/src/test/java/org/jivesoftware/util/Protocol.java
+++ b/smack-extensions/src/test/java/org/jivesoftware/util/Protocol.java
@@ -38,7 +38,7 @@ import org.jivesoftware.smack.util.XmlUtil;
*
* StanzaCollector collector = connection.createStanzaCollector(new PacketFilter());
@@ -60,13 +60,13 @@ public class ConnectionUtils {
* Stanza reply = collector.nextResult();
*
*
*
- *
+ *
* Additionally to adding the response to the protocol instance you can pass
* verifications that will be executed when {@link #verifyAll()} is invoked.
* (See {@link Verification} for more details.)
@@ -77,7 +77,7 @@ import org.jivesoftware.smack.util.XmlUtil;
* also print out the XML messages in the order they are sent to the console.
* This may be useful to inspect the whole protocol "by hand".
*
* public void methodToTest() {
@@ -47,7 +47,7 @@ import org.jivesoftware.smack.util.XmlUtil;
* connection.sendStanza(packet);
* Stanza reply = collector.nextResult();
* }
- *
+ *
* public void testMethod() {
* EntityFullJid userJid = JidCreate.entityFullFrom("user@xmpp-server.org");
* DomainBareJid serverJid = JidCreate.domainBareFrom("user-server.org");
@@ -55,20 +55,20 @@ import org.jivesoftware.smack.util.XmlUtil;
* Protocol protocol = new Protocol();
* // create mocked connection
* XMPPConnection connection = ConnectionUtils.createMockedConnection(protocol, userJid, serverJid);
- *
+ *
* // add reply stanza to protocol
* Stanza reply = new Packet();
* protocol.add(reply);
- *
+ *
* // call method to test
* methodToTest();
- *
+ *
* // verify protocol
* protocol.verifyAll();
* }
*
* class of the response
- *
+ *
* @author Henning Staib
*/
public interface Verificationorg.jivesoftware.smack.chat2.Chat
from smack-extensions
instead.
*/
@@ -94,8 +94,8 @@ public class Chat {
*
*
* @param text the text to send.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void sendMessage(String text) throws NotConnectedException, InterruptedException {
Message message = new Message();
@@ -108,8 +108,8 @@ public class Chat {
* and message type of the message will automatically set to those of this chat.
*
* @param message the message to send.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void sendMessage(Message message) throws NotConnectedException, InterruptedException {
// Force the recipient, message type, and thread ID since the user elected
diff --git a/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java b/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java
index d621713c4..a811fe1f3 100644
--- a/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java
+++ b/smack-im/src/main/java/org/jivesoftware/smack/chat/ChatManager.java
@@ -96,7 +96,7 @@ public final class ChatManager extends Manager{
*/
NONE,
/**
- * Will match on the JID in the from field of the message.
+ * Will match on the JID in the from field of the message.
*/
SUPPLIED_JID,
/**
@@ -116,7 +116,7 @@ public final class ChatManager extends Manager{
});
/**
- * Determines whether incoming messages of type normal can create chats.
+ * Determines whether incoming messages of type normal can create chats.
*/
private boolean normalIncluded = defaultIsNormalInclude;
@@ -180,7 +180,7 @@ public final class ChatManager extends Manager{
/**
* Determines whether incoming messages of type normal will be used for creating new chats or matching
* a message to existing ones.
- *
+ *
* @return true if normal is allowed, false otherwise.
*/
public boolean isNormalIncluded() {
@@ -190,7 +190,7 @@ public final class ChatManager extends Manager{
/**
* Sets whether to allow incoming messages of type normal to be used for creating new chats or matching
* a message to an existing one.
- *
+ *
* @param normalIncluded true to allow normal, false otherwise.
*/
public void setNormalIncluded(boolean normalIncluded) {
@@ -199,7 +199,7 @@ public final class ChatManager extends Manager{
/**
* Gets the current mode for matching messages with NO thread id to existing chats.
- *
+ *
* @return The current mode.
*/
public MatchMode getMatchMode() {
@@ -208,7 +208,7 @@ public final class ChatManager extends Manager{
/**
* Sets the mode for matching messages with NO thread id to existing chats.
- *
+ *
* @param matchMode The mode to set.
*/
public void setMatchMode(MatchMode matchMode) {
@@ -238,7 +238,7 @@ public final class ChatManager extends Manager{
/**
* Creates a new chat using the specified thread ID, then returns it.
- *
+ *
* @param userJID the jid of the user this chat is with
* @param thread the thread of the created chat.
* @param listener the optional listener to add to the chat
@@ -309,8 +309,8 @@ public final class ChatManager extends Manager{
* Try to get a matching chat for the given user JID, based on the {@link MatchMode}.
* true
if the listener was not already added.
* @since 4.2
@@ -758,8 +758,8 @@ public final class Roster extends Manager {
* @throws XMPPErrorException if an XMPP error occurs.
* @throws NotLoggedInException if not logged in.
* @throws NoResponseException SmackException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void removeEntry(RosterEntry entry) throws NotLoggedInException, NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
final XMPPConnection connection = getAuthenticatedConnectionOrThrow();
@@ -1124,7 +1124,7 @@ public final class Roster extends Manager {
* having an implicit subscription to the users presence.
*
* The {@link #equals(Object)} method returns
- * Note: This does NOT produce standard Base 64 encodings, but a variant as defined in
+ * Note: This does NOT produce standard Base 64 encodings, but a variant as defined in
* Section 4 of RFC3548:
* http://www.faqs.org/rfcs/rfc3548.html.
* true
if the user JIDs are equal.
- *
+ *
* @param obj the reference object with which to compare.
* @return true
if this object is the same as the obj argument; false
* otherwise.
diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterGroup.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterGroup.java
index 9af55baf9..c23343487 100644
--- a/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterGroup.java
+++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterGroup.java
@@ -66,15 +66,15 @@ public class RosterGroup extends Manager {
/**
* Sets the name of the group. Changing the group's name is like moving all the group entries
- * of the group to a new group specified by the new name. Since this group won't have entries
- * it will be removed from the roster. This means that all the references to this object will
+ * of the group to a new group specified by the new name. Since this group won't have entries
+ * it will be removed from the roster. This means that all the references to this object will
* be invalid and will need to be updated to the new group specified by the new name.
*
* @param name the name of the group.
- * @throws NotConnectedException
- * @throws XMPPErrorException
- * @throws NoResponseException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws XMPPErrorException
+ * @throws NoResponseException
+ * @throws InterruptedException
*/
public void setName(String name) throws NotConnectedException, NoResponseException, XMPPErrorException, InterruptedException {
synchronized (entries) {
@@ -159,7 +159,7 @@ public class RosterGroup extends Manager {
}
/**
- * Adds a roster entry to this group. If the entry was unfiled then it will be removed from
+ * Adds a roster entry to this group. If the entry was unfiled then it will be removed from
* the unfiled list and will be added to this group.
* Note that this is a synchronous call -- Smack must wait for the server
* to receive the updated roster.
@@ -167,8 +167,8 @@ public class RosterGroup extends Manager {
* @param entry a roster entry.
* @throws XMPPErrorException if an error occured while trying to add the entry to the group.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void addEntry(RosterEntry entry) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// Only add the entry if it isn't already in the list.
@@ -186,22 +186,22 @@ public class RosterGroup extends Manager {
}
/**
- * Removes a roster entry from this group. If the entry does not belong to any other group
- * then it will be considered as unfiled, therefore it will be added to the list of unfiled
+ * Removes a roster entry from this group. If the entry does not belong to any other group
+ * then it will be considered as unfiled, therefore it will be added to the list of unfiled
* entries.
* Note that this is a synchronous call -- Smack must wait for the server
* to receive the updated roster.
*
* @param entry a roster entry.
- * @throws XMPPErrorException if an error occurred while trying to remove the entry from the group.
+ * @throws XMPPErrorException if an error occurred while trying to remove the entry from the group.
* @throws NoResponseException if there was no response from the server.
- * @throws NotConnectedException
- * @throws InterruptedException
+ * @throws NotConnectedException
+ * @throws InterruptedException
*/
public void removeEntry(RosterEntry entry) throws NoResponseException, XMPPErrorException, NotConnectedException, InterruptedException {
// Only remove the entry if it's in the entry list.
// Remove the entry locally, if we wait for RosterPacketListenerProcess>>Packet(Packet)
- // to take place the entry will exist in the group until a packet is received from the
+ // to take place the entry will exist in the group until a packet is received from the
// server.
synchronized (entries) {
if (entries.contains(entry)) {
diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java
index 80dcb986a..005b703e9 100644
--- a/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java
+++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/RosterListener.java
@@ -26,7 +26,7 @@ import org.jxmpp.jid.Jid;
/**
* A listener that is fired any time a roster is changed or the presence of
* a user in the roster is changed.
- *
+ *
* @see Roster#addRosterListener(RosterListener)
* @author Matt Tucker
*/
diff --git a/smack-im/src/main/java/org/jivesoftware/smack/roster/packet/RosterPacket.java b/smack-im/src/main/java/org/jivesoftware/smack/roster/packet/RosterPacket.java
index 248fe4028..64ba4f713 100644
--- a/smack-im/src/main/java/org/jivesoftware/smack/roster/packet/RosterPacket.java
+++ b/smack-im/src/main/java/org/jivesoftware/smack/roster/packet/RosterPacket.java
@@ -126,7 +126,7 @@ public class RosterPacket extends IQ {
*/
private boolean subscriptionPending;
- // TODO Make immutable.
+ // TODO Make immutable.
private String name;
private ItemType itemType = ItemType.none;
private boolean approved;
@@ -399,7 +399,7 @@ public class RosterPacket extends IQ {
* point in the direction presence messages are sent. For example, if there is only a head
* pointing to the big dot, then the local user will receive presence information from the
* remote entity.
- *
+ *
* @return the symbolic representation of this item type.
*/
public String asSymbol() {
diff --git a/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterOfflineTest.java b/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterOfflineTest.java
index e5ee1334f..931981c59 100644
--- a/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterOfflineTest.java
+++ b/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterOfflineTest.java
@@ -27,7 +27,7 @@ import org.junit.Test;
/**
* Tests the behavior of the roster if the connection is not authenticated yet.
- *
+ *
* @author Henning Staib
*/
public class RosterOfflineTest {
diff --git a/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterTest.java b/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterTest.java
index a85246082..4d26b20c6 100644
--- a/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterTest.java
+++ b/smack-im/src/test/java/org/jivesoftware/smack/roster/RosterTest.java
@@ -57,7 +57,7 @@ import org.xmlpull.v1.XmlPullParser;
/**
* Tests that verifies the correct behavior of the {@link Roster} implementation.
- *
+ *
* @see Roster
* @see Roster Management
* @author Guenther Niess
@@ -369,7 +369,7 @@ public class RosterTest extends InitSmackIm {
/**
* Tests that roster pushes with invalid from are ignored.
- * @throws XmppStringprepException
+ * @throws XmppStringprepException
*
* @see RFC 6121, Section 2.1.6
*/
@@ -397,7 +397,7 @@ public class RosterTest extends InitSmackIm {
/**
* Test if adding an user with an empty group is equivalent with providing
* no group.
- *
+ *
* @see SMACK-294
*/
@Test(timeout = 5000)
@@ -465,7 +465,7 @@ public class RosterTest extends InitSmackIm {
/**
* Test processing a roster push with an empty group is equivalent with providing
* no group.
- *
+ *
* @see SMACK-294
*/
@Test
@@ -512,7 +512,7 @@ public class RosterTest extends InitSmackIm {
/**
* Remove all roster entries by iterating trough {@link Roster#getEntries()}
* and simulating receiving roster pushes from the server.
- *
+ *
* @param connection the dummy connection of which the provided roster belongs to.
* @param roster the roster (or buddy list) which should be initialized.
*/
@@ -538,8 +538,8 @@ public class RosterTest extends InitSmackIm {
* RFC3921: Retrieving One's Roster on Login.
*
- * @throws SmackException
- * @throws XmppStringprepException
+ * @throws SmackException
+ * @throws XmppStringprepException
*/
private void initRoster() throws InterruptedException, SmackException, XmppStringprepException {
roster.reload();
@@ -587,7 +587,7 @@ public class RosterTest extends InitSmackIm {
* Check Romeo's roster entry according to the example in
* RFC3921: Retrieving One's Roster on Login.
- *
+ *
* @param romeo the roster entry which should be verified.
*/
public static void verifyRomeosEntry(final RosterEntry romeo) {
@@ -610,7 +610,7 @@ public class RosterTest extends InitSmackIm {
* Check Mercutio's roster entry according to the example in
* RFC3921: Retrieving One's Roster on Login.
- *
+ *
* @param mercutio the roster entry which should be verified.
*/
public static void verifyMercutiosEntry(final RosterEntry mercutio) {
@@ -629,7 +629,7 @@ public class RosterTest extends InitSmackIm {
* Check Benvolio's roster entry according to the example in
* RFC3921: Retrieving One's Roster on Login.
- *
+ *
* @param benvolio the roster entry which should be verified.
*/
public static void verifyBenvoliosEntry(final RosterEntry benvolio) {
@@ -654,7 +654,7 @@ public class RosterTest extends InitSmackIm {
/**
* Overwrite this method to check if the received update request is valid.
- *
+ *
* @param updateRequest the request which would be sent to the server.
*/
abstract void verifyUpdateRequest(RosterPacket updateRequest);
@@ -699,7 +699,7 @@ public class RosterTest extends InitSmackIm {
/**
* Returns the exception or error if something went wrong.
- *
+ *
* @return the Throwable exception or error that occurred.
*/
public Throwable getException() {
@@ -741,7 +741,7 @@ public class RosterTest extends InitSmackIm {
/**
* Get a collection of JIDs of the added roster items.
- *
+ *
* @return the collection of addresses which were added.
*/
public Collection
* If not predicate is configured, the {@link Predicate#forMessagesOrAfter5Stanzas()} will be used. *
- * + * * @param predicate the predicate to add. * @return if the predicate was not already active. */ @@ -1652,7 +1652,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { * * @throws StreamManagementNotEnabledException if Stream Management is not enabled. * @throws NotConnectedException if the connection is not connected. - * @throws InterruptedException + * @throws InterruptedException */ public void requestSmAcknowledgement() throws StreamManagementNotEnabledException, NotConnectedException, InterruptedException { if (!isSmEnabled()) { @@ -1672,10 +1672,10 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { * "Either party MAY send an <a/> element at any time (e.g., after it has received a certain number of stanzas, * or after a certain period of time), even if it has not received an <r/> element from the other party." * - * + * * @throws StreamManagementNotEnabledException if Stream Management is not enabled. * @throws NotConnectedException if the connection is not connected. - * @throws InterruptedException + * @throws InterruptedException */ public void sendSmAcknowledgement() throws StreamManagementNotEnabledException, NotConnectedException, InterruptedException { if (!isSmEnabled()) { @@ -1695,7 +1695,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { * automatically removed. Consider using {@link #addStanzaIdAcknowledgedListener(String, StanzaListener)} when * possible. * - * + * * @param listener the listener to add. */ public void addStanzaAcknowledgedListener(StanzaListener listener) { @@ -1725,7 +1725,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { * The listener will be invoked if the stanza with the given ID was acknowledged by the server. It will * automatically be removed after the listener was run. * - * + * * @param id the stanza ID. * @param listener the listener to invoke. * @return the previous listener for this stanza ID or null. @@ -1750,7 +1750,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { /** * Remove the Stanza ID acknowledged listener for the given ID. - * + * * @param id the stanza ID. * @return true if the listener was found and removed, false otherwise. */ @@ -1785,7 +1785,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { /** * Returns true if the stream was successfully resumed with help of Stream Management. - * + * * @return true if the stream was resumed. */ public boolean streamWasResumed() { @@ -1794,7 +1794,7 @@ public class XMPPTCPConnection extends AbstractXMPPConnection { /** * Returns true if the connection is disconnected by a Stream resumption via Stream Management is possible. - * + * * @return true if disconnected but resumption possible. */ public boolean isDisconnectedButSmResumptionPossible() { diff --git a/smack-tcp/src/test/java/org/jivesoftware/smack/tcp/PacketWriterTest.java b/smack-tcp/src/test/java/org/jivesoftware/smack/tcp/PacketWriterTest.java index 5cfd11fe5..c72996783 100644 --- a/smack-tcp/src/test/java/org/jivesoftware/smack/tcp/PacketWriterTest.java +++ b/smack-tcp/src/test/java/org/jivesoftware/smack/tcp/PacketWriterTest.java @@ -39,11 +39,11 @@ public class PacketWriterTest { * {@link PacketWriter#QUEUE_SIZE} and that * {@link PacketWriter#sendStanza(org.jivesoftware.smack.tcp.packet.Packet)} does unblock after the * interrupt. - * + * * @throws InterruptedException * @throws BrokenBarrierException - * @throws NotConnectedException - * @throws XmppStringprepException + * @throws NotConnectedException + * @throws XmppStringprepException */ @SuppressWarnings("javadoc") @Test