aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip
diff options
context:
space:
mode:
authorSebastien Vincent <seb@jitsi.org>2012-03-09 14:54:07 +0000
committerSebastien Vincent <seb@jitsi.org>2012-03-09 14:54:07 +0000
commitd9bef7b03a7c81e26a25ec876cea7477bc3d9689 (patch)
tree5da81af9038d5660c6754cf0737b3171bb84a8ae /src/net/java/sip
parentdc0feb41a073563e32e8ab212aeaa953f73d2bf8 (diff)
downloadjitsi-d9bef7b03a7c81e26a25ec876cea7477bc3d9689.zip
jitsi-d9bef7b03a7c81e26a25ec876cea7477bc3d9689.tar.gz
jitsi-d9bef7b03a7c81e26a25ec876cea7477bc3d9689.tar.bz2
Fixes style formating, javadoc and eclipse related warnings.
Diffstat (limited to 'src/net/java/sip')
-rw-r--r--src/net/java/sip/communicator/impl/globalshortcut/NativeKeyboardHook.java2
-rw-r--r--src/net/java/sip/communicator/impl/history/DBStructSerializer.java12
-rw-r--r--src/net/java/sip/communicator/impl/history/HistoryImpl.java3
-rw-r--r--src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java12
-rw-r--r--src/net/java/sip/communicator/impl/history/HistoryWriterImpl.java4
-rw-r--r--src/net/java/sip/communicator/impl/history/OrderedQueryResultSet.java6
-rw-r--r--src/net/java/sip/communicator/impl/ldap/LdapDirectorySettingsImpl.java12
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/EncodingConfigurationTableModel.java13
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/MediaStreamStatsImpl.java9
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/AbstractCodecExt.java11
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/Constants.java50
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/FFmpeg.java18
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/DePacketizer.java3
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Decoder.java5
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Encoder.java5
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMDecoderUtil.java9
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMEncoderUtil.java9
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Packetizer.java3
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/audio/ilbc/ilbc_common.java2
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/video/AVFrameFormat.java4
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/video/FinalizableAVFrame.java8
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/codec/video/ImageScaler.java31
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/portaudio/PortAudioStreamCallback.java19
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/protocol/RewritablePushBufferDataSource.java14
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/transform/dtmf/DtmfTransformEngine.java4
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/transform/sdes/SDesControlImpl.java32
-rw-r--r--src/net/java/sip/communicator/impl/neomedia/transform/zrtp/ZRTPTransformEngine.java49
-rw-r--r--src/net/java/sip/communicator/impl/notification/PopupMessageNotificationHandlerImpl.java7
-rw-r--r--src/net/java/sip/communicator/impl/protocol/jabber/InfoRetreiver.java8
-rw-r--r--src/net/java/sip/communicator/impl/protocol/msn/AdHocChatRoomMsnImpl.java119
-rw-r--r--src/net/java/sip/communicator/impl/protocol/msn/ContactMsnImpl.java2
-rw-r--r--src/net/java/sip/communicator/impl/protocol/msn/mail/utils/MimeUtility.java14
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/OperationSetAvatarSipImpl.java10
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/OperationSetBasicTelephonySipImpl.java4
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java2
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java7
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/SipStatusEnum.java15
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/net/ProxyConnection.java13
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java5
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/xcap/XCapException.java5
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/xcap/model/ParsingException.java5
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/xcap/model/XmlUtils.java1
-rw-r--r--src/net/java/sip/communicator/impl/protocol/sip/xcap/model/commonpolicy/CommonPolicyParser.java60
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/ContactSSH.java89
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/ContactTimerSSHImpl.java2
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/OperationSetFileTransferSSHImpl.java18
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java175
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/Resources.java7
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/SSHActivator.java33
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/SSHContactInfo.java112
-rw-r--r--src/net/java/sip/communicator/impl/sysactivity/DBusNetworkManager.java8
-rw-r--r--src/net/java/sip/communicator/plugin/accountinfo/AccountDetailsPanel.java19
-rw-r--r--src/net/java/sip/communicator/plugin/accountinfo/AccountInfoActivator.java12
-rw-r--r--src/net/java/sip/communicator/plugin/accountinfo/AccountInfoPanel.java9
-rw-r--r--src/net/java/sip/communicator/plugin/addrbook/AdvancedConfigForm.java7
-rw-r--r--src/net/java/sip/communicator/plugin/addrbook/macosx/MacOSXAddrBookContactSourceService.java3
-rw-r--r--src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java3
-rw-r--r--src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookMAPIHResultException.java5
-rw-r--r--src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java21
-rw-r--r--src/net/java/sip/communicator/plugin/aimaccregwizz/FirstWizardPage.java5
-rw-r--r--src/net/java/sip/communicator/plugin/aimaccregwizz/Resources.java9
-rw-r--r--src/net/java/sip/communicator/plugin/branding/AboutWindow.java14
-rw-r--r--src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java5
-rw-r--r--src/net/java/sip/communicator/plugin/branding/BrandingActivator.java10
-rw-r--r--src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java10
-rw-r--r--src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java32
-rw-r--r--src/net/java/sip/communicator/plugin/certconfig/CertConfigEntryDialog.java14
-rw-r--r--src/net/java/sip/communicator/plugin/certconfig/CertConfigTableModel.java11
-rw-r--r--src/net/java/sip/communicator/plugin/chatconfig/ChatConfigPanel.java9
-rw-r--r--src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigPanel.java20
-rw-r--r--src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigurationTableModel.java19
-rw-r--r--src/net/java/sip/communicator/plugin/contactinfo/ContactInfoContactPanel.java18
-rw-r--r--src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDetailsPanel.java42
-rw-r--r--src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java9
-rw-r--r--src/net/java/sip/communicator/plugin/contactinfo/Resources.java15
-rw-r--r--src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigActivator.java10
-rw-r--r--src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigForm.java14
-rw-r--r--src/net/java/sip/communicator/plugin/defaultresourcepack/DefaultLanguagePackImpl.java3
-rw-r--r--src/net/java/sip/communicator/service/callhistory/CallPeerRecord.java1
-rw-r--r--src/net/java/sip/communicator/service/certificate/CertificateMatcher.java5
-rw-r--r--src/net/java/sip/communicator/service/certificate/CertificateService.java39
-rw-r--r--src/net/java/sip/communicator/service/filehistory/FileRecord.java8
-rw-r--r--src/net/java/sip/communicator/service/gui/WindowID.java9
-rw-r--r--src/net/java/sip/communicator/service/httputil/HttpUtils.java10
-rw-r--r--src/net/java/sip/communicator/service/keybindings/KeybindingSet.java7
-rw-r--r--src/net/java/sip/communicator/service/ldap/LdapDirectorySettings.java2
-rw-r--r--src/net/java/sip/communicator/service/msghistory/event/ProgressEvent.java7
-rw-r--r--src/net/java/sip/communicator/service/neomedia/MediaStreamStats.java3
-rw-r--r--src/net/java/sip/communicator/service/neomedia/MediaTypeSrtpControl.java11
-rw-r--r--src/net/java/sip/communicator/service/neomedia/event/VolumeChangeEvent.java7
-rw-r--r--src/net/java/sip/communicator/service/notification/NotificationService.java45
-rw-r--r--src/net/java/sip/communicator/service/packetlogging/PacketLoggingService.java24
-rw-r--r--src/net/java/sip/communicator/service/protocol/AbstractOperationSetServerStoredAccountInfo.java1
-rw-r--r--src/net/java/sip/communicator/service/protocol/AccountID.java13
-rw-r--r--src/net/java/sip/communicator/service/protocol/TransportProtocol.java8
-rw-r--r--src/net/java/sip/communicator/service/protocol/event/DTMFReceivedEvent.java2
-rw-r--r--src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java6
-rw-r--r--src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java7
-rw-r--r--src/net/java/sip/communicator/service/protocol/event/PresenceStatusListener.java3
-rw-r--r--src/net/java/sip/communicator/service/protocol/event/ServerStoredDetailsChangeEvent.java12
-rw-r--r--src/net/java/sip/communicator/service/protocol/jabberconstants/JabberStatusEnum.java7
-rw-r--r--src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java2
-rw-r--r--src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java7
-rw-r--r--src/net/java/sip/communicator/util/GuiUtils.java12
-rw-r--r--src/net/java/sip/communicator/util/UtilActivator.java18
-rw-r--r--src/net/java/sip/communicator/util/dns/ConfigurableDnssecResolver.java9
-rw-r--r--src/net/java/sip/communicator/util/dns/DnsUtilActivator.java8
-rw-r--r--src/net/java/sip/communicator/util/dns/DnssecException.java7
-rw-r--r--src/net/java/sip/communicator/util/dns/DnssecRuntimeException.java7
-rw-r--r--src/net/java/sip/communicator/util/dns/UnboundException.java9
-rw-r--r--src/net/java/sip/communicator/util/launchutils/AEGetURLEventHandler.java5
-rw-r--r--src/net/java/sip/communicator/util/swing/EmphasizedLabel.java5
-rw-r--r--src/net/java/sip/communicator/util/swing/FileDragLabel.java10
-rw-r--r--src/net/java/sip/communicator/util/swing/FramedImage.java13
-rw-r--r--src/net/java/sip/communicator/util/swing/FramedImageWithMenu.java39
-rw-r--r--src/net/java/sip/communicator/util/swing/ImageCanvas.java10
-rw-r--r--src/net/java/sip/communicator/util/swing/LowPriorityEventQueue.java5
-rw-r--r--src/net/java/sip/communicator/util/swing/MasterPasswordInputDialog.java25
-rw-r--r--src/net/java/sip/communicator/util/swing/PopupNotificationPanel.java7
-rwxr-xr-xsrc/net/java/sip/communicator/util/swing/SIPCommButton.java7
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommDialog.java10
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommFrame.java35
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommHTMLEditorKit.java10
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommMenuBar.java7
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommPopupMenu.java10
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommTabbedPane.java12
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommTextButton.java5
-rw-r--r--src/net/java/sip/communicator/util/swing/SIPCommToggleButton.java7
-rw-r--r--src/net/java/sip/communicator/util/swing/SipCommFileChooserImpl.java23
-rw-r--r--src/net/java/sip/communicator/util/swing/TrimTextField.java5
-rw-r--r--src/net/java/sip/communicator/util/swing/UIAction.java7
-rw-r--r--src/net/java/sip/communicator/util/swing/VideoContainer.java10
-rw-r--r--src/net/java/sip/communicator/util/swing/X509CertificatePanel.java9
-rw-r--r--src/net/java/sip/communicator/util/swing/border/ExtendedEtchedBorder.java9
-rw-r--r--src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneEnhancedUI.java13
-rw-r--r--src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneUI.java43
-rw-r--r--src/net/java/sip/communicator/util/swing/transparent/TransparentFrame.java5
137 files changed, 1462 insertions, 618 deletions
diff --git a/src/net/java/sip/communicator/impl/globalshortcut/NativeKeyboardHook.java b/src/net/java/sip/communicator/impl/globalshortcut/NativeKeyboardHook.java
index b61971b..4a2699f 100644
--- a/src/net/java/sip/communicator/impl/globalshortcut/NativeKeyboardHook.java
+++ b/src/net/java/sip/communicator/impl/globalshortcut/NativeKeyboardHook.java
@@ -114,7 +114,6 @@ public class NativeKeyboardHook
* Register a special key shortcut (for example key coming from headset).
*
* @param keycode keycode of the shortcut
- * @param modifiers modifiers (CTRL, ALT, ...)
* @return true if success, false otherwise
*/
public synchronized boolean registerSpecial(int keycode)
@@ -129,7 +128,6 @@ public class NativeKeyboardHook
* Unregister a special key shortcut (for example key coming from headset).
*
* @param keycode keycode of the shortcut
- * @param modifiers modifiers (CTRL, ALT, ...)
*/
public synchronized void unregisterSpecial(int keycode)
{
diff --git a/src/net/java/sip/communicator/impl/history/DBStructSerializer.java b/src/net/java/sip/communicator/impl/history/DBStructSerializer.java
index 9100c80..5bc581b 100644
--- a/src/net/java/sip/communicator/impl/history/DBStructSerializer.java
+++ b/src/net/java/sip/communicator/impl/history/DBStructSerializer.java
@@ -25,11 +25,23 @@ public class DBStructSerializer {
private HistoryServiceImpl historyService;
+ /**
+ * Constructor.
+ *
+ * @param historyService the history service
+ */
public DBStructSerializer(HistoryServiceImpl historyService)
{
this.historyService = historyService;
}
+ /**
+ * Write the history.
+ *
+ * @param dbDatFile the database file
+ * @param history the history to write
+ * @throws IOException if write failed for any reason
+ */
public void writeHistory(File dbDatFile, History history)
throws IOException {
DocumentBuilder builder = this.historyService.getDocumentBuilder();
diff --git a/src/net/java/sip/communicator/impl/history/HistoryImpl.java b/src/net/java/sip/communicator/impl/history/HistoryImpl.java
index 84e8a30..21f6408 100644
--- a/src/net/java/sip/communicator/impl/history/HistoryImpl.java
+++ b/src/net/java/sip/communicator/impl/history/HistoryImpl.java
@@ -26,6 +26,9 @@ public class HistoryImpl
{
private static Logger log = Logger.getLogger(HistoryImpl.class);
+ /**
+ * The supported filetype.
+ */
public static final String SUPPORTED_FILETYPE = "xml";
private HistoryID id;
diff --git a/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java b/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java
index 9e34e93..48214eb 100644
--- a/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java
+++ b/src/net/java/sip/communicator/impl/history/HistoryServiceImpl.java
@@ -29,8 +29,14 @@ import net.java.sip.communicator.util.*;
public class HistoryServiceImpl
implements HistoryService
{
+ /**
+ * The data directory.
+ */
public static final String DATA_DIRECTORY = "history_ver1.0";
+ /**
+ * The data file.
+ */
public static final String DATA_FILE = "dbstruct.dat";
/**
@@ -66,6 +72,12 @@ public class HistoryServiceImpl
{"\\|", "&_pp"} // the char |
};
+ /**
+ * Constructor.
+ *
+ * @param bundleContext OSGi bundle context
+ * @throws Exception if something went wrong during initialization
+ */
public HistoryServiceImpl(BundleContext bundleContext)
throws Exception
{
diff --git a/src/net/java/sip/communicator/impl/history/HistoryWriterImpl.java b/src/net/java/sip/communicator/impl/history/HistoryWriterImpl.java
index c15426c..144e342 100644
--- a/src/net/java/sip/communicator/impl/history/HistoryWriterImpl.java
+++ b/src/net/java/sip/communicator/impl/history/HistoryWriterImpl.java
@@ -22,7 +22,11 @@ import net.java.sip.communicator.util.xml.*;
public class HistoryWriterImpl
implements HistoryWriter
{
+ /**
+ * Maximum records per file.
+ */
public static final int MAX_RECORDS_PER_FILE = 150;
+
private static final String CDATA_SUFFIX = "_CDATA";
private Object docCreateLock = new Object();
diff --git a/src/net/java/sip/communicator/impl/history/OrderedQueryResultSet.java b/src/net/java/sip/communicator/impl/history/OrderedQueryResultSet.java
index 60bcb6d..d1f6b1c 100644
--- a/src/net/java/sip/communicator/impl/history/OrderedQueryResultSet.java
+++ b/src/net/java/sip/communicator/impl/history/OrderedQueryResultSet.java
@@ -8,6 +8,7 @@ import net.java.sip.communicator.service.history.*;
* This implementation is the same as DefaultQueryResultSet but the
* container holding the records is LinkedList - so guarantees that values are ordered
*
+ * @param <T> element type of query
* @author Damian Minkov
*/
public class OrderedQueryResultSet<T>
@@ -17,6 +18,11 @@ public class OrderedQueryResultSet<T>
private int currentPos = -1;
+ /**
+ * Constructor.
+ *
+ * @param records the <tt>Set</tt> of records
+ */
public OrderedQueryResultSet(Set<T> records)
{
this.records = new LinkedList<T>(records);
diff --git a/src/net/java/sip/communicator/impl/ldap/LdapDirectorySettingsImpl.java b/src/net/java/sip/communicator/impl/ldap/LdapDirectorySettingsImpl.java
index 21e6d3a..b30093d 100644
--- a/src/net/java/sip/communicator/impl/ldap/LdapDirectorySettingsImpl.java
+++ b/src/net/java/sip/communicator/impl/ldap/LdapDirectorySettingsImpl.java
@@ -244,7 +244,7 @@ public class LdapDirectorySettingsImpl
*
* @return the encryption property
*
- * @see LdapConstants.Encryption
+ * @see net.java.sip.communicator.service.ldap.LdapConstants.Encryption
*/
public Encryption getEncryption()
{
@@ -256,7 +256,7 @@ public class LdapDirectorySettingsImpl
*
* @param encryption the encryption property
*
- * @see LdapConstants.Encryption
+ * @see net.java.sip.communicator.service.ldap.LdapConstants.Encryption
*/
public void setEncryption(Encryption encryption)
{
@@ -288,7 +288,7 @@ public class LdapDirectorySettingsImpl
*
* @return the auth property
*
- * @see LdapConstants.Auth
+ * @see net.java.sip.communicator.service.ldap.LdapConstants.Auth
*/
public Auth getAuth()
{
@@ -300,7 +300,7 @@ public class LdapDirectorySettingsImpl
*
* @param auth the auth property
*
- * @see LdapConstants.Auth
+ * @see net.java.sip.communicator.service.ldap.LdapConstants.Auth
*/
public void setAuth(Auth auth)
{
@@ -398,7 +398,7 @@ public class LdapDirectorySettingsImpl
*
* @return the search scope
*
- * @see LdapConstants.Scope
+ * @see net.java.sip.communicator.service.ldap.LdapConstants.Scope
* @see LdapDirectorySettings#getScope
*/
public Scope getScope()
@@ -412,7 +412,7 @@ public class LdapDirectorySettingsImpl
*
* @param scope the new search scope
*
- * @see LdapConstants.Scope
+ * @see net.java.sip.communicator.service.ldap.LdapConstants.Scope
* @see LdapDirectorySettings#setScope
*/
public void setScope(Scope scope)
diff --git a/src/net/java/sip/communicator/impl/neomedia/EncodingConfigurationTableModel.java b/src/net/java/sip/communicator/impl/neomedia/EncodingConfigurationTableModel.java
index 1a813c7..fc3bbd9 100644
--- a/src/net/java/sip/communicator/impl/neomedia/EncodingConfigurationTableModel.java
+++ b/src/net/java/sip/communicator/impl/neomedia/EncodingConfigurationTableModel.java
@@ -34,6 +34,12 @@ public class EncodingConfigurationTableModel
private final MediaType type;
+ /**
+ * Constructor.
+ *
+ * @param encodingConfiguration the encoding configuration
+ * @param type media type
+ */
public EncodingConfigurationTableModel(
EncodingConfiguration encodingConfiguration, int type)
{
@@ -204,6 +210,13 @@ public class EncodingConfigurationTableModel
return (columnIndex == 0);
}
+ /**
+ * Move the row.
+ *
+ * @param rowIndex index of the row
+ * @param up true to move up, false to move down
+ * @return the next row index
+ */
public int move(int rowIndex, boolean up)
{
if (up)
diff --git a/src/net/java/sip/communicator/impl/neomedia/MediaStreamStatsImpl.java b/src/net/java/sip/communicator/impl/neomedia/MediaStreamStatsImpl.java
index 7a62c09..8407b37 100644
--- a/src/net/java/sip/communicator/impl/neomedia/MediaStreamStatsImpl.java
+++ b/src/net/java/sip/communicator/impl/neomedia/MediaStreamStatsImpl.java
@@ -10,9 +10,7 @@ import net.java.sip.communicator.service.neomedia.*;
import net.sf.fmj.media.rtp.*;
import java.net.*;
-import java.util.*;
import javax.media.rtp.*;
-import javax.media.rtp.rtcp.*;
/**
* Class used to compute stats concerning a MediaStream.
@@ -127,7 +125,7 @@ public class MediaStreamStatsImpl
// stream.
long downloadNewNbByte = this.getDownloadNbByte();
long uploadNewNbByte = this.getDownloadNbByte();
-
+
// Computes the number of update steps which has not been done since
// last update.
long downloadNbSteps = downloadNewNbRecv - this.downloadNbPackets;
@@ -420,7 +418,7 @@ public class MediaStreamStatsImpl
* @param nbByteRecv The number of Byte received.
* @param callNbTimeMsSpent The time spent since the mediaStreamImpl is
* connected to the endpoint.
- *
+ *
* @return the bandwidth rate computed in Kilo bits per secondes.
*/
private static double computeRateKiloBitPerSec(
@@ -460,7 +458,7 @@ public class MediaStreamStatsImpl
EWMACoeff = 1.0;
}
return lastValue * (1.0 - EWMACoeff) + newValue * EWMACoeff;
-
+
}
/**
@@ -554,5 +552,4 @@ public class MediaStreamStatsImpl
}
return rtpManager.getGlobalTransmissionStats().getBytesSent();
}
-
}
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/AbstractCodecExt.java b/src/net/java/sip/communicator/impl/neomedia/codec/AbstractCodecExt.java
index bafcf30..f0287fd 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/AbstractCodecExt.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/AbstractCodecExt.java
@@ -120,8 +120,8 @@ public abstract class AbstractCodecExt
/**
* Implements {@link AbstractCodec#getSupportedOutputFormats(Format)}.
*
- * @param inputFormat
- * @return
+ * @param inputFormat input format
+ * @return array of supported output format
* @see AbstractCodec#getSupportedOutputFormats(Format)
*/
public Format[] getSupportedOutputFormats(Format inputFormat)
@@ -138,6 +138,10 @@ public abstract class AbstractCodecExt
/**
* Utility to perform format matching.
+ *
+ * @param in input format
+ * @param outs array of output formats
+ * @return the first output format that is supported
*/
public static Format matches(Format in, Format outs[])
{
@@ -176,7 +180,8 @@ public abstract class AbstractCodecExt
*
* @param inputBuffer
* @param outputBuffer
- * @return
+ * @return BUFFER_PROCESSED_OK if all go OK or BUFFER_PROCESSED_FAILED if
+ * problems occurred
* @see AbstractCodec#process(Buffer, Buffer)
*/
public int process(Buffer inputBuffer, Buffer outputBuffer)
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/Constants.java b/src/net/java/sip/communicator/impl/neomedia/codec/Constants.java
index 52b81b8..803c329 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/Constants.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/Constants.java
@@ -18,19 +18,69 @@ import net.java.sip.communicator.util.*;
*/
public class Constants
{
+ /**
+ * The ALAW/RTP constant.
+ */
public static final String ALAW_RTP = "ALAW/rtp";
+
+ /**
+ * The G722 constant.
+ */
public static final String G722 = "g722";
+
+ /**
+ * The G722/RTP constant.
+ */
public static final String G722_RTP = "g722/rtp";
+
+ /**
+ * The iLBC constant.
+ */
public static final String ILBC = "ilbc";
+
+ /**
+ * The iLBC/RTP constant.
+ */
public static final String ILBC_RTP = "ilbc/rtp";
+
+ /**
+ * The SILK constant.
+ */
public static final String SILK = "SILK";
+
+ /**
+ * The SILK/RTP constant.
+ */
public static final String SILK_RTP = "SILK/rtp";
+
+ /**
+ * The SPEEX constant.
+ */
public static final String SPEEX = "speex";
+
+ /**
+ * The SPEEX/RTP constant.
+ */
public static final String SPEEX_RTP = "speex/rtp";
+ /**
+ * The H264 constant.
+ */
public static final String H264 = "h264";
+
+ /**
+ * The H264/RTP constant.
+ */
public static final String H264_RTP = "h264/rtp";
+
+ /**
+ * The H263+ constant.
+ */
public static final String H263P = "H263-1998";
+
+ /**
+ * The H263+/RTP constant.
+ */
public static final String H263P_RTP = "h263-1998/rtp";
/**
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/FFmpeg.java b/src/net/java/sip/communicator/impl/neomedia/codec/FFmpeg.java
index 8575231..07788f5 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/FFmpeg.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/FFmpeg.java
@@ -19,6 +19,9 @@ public class FFmpeg
*/
public static final long AV_NOPTS_VALUE = 0x8000000000000000L;
+ /**
+ * The AV sample format for signed 16.
+ */
public static final int AV_SAMPLE_FMT_S16 = 1;
/**
@@ -96,8 +99,14 @@ public class FFmpeg
*/
public static final int FF_MIN_BUFFER_SIZE = 16384;
+ /**
+ * The H264 baseline profile.
+ */
public static final int FF_PROFILE_H264_BASELINE = 66;
+ /**
+ * The H264 main profile.
+ */
public static final int FF_PROFILE_H264_MAIN = 77;
/**
@@ -340,6 +349,12 @@ public class FFmpeg
*/
public static native void avcodeccontext_add_flags2(long avctx, int flags2);
+ /**
+ * Add specified partitions to the avcodeccontext.
+ *
+ * @param avctx pointer to AVCodecContext
+ * @param partitions the partitions to add
+ */
public static native void avcodeccontext_add_partitions(long avctx,
int partitions);
@@ -695,7 +710,7 @@ public class FFmpeg
/**
* Allocates a new <tt>AVFilterGraph</tt> instance.
*
- * @return a pointer to the newly-allocated <tt>AVFilterGraph</tt> instance
+ * @return a pointer to the newly-allocated <tt>AVFilterGraph</tt> instance
*/
public static native long avfilter_graph_alloc();
@@ -725,6 +740,7 @@ public class FFmpeg
* <tt>AVFilterContext</tt> instance with the specified name is to be found
* @param name the name of the <tt>AVFilterContext</tt> instance which is to
* be found in the specified <tt>graph</tt>
+ * @return the filter graph pointer
*/
public static native long avfilter_graph_get_filter(
long graph,
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/DePacketizer.java b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/DePacketizer.java
index 37448ff..c56885d 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/DePacketizer.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/DePacketizer.java
@@ -28,6 +28,9 @@ public class DePacketizer
return "GSM DePacketizer";
}
+ /**
+ * Constructs a new <tt>DePacketizer</tt>.
+ */
public DePacketizer()
{
super();
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Decoder.java b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Decoder.java
index 71b2345..94090b2 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Decoder.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Decoder.java
@@ -34,6 +34,9 @@ public class Decoder
return "GSM Decoder";
}
+ /**
+ * Constructs a new <tt>Decoder</tt>.
+ */
public Decoder()
{
super();
@@ -130,7 +133,7 @@ public class Decoder
@Override
public void close()
{
-
+
}
private static final boolean TRACE = false;
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Encoder.java b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Encoder.java
index ae55fe5..fff44b2 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Encoder.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Encoder.java
@@ -26,7 +26,6 @@ public class Encoder
private static final int PCM_BYTES = 320;
private static final int GSM_BYTES = 33;
private int innerDataLength = 0;
- private int inputDataLength = 0;
byte[] innerContent;
@Override
@@ -35,6 +34,9 @@ public class Encoder
return "GSM Encoder";
}
+ /**
+ * Constructs a new <tt>Encoder</tt>.
+ */
public Encoder()
{
super();
@@ -123,7 +125,6 @@ public class Encoder
innerBuffer.setData(mergedContent);
innerBuffer.setLength(mergedContent.length);
innerDataLength = innerBuffer.getLength();
- inputDataLength = inputBuffer.getLength();
if (TRACE) dump("input ", inputBuffer);
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMDecoderUtil.java b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMDecoderUtil.java
index 63225af..56eb32f 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMDecoderUtil.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMDecoderUtil.java
@@ -22,6 +22,15 @@ public class GSMDecoderUtil
private static final int PCM_INTS = 160;
private static final int PCM_BYTES = 320;
+ /**
+ * Decode GSM data.
+ *
+ * @param bigEndian if the data are in big endian format
+ * @param data the GSM data
+ * @param offset offset
+ * @param length length of the data
+ * @param decoded decoded data array
+ */
public static void gsmDecode(boolean bigEndian,
byte[] data,
int offset,
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMEncoderUtil.java b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMEncoderUtil.java
index dc48252..7010946 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMEncoderUtil.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/GSMEncoderUtil.java
@@ -32,6 +32,15 @@ public class GSMEncoderUtil {
*/
private static final int PCM_INTS = 160;
+ /**
+ * Encode data to GSM.
+ *
+ * @param bigEndian if the data is in big endian format
+ * @param data data to encode
+ * @param offset offset
+ * @param length length of data
+ * @param decoded array of encoded data.
+ */
public static void gsmEncode(
boolean bigEndian,
byte[] data,
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Packetizer.java b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Packetizer.java
index 7923956..5e34d4b 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Packetizer.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/audio/gsm/Packetizer.java
@@ -28,6 +28,9 @@ public class Packetizer
return "GSM Packetizer";
}
+ /**
+ * Constructs a new <tt>Packetizer</tt>.
+ */
public Packetizer()
{
super();
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/audio/ilbc/ilbc_common.java b/src/net/java/sip/communicator/impl/neomedia/codec/audio/ilbc/ilbc_common.java
index 1c89f59..0774e4d 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/audio/ilbc/ilbc_common.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/audio/ilbc/ilbc_common.java
@@ -23,7 +23,6 @@ class ilbc_common {
table */
{
int k,n,m, Nit=2, change=0,pos;
- float tmp;
float eps=(float)0.039; /* 50 Hz */
float eps2=(float)0.0195;
float maxlsf=(float)3.14; /* 4000 Hz */
@@ -39,7 +38,6 @@ class ilbc_common {
if ((lsf[pos+1]-lsf[pos])<eps) {
if (lsf[pos+1]<lsf[pos]) {
- tmp=lsf[pos+1];
lsf[pos+1]= lsf[pos]+eps2;
lsf[pos]= lsf[pos+1]-eps2;
} else {
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/video/AVFrameFormat.java b/src/net/java/sip/communicator/impl/neomedia/codec/video/AVFrameFormat.java
index 59fc8cd..dc2bbb4 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/video/AVFrameFormat.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/video/AVFrameFormat.java
@@ -24,6 +24,10 @@ import javax.media.format.*;
public class AVFrameFormat
extends VideoFormat
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
/**
* The encoding of the <tt>AVFrameFormat</tt> instances.
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/video/FinalizableAVFrame.java b/src/net/java/sip/communicator/impl/neomedia/codec/video/FinalizableAVFrame.java
index 515d3eb..6ef4118 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/video/FinalizableAVFrame.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/video/FinalizableAVFrame.java
@@ -79,6 +79,14 @@ public class FinalizableAVFrame
FFmpeg.av_free(data0);
}
+ /**
+ * Read the frame.
+ *
+ * @param buffer buffer
+ * @param format format of the buffer
+ * @param data the data
+ * @param byteBufferPool the <tt>ByteBuffer</tt> pool
+ */
public static void read(
Buffer buffer,
Format format,
diff --git a/src/net/java/sip/communicator/impl/neomedia/codec/video/ImageScaler.java b/src/net/java/sip/communicator/impl/neomedia/codec/video/ImageScaler.java
index 22aa6e8..4850460 100644
--- a/src/net/java/sip/communicator/impl/neomedia/codec/video/ImageScaler.java
+++ b/src/net/java/sip/communicator/impl/neomedia/codec/video/ImageScaler.java
@@ -8,7 +8,6 @@ package net.java.sip.communicator.impl.neomedia.codec.video;
import java.awt.*;
import java.awt.image.*;
-import java.awt.geom.*;
import javax.media.Buffer;
import javax.media.Codec;
@@ -24,7 +23,7 @@ import net.sf.fmj.media.util.ImageToBuffer;
* Codec that scales images from one size to another.
* Interestingly, cross-platform JMF does not appear to have a corresponding codec.
* @author Ken Larson
- *
+ *
* Original from fmj project, changed only output format sizes.
* The sizes are those supported in h263 and h264.
* @author Damian Minkov
@@ -79,14 +78,14 @@ public class ImageScaler
// // TODO: we have to specify the RGB, etc. in the output format.
// return result;
}
-
+
@Override
public Format setInputFormat(Format format)
{
final VideoFormat videoFormat = (VideoFormat) format;
if (videoFormat.getSize() == null)
return null; // must set a size.
-
+
// TODO: check VideoFormat and compatibility
bufferToImage = new BufferToImage(videoFormat);
@@ -123,7 +122,7 @@ public class ImageScaler
}
@Override
- public int process(Buffer input, Buffer output)
+ public int process(Buffer input, Buffer output)
{
if (!checkInputBuffer(input))
{
@@ -135,9 +134,9 @@ public class ImageScaler
propagateEOM(output); // TODO: what about data? can there be any?
return BUFFER_PROCESSED_OK;
}
-
+
// sometimes format sizes are the same but some other field is different
- // and jmf use the scaler (in my case length field was not sent in
+ // and jmf use the scaler (in my case length field was not sent in
// one of the formats) the check for sizes is made in method
// setInputFormat
if(passthrough)
@@ -147,17 +146,17 @@ public class ImageScaler
output.setOffset(input.getOffset());
return BUFFER_PROCESSED_OK;
}
-
+
final BufferedImage image = (BufferedImage) bufferToImage.createImage(input);
/*
final Dimension inputSize = ((VideoFormat) inputFormat).getSize();
final Dimension outputSize = ((VideoFormat) outputFormat).getSize();
final double scaleX = ((double) outputSize.width) / ((double) inputSize.width);
final double scaleY = ((double) outputSize.height) / ((double) inputSize.height);
-
+
final BufferedImage scaled = scale(image, scaleX, scaleY); // TODO: is the size exact? what about rounding errors?
*/
-
+
final Dimension outputSize = ((VideoFormat) outputFormat).getSize();
/* rescale by preserving ratio */
final BufferedImage scaled = scalePreserveRatio(image, outputSize.width, outputSize.height); // TODO: is the size exact? what about rounding errors?
@@ -168,16 +167,8 @@ public class ImageScaler
output.setOffset(b.getOffset());
output.setFormat(b.getFormat());
// TODO: what about format?
-
- return BUFFER_PROCESSED_OK;
- }
- private static BufferedImage scale(BufferedImage bi, double scaleX, double scaleY)
- {
- AffineTransform tx = new AffineTransform();
- tx.scale(scaleX, scaleY);
- AffineTransformOp op = new AffineTransformOp(tx, AffineTransformOp.TYPE_BICUBIC);
- return op.filter(bi, null);
+ return BUFFER_PROCESSED_OK;
}
/**
@@ -220,7 +211,7 @@ public class ImageScaler
/* rescale width */
newWidth = ((src.getWidth() * height) / src.getHeight());
startWidth = (width - newWidth) / 2;
-
+
startHeight = 0;
width = newWidth;
}
diff --git a/src/net/java/sip/communicator/impl/neomedia/portaudio/PortAudioStreamCallback.java b/src/net/java/sip/communicator/impl/neomedia/portaudio/PortAudioStreamCallback.java
index 68dd2d5..4dfccee 100644
--- a/src/net/java/sip/communicator/impl/neomedia/portaudio/PortAudioStreamCallback.java
+++ b/src/net/java/sip/communicator/impl/neomedia/portaudio/PortAudioStreamCallback.java
@@ -13,13 +13,32 @@ import java.nio.*;
*/
public interface PortAudioStreamCallback
{
+ /**
+ * "Abort" resut code.
+ */
public static final int RESULT_ABORT = 2;
+ /**
+ * "Complete" resut code.
+ */
public static final int RESULT_COMPLETE = 1;
+ /**
+ * "Continue" resut code.
+ */
public static final int RESULT_CONTINUE = 0;
+ /**
+ * Callback.
+ *
+ * @param input input <tt>ByteBuffer</tt>
+ * @param output output <tt>ByteBuffer</tt>
+ * @return
+ */
public int callback(ByteBuffer input, ByteBuffer output);
+ /**
+ * Finished callback.
+ */
public void finishedCallback();
}
diff --git a/src/net/java/sip/communicator/impl/neomedia/protocol/RewritablePushBufferDataSource.java b/src/net/java/sip/communicator/impl/neomedia/protocol/RewritablePushBufferDataSource.java
index 57fc4ed..a78d31d 100644
--- a/src/net/java/sip/communicator/impl/neomedia/protocol/RewritablePushBufferDataSource.java
+++ b/src/net/java/sip/communicator/impl/neomedia/protocol/RewritablePushBufferDataSource.java
@@ -48,7 +48,7 @@ public class RewritablePushBufferDataSource
/**
* Initializes a new <tt>RewritablePushBufferDataSource</tt> instance which
* is to provide mute support for a specific <tt>PushBufferDataSource</tt>.
- *
+ *
* @param dataSource the <tt>PushBufferDataSource</tt> the new instance is
* to provide mute support for
*/
@@ -87,7 +87,7 @@ public class RewritablePushBufferDataSource
/**
* Determines whether this <tt>DataSource</tt> is mute.
- *
+ *
* @return <tt>true</tt> if this <tt>DataSource</tt> is mute; otherwise,
* <tt>false</tt>
*/
@@ -126,7 +126,7 @@ public class RewritablePushBufferDataSource
/**
* Sets the mute state of this <tt>DataSource</tt>.
- *
+ *
* @param mute <tt>true</tt> to mute this <tt>DataSource</tt>; otherwise,
* <tt>false</tt>
*/
@@ -174,8 +174,6 @@ public class RewritablePushBufferDataSource
if (data != null && (buffer.getFormat() instanceof AudioFormat))
{
Class<?> dataClass = data.getClass();
- double audioSample;
- double amplitudeCoefficient;
int fromIndex = buffer.getOffset();
AudioFormat audioFormat = (AudioFormat) buffer.getFormat();
@@ -186,14 +184,14 @@ public class RewritablePushBufferDataSource
int[] sampleData = tone.getAudioSamples(
samplingFrequency,
sampleSizeInBits);
- IntBuffer sampleDataIntBuffer = IntBuffer.wrap(sampleData);
+ IntBuffer.wrap(sampleData);
int toIndex = fromIndex +
sampleData.length * (sampleSizeInBits / 8);
ByteBuffer newData = ByteBuffer.allocate(toIndex);
// Prepares newData to be endian compliant with original buffer
- // data.
+ // data.
if(audioFormat.getEndian() == AudioFormat.BIG_ENDIAN)
{
newData.order(ByteOrder.BIG_ENDIAN);
@@ -282,7 +280,7 @@ public class RewritablePushBufferDataSource
/**
* Initializes a new <tt>MutePushBufferStream</tt> instance which is to
* provide mute support to a specific <tt>PushBufferStream</tt>.
- *
+ *
* @param stream the <tt>PushBufferStream</tt> the new instance is to
* provide mute support to
*/
diff --git a/src/net/java/sip/communicator/impl/neomedia/transform/dtmf/DtmfTransformEngine.java b/src/net/java/sip/communicator/impl/neomedia/transform/dtmf/DtmfTransformEngine.java
index 5835acb..108c38f 100644
--- a/src/net/java/sip/communicator/impl/neomedia/transform/dtmf/DtmfTransformEngine.java
+++ b/src/net/java/sip/communicator/impl/neomedia/transform/dtmf/DtmfTransformEngine.java
@@ -275,7 +275,7 @@ public class DtmfTransformEngine
pktEnd = true;
remainingsEndPackets = 2;
- toneTransmissionState = ToneTransmissionState.END_SEQUENCE_INITIATED;
+ toneTransmissionState = ToneTransmissionState.END_SEQUENCE_INITIATED;
}
else if(toneTransmissionState == ToneTransmissionState.END_SEQUENCE_INITIATED)
{
@@ -320,7 +320,7 @@ public class DtmfTransformEngine
* <tt>startSendingDTMF()</tt> method. Has no effect if no tone is currently
* being sent.
*
- * @see AudioMediaStream#stopSendingDTMF()
+ * @see AudioMediaStream#stopSendingDTMF(DTMFMethod dtmfMethod)
*/
public void stopSendingDTMF()
{
diff --git a/src/net/java/sip/communicator/impl/neomedia/transform/sdes/SDesControlImpl.java b/src/net/java/sip/communicator/impl/neomedia/transform/sdes/SDesControlImpl.java
index 666bbc0..740e479 100644
--- a/src/net/java/sip/communicator/impl/neomedia/transform/sdes/SDesControlImpl.java
+++ b/src/net/java/sip/communicator/impl/neomedia/transform/sdes/SDesControlImpl.java
@@ -21,25 +21,40 @@ import net.java.sip.communicator.service.neomedia.event.*;
/**
* Default implementation of {@link SDesControl} that supports the crypto suites
* of the original RFC4568 and the KDR parameter, but nothing else.
- *
+ *
* @author Ingo Bauersachs
*/
public class SDesControlImpl
implements SDesControl
{
+ /**
+ * List of enabled crypto suites.
+ */
private List<String> enabledCryptoSuites = new ArrayList<String>(3)
- {{
+ {
+ private static final long serialVersionUID = 0L;
+
+ {
add(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_80);
add(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_32);
add(SrtpCryptoSuite.F8_128_HMAC_SHA1_80);
- }};
+ }
+ };
+
+ /**
+ * List of supported crypto suites.
+ */
private final List<String> supportedCryptoSuites = new ArrayList<String>(3)
- {{
+ {
+ private static final long serialVersionUID = 0L;
+
+ {
add(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_80);
add(SrtpCryptoSuite.AES_CM_128_HMAC_SHA1_32);
add(SrtpCryptoSuite.F8_128_HMAC_SHA1_80);
- }};
+ }
+ };
private SrtpSDesFactory sdesFactory;
private SrtpCryptoAttribute[] attributes;
@@ -48,11 +63,16 @@ public class SDesControlImpl
private SrtpCryptoAttribute selectedOutAttribute;
private SrtpListener srtpListener;
+ /**
+ * SDESControl
+ */
public SDesControlImpl()
{
sdesFactory = new SrtpSDesFactory();
Random r = new Random()
{
+ private static final long serialVersionUID = 0L;
+
@Override
public void nextBytes(byte[] bytes)
{
@@ -191,7 +211,7 @@ public class SDesControlImpl
/**
* Returns true, SDES always requires the secure transport of its keys.
- *
+ *
* @return true
*/
public boolean requiresSecureSignalingTransport()
diff --git a/src/net/java/sip/communicator/impl/neomedia/transform/zrtp/ZRTPTransformEngine.java b/src/net/java/sip/communicator/impl/neomedia/transform/zrtp/ZRTPTransformEngine.java
index b8405c9..35f4924 100644
--- a/src/net/java/sip/communicator/impl/neomedia/transform/zrtp/ZRTPTransformEngine.java
+++ b/src/net/java/sip/communicator/impl/neomedia/transform/zrtp/ZRTPTransformEngine.java
@@ -994,7 +994,8 @@ public class ZRTPTransformEngine
/**
*
* @param info
- * @see gnu.java.zrtp.ZrtpCallback#zrtpInformEnrollment(java.lang.String)
+ * @see gnu.java.zrtp.ZrtpCallback#zrtpInformEnrollment(
+ * gnu.java.zrtp.ZrtpCodes.InfoEnrollment)
*/
public void zrtpInformEnrollment(ZrtpCodes.InfoEnrollment info)
{
@@ -1186,7 +1187,7 @@ public class ZRTPTransformEngine
/**
* Get the commited SAS rendering algorithm for this ZRTP session.
- *
+ *
* @return the commited SAS rendering algorithm
*/
public ZrtpConstants.SupportedSASTypes getSasType() {
@@ -1198,8 +1199,8 @@ public class ZRTPTransformEngine
/**
* Get the computed SAS hash for this ZRTP session.
- *
- * @return a refernce to the byte array that contains the full
+ *
+ * @return a refernce to the byte array that contains the full
* SAS hash.
*/
public byte[] getSasHash() {
@@ -1211,15 +1212,19 @@ public class ZRTPTransformEngine
/**
* Send the SAS relay packet.
- *
+ *
* The method creates and sends a SAS relay packet according to the ZRTP
* specifications. Usually only a MitM capable user agent (PBX) uses this
* function.
- *
+ *
* @param sh the full SAS hash value
* @param render the SAS rendering algorithm
+ * @return true if the SASReplay packet has been correctly sent, false
+ * otherwise
*/
- public boolean sendSASRelayPacket(byte[] sh, ZrtpConstants.SupportedSASTypes render) {
+ public boolean sendSASRelayPacket(byte[] sh,
+ ZrtpConstants.SupportedSASTypes render)
+ {
if (zrtpEngine != null)
return zrtpEngine.sendSASRelayPacket(sh, render);
else
@@ -1227,11 +1232,11 @@ public class ZRTPTransformEngine
}
/**
* Check the state of the MitM mode flag.
- *
+ *
* If true then this ZRTP session acts as MitM, usually enabled by a PBX
* based client (user agent)
- *
- * @return state of mitmMode
+ *
+ * @return state of mitmMode
*/
public boolean isMitmMode() {
return mitmMode;
@@ -1239,10 +1244,10 @@ public class ZRTPTransformEngine
/**
* Set the state of the MitM mode flag.
- *
- * If MitM mode is set to true this ZRTP session acts as MitM, usually
+ *
+ * If MitM mode is set to true this ZRTP session acts as MitM, usually
* enabled by a PBX based client (user agent).
- *
+ *
* @param mitmMode defines the new state of the mitmMode flag
*/
public void setMitmMode(boolean mitmMode) {
@@ -1251,10 +1256,10 @@ public class ZRTPTransformEngine
/**
* Check the state of the enrollment mode.
- *
+ *
* If true then we will set the enrollment flag (E) in the confirm
- * packets and performs the enrollment actions. A MitM (PBX) enrollment service sets this flagstarted this ZRTP
- * session. Can be set to true only if mitmMode is also true.
+ * packets and performs the enrollment actions. A MitM (PBX) enrollment service sets this flagstarted this ZRTP
+ * session. Can be set to true only if mitmMode is also true.
* @return status of the enrollmentMode flag.
*/
public boolean isEnrollmentMode() {
@@ -1266,13 +1271,13 @@ public class ZRTPTransformEngine
/**
* Set the state of the enrollment mode.
- *
+ *
* If true then we will set the enrollment flag (E) in the confirm
- * packets and perform the enrollment actions. A MitM (PBX) enrollment
- * service must sets this mode to true.
- *
- * Can be set to true only if mitmMode is also true.
- *
+ * packets and perform the enrollment actions. A MitM (PBX) enrollment
+ * service must sets this mode to true.
+ *
+ * Can be set to true only if mitmMode is also true.
+ *
* @param enrollmentMode defines the new state of the enrollmentMode flag
*/
public void setEnrollmentMode(boolean enrollmentMode) {
diff --git a/src/net/java/sip/communicator/impl/notification/PopupMessageNotificationHandlerImpl.java b/src/net/java/sip/communicator/impl/notification/PopupMessageNotificationHandlerImpl.java
index faff67e..6da5e97 100644
--- a/src/net/java/sip/communicator/impl/notification/PopupMessageNotificationHandlerImpl.java
+++ b/src/net/java/sip/communicator/impl/notification/PopupMessageNotificationHandlerImpl.java
@@ -10,12 +10,9 @@ import net.java.sip.communicator.service.notification.*;
import net.java.sip.communicator.service.systray.*;
import net.java.sip.communicator.util.*;
-import javax.swing.*;
-
-
/**
* An implementation of the <tt>PopupMessageNotificationHandler</tt> interface.
- *
+ *
* @author Yana Stamcheva
*/
public class PopupMessageNotificationHandlerImpl
@@ -37,7 +34,7 @@ public class PopupMessageNotificationHandlerImpl
/**
* Shows the given <tt>PopupMessage</tt>
- *
+ *
* @param action the action to act upon
* @param title the title of the given message
* @param message the message to use if and where appropriate (e.g. with
diff --git a/src/net/java/sip/communicator/impl/protocol/jabber/InfoRetreiver.java b/src/net/java/sip/communicator/impl/protocol/jabber/InfoRetreiver.java
index 175020b..1bd17ea 100644
--- a/src/net/java/sip/communicator/impl/protocol/jabber/InfoRetreiver.java
+++ b/src/net/java/sip/communicator/impl/protocol/jabber/InfoRetreiver.java
@@ -53,7 +53,7 @@ public class InfoRetreiver
{
this.jabberProvider = jabberProvider;
this.ownerUin = ownerUin;
-
+
vcardTimeoutReply = JabberActivator.getConfigurationService().getLong(
ProtocolProviderServiceJabberImpl.VCARD_REPLY_TIMEOUT_PROPERTY,
-1);
@@ -329,6 +329,12 @@ public class InfoRetreiver
/**
* Load VCard for the given user.
* Using the specified timeout.
+ *
+ * @param vcard VCard
+ * @param connection XMPP connection
+ * @param user the user
+ * @param timeout timeout in second
+ * @throws XMPPException if something went wrong during VCard loading
*/
public void load(VCard vcard,
Connection connection,
diff --git a/src/net/java/sip/communicator/impl/protocol/msn/AdHocChatRoomMsnImpl.java b/src/net/java/sip/communicator/impl/protocol/msn/AdHocChatRoomMsnImpl.java
index 3ca7511..15b54cd 100644
--- a/src/net/java/sip/communicator/impl/protocol/msn/AdHocChatRoomMsnImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/msn/AdHocChatRoomMsnImpl.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.msn;
@@ -13,7 +13,7 @@ import net.java.sip.communicator.util.*;
import net.sf.jml.*;
/**
- * Implements ad-hoc chat rooms for MSN.
+ * Implements ad-hoc chat rooms for MSN.
*
* @author Rupert Burchardi
* @author Valentin Martinet
@@ -42,18 +42,18 @@ public class AdHocChatRoomMsnImpl
private MsnSwitchboard switchboard = null;
/**
- * Listeners that will be notified of changes in participants status in the
+ * Listeners that will be notified of changes in participants status in the
* ad-hoc room, such as participant joined, left, etc.
*/
- private Vector<AdHocChatRoomParticipantPresenceListener>
- participantsPresenceListeners =
+ private Vector<AdHocChatRoomParticipantPresenceListener>
+ participantsPresenceListeners =
new Vector<AdHocChatRoomParticipantPresenceListener>();
/**
* Listeners that will be notified every time a new message is received on
* this ad-hoc chat room.
*/
- private Vector<AdHocChatRoomMessageListener> messageListeners
+ private Vector<AdHocChatRoomMessageListener> messageListeners
= new Vector<AdHocChatRoomMessageListener>();
/**
@@ -70,7 +70,7 @@ public class AdHocChatRoomMsnImpl
/**
* The list of participants of this ad-hoc chat room.
*/
- private final Hashtable<String, Contact> participants =
+ private final Hashtable<String, Contact> participants =
new Hashtable<String, Contact>();
/**
@@ -84,19 +84,19 @@ public class AdHocChatRoomMsnImpl
private final OperationSetPersistentPresenceMsnImpl presenceOpSet;
/**
- * Creates a new ad-hoc chat room for MSN named <tt>name</tt>, using the
+ * Creates a new ad-hoc chat room for MSN named <tt>name</tt>, using the
* protocol provider <tt>provider</tt>.
- *
+ *
* @param name
* @param provider
*/
public AdHocChatRoomMsnImpl(String name,
- ProtocolProviderServiceMsnImpl provider)
+ ProtocolProviderServiceMsnImpl provider)
{
this.name = name;
this.provider = provider;
- this.opSetAdHocMuc =
- (OperationSetAdHocMultiUserChatMsnImpl)
+ this.opSetAdHocMuc =
+ (OperationSetAdHocMultiUserChatMsnImpl)
this.provider.getOperationSet(OperationSetAdHocMultiUserChat.class);
this.presenceOpSet
@@ -106,22 +106,22 @@ public class AdHocChatRoomMsnImpl
}
/**
- * Creates a new ad-hoc chat room for MSN named <tt>name</tt>, using the
+ * Creates a new ad-hoc chat room for MSN named <tt>name</tt>, using the
* protocol provider <tt>provider</tt> and the msn switchboard
* <tt>switchboard</tt>.
- *
+ *
* @param name
* @param provider
* @param switchboard
*/
public AdHocChatRoomMsnImpl(String name,
ProtocolProviderServiceMsnImpl provider,
- MsnSwitchboard switchboard)
+ MsnSwitchboard switchboard)
{
this.name = name;
this.provider = provider;
this.opSetAdHocMuc
- = (OperationSetAdHocMultiUserChatMsnImpl)
+ = (OperationSetAdHocMultiUserChatMsnImpl)
this.provider.getOperationSet(OperationSetAdHocMultiUserChat.class);
this.presenceOpSet
@@ -129,7 +129,7 @@ public class AdHocChatRoomMsnImpl
this.provider.getOperationSet(
OperationSetPersistentPresence.class);
- this.switchboard = switchboard;
+ this.switchboard = switchboard;
this.updateParticipantsList(switchboard);
}
@@ -137,7 +137,7 @@ public class AdHocChatRoomMsnImpl
/**
* Adds a listener that will be notified of changes in our status in the
* room.
- *
+ *
* @param listener a participant status listener.
*/
public void addParticipantPresenceListener(
@@ -153,7 +153,7 @@ public class AdHocChatRoomMsnImpl
/**
* Registers <tt>listener</tt> so that it would receive events every time a
* new message is received on this chat room.
- *
+ *
* @param listener a <tt>MessageListener</tt> that would be notified every
* time a new message is received on this chat room.
*/
@@ -169,7 +169,7 @@ public class AdHocChatRoomMsnImpl
/**
* Removes <tt>listener</tt> so that it won't receive any further message
* events from this room.
- *
+ *
* @param listener the <tt>MessageListener</tt> to remove from this room
*/
public void removeMessageListener(ChatRoomMessageListener listener)
@@ -182,9 +182,9 @@ public class AdHocChatRoomMsnImpl
}
/**
- * Finds the participant of this ad-hoc chat room corresponding to the
+ * Finds the participant of this ad-hoc chat room corresponding to the
* given address.
- *
+ *
* @param address the address to search for.
* @return the participant of this chat room corresponding to the given
* nick name.
@@ -208,13 +208,13 @@ public class AdHocChatRoomMsnImpl
}
/**
- * Creates a <tt>Message</tt> for this ad-hoc chat room containing
+ * Creates a <tt>Message</tt> for this ad-hoc chat room containing
* <tt>text</tt>.
- *
+ *
* @param text
* @return Message the newly created <tt>Message</tt>
*/
- public Message createMessage(String text)
+ public Message createMessage(String text)
{
Message msg =
new MessageMsnImpl(text,
@@ -226,20 +226,20 @@ public class AdHocChatRoomMsnImpl
/**
* Returns the name of this ad-hoc chatroom
- *
+ *
* @return String
*/
- public String getName()
+ public String getName()
{
return this.name;
}
/**
* Returns the parent provider
- *
+ *
* @return ProtocolProviderService
*/
- public ProtocolProviderService getParentProvider()
+ public ProtocolProviderService getParentProvider()
{
return this.provider;
}
@@ -247,10 +247,10 @@ public class AdHocChatRoomMsnImpl
/**
* Returns a list containing all the <tt>Contact</tt>s who participate in
* this ad-hoc chat room.
- *
+ *
* @return List<Contact>
*/
- public List<Contact> getParticipants()
+ public List<Contact> getParticipants()
{
return new LinkedList<Contact>(this.participants.values());
}
@@ -258,7 +258,7 @@ public class AdHocChatRoomMsnImpl
/**
* Returns the participant of this ad-hoc chat room which corresponds to
* the given id.
- *
+ *
* @param id ID of the participant
* @return Contact the corresponding Contact
*/
@@ -269,7 +269,8 @@ public class AdHocChatRoomMsnImpl
/**
* Adds a participant to the participants list.
- *
+ *
+ * @param id the ID
* @param participant The participant (<tt>Contact</tt>) to add.
*/
public void addAdHocChatRoomParticipant(String id, Contact participant)
@@ -283,28 +284,33 @@ public class AdHocChatRoomMsnImpl
/**
* Removes the participant of this ad-hoc chat room which corresponds to
* the given id.
- *
+ *
* @param id ID of the participant
*/
public void removeParticipant(String id)
{
Contact contact= this.participants.get(id);
this.participants.remove(id);
-
+
fireParticipantPresenceEvent(contact,
AdHocChatRoomParticipantPresenceChangeEvent.CONTACT_LEFT, null);
}
/**
- * Returns the number of <tt>Contact</tt>s who participate in this ad-hoc
+ * Returns the number of <tt>Contact</tt>s who participate in this ad-hoc
* chat room.
*/
- public int getParticipantsCount()
+ public int getParticipantsCount()
{
return this.participants.size();
}
- public String getSubject()
+ /**
+ * Returns the subject.
+ *
+ * @return null
+ */
+ public String getSubject()
{
return null;
}
@@ -312,7 +318,7 @@ public class AdHocChatRoomMsnImpl
/**
* Invites another user to this room. If we're not joined nothing will
* happen.
- *
+ *
* @param userAddress the address of the user (email address) to invite to
* the room.(one may also invite users not on their contact
* list).
@@ -362,7 +368,7 @@ public class AdHocChatRoomMsnImpl
switchboard = null;
}
- Iterator<Contact> participantsIter
+ Iterator<Contact> participantsIter
= participants.values().iterator();
while (participantsIter.hasNext())
@@ -378,20 +384,25 @@ public class AdHocChatRoomMsnImpl
participants.clear();
}
+ /**
+ * Returns if this chatroom is a system ones.
+ *
+ * @return false
+ */
public boolean isSystem()
{
return false;
}
/**
- * Sends the given message through the participants of this ad-hoc chat
+ * Sends the given message through the participants of this ad-hoc chat
* room.
- *
+ *
* @param message the message to delivered
- *
+ *
* @throws OperationFailedException if send fails
*/
- public void sendMessage(Message message) throws OperationFailedException
+ public void sendMessage(Message message) throws OperationFailedException
{
if (logger.isInfoEnabled())
logger.info("switchboard="+this.switchboard);
@@ -409,7 +420,7 @@ public class AdHocChatRoomMsnImpl
/**
* Sets the corresponding switchboard.
- *
+ *
* @param switchboard Corresponding switchboard.
*/
public void setSwitchboard(MsnSwitchboard switchboard)
@@ -419,9 +430,9 @@ public class AdHocChatRoomMsnImpl
/**
* Creates the corresponding AdHocChatRoomParticipantPresenceChangeEvent and
- * notifies all <tt>AdHocChatRoomParticipantPresenceListener</tt>s that a
+ * notifies all <tt>AdHocChatRoomParticipantPresenceListener</tt>s that a
* participant has joined or left this <tt>AdHocChatRoom</tt>.
- *
+ *
* @param participant the <tt>Contact</tt>
* @param eventID the identifier of the event
* @param eventReason the reason of the event
@@ -455,7 +466,7 @@ public class AdHocChatRoomMsnImpl
* <tt>AdHocChatRoomMessageDeliveredEvent</tt>,
* <tt>AdHocChatRoomMessageReceivedEvent</tt> or a
* <tt>AdHocChatRoomMessageDeliveryFailedEvent</tt> has been fired.
- *
+ *
* @param evt The specific event
*/
public void fireMessageEvent(EventObject evt)
@@ -495,9 +506,9 @@ public class AdHocChatRoomMsnImpl
}
/**
- * Fills the participants list with all participants inside the switchboard
+ * Fills the participants list with all participants inside the switchboard
* (ad-hoc chat room).
- *
+ *
* @param switchboard The corresponding switchboard
*/
public void updateParticipantsList(MsnSwitchboard switchboard)
@@ -508,7 +519,7 @@ public class AdHocChatRoomMsnImpl
{
if (!this.participants.containsKey(msnContact.getId()))
{
- // if the member is not inside the members list, create a
+ // if the member is not inside the members list, create a
// contact instance,
// add it to the list and fire a member presence event
ContactMsnImpl contact
@@ -543,7 +554,7 @@ public class AdHocChatRoomMsnImpl
/**
* Returns the identifier of this ad-hoc chat room.
- *
+ *
* @return a <tt>String</tt> containing the identifier of this ad-hoc room
*/
public String getIdentifier()
@@ -553,7 +564,7 @@ public class AdHocChatRoomMsnImpl
/**
* Removes the given participant presence listener.
- *
+ *
* @param listener the listener to remove
*/
public void removeParticipantPresenceListener(
@@ -568,7 +579,7 @@ public class AdHocChatRoomMsnImpl
/**
* Removes the given message listener.
- *
+ *
* @param listener the listener to remove
*/
public void removeMessageListener(AdHocChatRoomMessageListener listener)
diff --git a/src/net/java/sip/communicator/impl/protocol/msn/ContactMsnImpl.java b/src/net/java/sip/communicator/impl/protocol/msn/ContactMsnImpl.java
index d412b7f..a978436 100644
--- a/src/net/java/sip/communicator/impl/protocol/msn/ContactMsnImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/msn/ContactMsnImpl.java
@@ -302,7 +302,7 @@ public class ContactMsnImpl
/**
* Changes the current status message of this contact.
- *
+ *
* @param newStatusMessage the new message.
*/
public void setStatusMessage(String newStatusMessage)
diff --git a/src/net/java/sip/communicator/impl/protocol/msn/mail/utils/MimeUtility.java b/src/net/java/sip/communicator/impl/protocol/msn/mail/utils/MimeUtility.java
index 7859e54..493e3c2 100644
--- a/src/net/java/sip/communicator/impl/protocol/msn/mail/utils/MimeUtility.java
+++ b/src/net/java/sip/communicator/impl/protocol/msn/mail/utils/MimeUtility.java
@@ -1,19 +1,19 @@
/*
* MimeUtility.java
* Copyright (C) 2002, 2004, 2005 The Free Software Foundation
- *
+ *
* This file is part of GNU JavaMail, a library.
- *
+ *
* GNU JavaMail is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
- *
+ *
* GNU JavaMail is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
- *
+ *
* You should have received a copy of the GNU General Public License
* along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
@@ -48,10 +48,11 @@ public class MimeUtility
private MimeUtility()
{
}
-
+
/**
* Decodes headers that are defined as '*text' in RFC 822.
* @param etext the possibly encoded value
+ * @return decoded text
* @exception UnsupportedEncodingException if the charset conversion failed
*/
public static String decodeText(String etext)
@@ -66,7 +67,7 @@ public class MimeUtility
StringBuffer buffer = new StringBuffer();
StringBuffer extra = new StringBuffer();
boolean decoded = false;
- while (st.hasMoreTokens())
+ while (st.hasMoreTokens())
{
String token = st.nextToken();
char c = token.charAt(0);
@@ -104,6 +105,7 @@ public class MimeUtility
* Decodes the specified string using the RFC 2047 rules for parsing an
* "encoded-word".
* @param text the possibly encoded value
+ * @return decoded word
* @exception Exception if the string is not an encoded-word
* @exception UnsupportedEncodingException if the decoding failed
*/
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/OperationSetAvatarSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/OperationSetAvatarSipImpl.java
index 9f4831c..f437bd3 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/OperationSetAvatarSipImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/OperationSetAvatarSipImpl.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.impl.protocol.sip;
@@ -10,13 +10,19 @@ import net.java.sip.communicator.service.protocol.*;
/**
* A simple implementation of the <tt>OperationSetAvatar</tt> interface for the
* jabber protocol.
- *
+ *
* @author Damian Minkov
*/
public class OperationSetAvatarSipImpl extends
AbstractOperationSetAvatar<ProtocolProviderServiceSipImpl>
{
+ /**
+ * Constructs a new <tt>OperationSetAvatarSipImpl</tt>.
+ *
+ * @param parentProvider parent protocol provider service
+ * @param accountInfoOpSet account info operation set
+ */
public OperationSetAvatarSipImpl(
ProtocolProviderServiceSipImpl parentProvider,
OperationSetServerStoredAccountInfo accountInfoOpSet)
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/OperationSetBasicTelephonySipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/OperationSetBasicTelephonySipImpl.java
index cc909dc..50ad42d 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/OperationSetBasicTelephonySipImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/OperationSetBasicTelephonySipImpl.java
@@ -1070,7 +1070,7 @@ public class OperationSetBasicTelephonySipImpl
//this is a brand new call (not a transferred one)
CallSipImpl call = new CallSipImpl(this);
- MediaAwareCallPeer peer =
+ MediaAwareCallPeer<?,?,?> peer =
call.processInvite(sourceProvider, serverTransaction);
if(getProtocolProvider().getAccountID()
@@ -1081,7 +1081,7 @@ public class OperationSetBasicTelephonySipImpl
{
// if in paranoia mode and we don't find any encryption
// fail peer/call send error with warning explaining why
-
+
peer.setState(
CallPeerState.FAILED,
"Encryption required!",
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java b/src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java
index ad1b254..9660c38 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/ProtocolProviderServiceSipImpl.java
@@ -1949,7 +1949,7 @@ public class ProtocolProviderServiceSipImpl
* @param serverTransaction the transaction that we'd like to send an error
* response in.
* @param errorCode the code that the response should have.
- *
+ * @param header SIP header
* @throws OperationFailedException if we failed constructing or sending a
* SIP Message.
*/
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java b/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java
index d475918..305117d 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/SipApplicationData.java
@@ -24,7 +24,14 @@ import net.java.sip.communicator.util.*;
*/
public class SipApplicationData
{
+ /**
+ * Key service.
+ */
public static final String KEY_SERVICE = "service";
+
+ /**
+ * Key subscriptions.
+ */
public static final String KEY_SUBSCRIPTIONS = "subscriptions";
/**
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/SipStatusEnum.java b/src/net/java/sip/communicator/impl/protocol/sip/SipStatusEnum.java
index 303041c..f1375e4 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/SipStatusEnum.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/SipStatusEnum.java
@@ -13,8 +13,8 @@ import net.java.sip.communicator.service.protocol.*;
/**
* The <tt>SipStatusEnum</tt> gives access to presence states for the Sip
* protocol. All status icons corresponding to presence states are located with
- * the help of the <tt>imagePath</tt> parameter
- *
+ * the help of the <tt>imagePath</tt> parameter
+ *
* @author Emil Ivov
* @author Yana Stamcheva
*/
@@ -95,11 +95,16 @@ public class SipStatusEnum
public final List<PresenceStatus> supportedStatusSet
= new LinkedList<PresenceStatus>();
+ /**
+ * Constructor.
+ *
+ * @param iconPath path of the icon
+ */
public SipStatusEnum(String iconPath)
{
this.offlineStatus = new SipPresenceStatus(
0,
- OFFLINE,
+ OFFLINE,
loadIcon(iconPath + "/sip16x16-offline.png"));
this.busyStatus = new SipPresenceStatus(
@@ -137,7 +142,7 @@ public class SipStatusEnum
/**
* Returns the offline sip status.
- *
+ *
* @param statusName the name of the status.
* @return the offline sip status.
*/
@@ -152,7 +157,7 @@ public class SipStatusEnum
else if (statusName.equals(ON_THE_PHONE))
return onThePhoneStatus;
else if (statusName.equals(AWAY))
- return awayStatus;
+ return awayStatus;
else
return unknownStatus;
}
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/net/ProxyConnection.java b/src/net/java/sip/communicator/impl/protocol/sip/net/ProxyConnection.java
index 2deebdf..84d91f3 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/net/ProxyConnection.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/net/ProxyConnection.java
@@ -9,7 +9,7 @@ import static net.java.sip.communicator.service.protocol.ProtocolProviderFactory
/**
* Abstract class for the determining the address for the SIP proxy.
- *
+ *
* @author Ingo Bauersachs
*/
public abstract class ProxyConnection
@@ -69,7 +69,7 @@ public abstract class ProxyConnection
proxyStringBuffer.insert(0, '[');
proxyStringBuffer.append(']');
}
-
+
proxyStringBuffer.append(':');
proxyStringBuffer.append(socketAddress.getPort());
proxyStringBuffer.append('/');
@@ -81,7 +81,7 @@ public abstract class ProxyConnection
/**
* Compares an InetAddress against the active outbound proxy. The comparison
* is by reference, not equals.
- *
+ *
* @param addressToTest The addres to test.
* @return True when the InetAddress is the same as the outbound proxy.
*/
@@ -97,10 +97,11 @@ public abstract class ProxyConnection
/**
* Retrieves the next address to use from DNS. Duplicate results are
* suppressed.
- *
+ *
* @return True if a new address is available through {@link #getAddress()},
* false if the last address was reached. A new lookup from scratch
* can be started by calling {@link #reset()}.
+ * @throws DnssecException if there is a problem related to DNSSEC
*/
public final boolean getNextAddress() throws DnssecException
{
@@ -126,7 +127,7 @@ public abstract class ProxyConnection
/**
* Implementations must use this method to get the next address, but do not
* have to care about duplicate addresses.
- *
+ *
* @return True when a further address was available.
* @throws DnssecException when a DNSSEC validation failure occured.
*/
@@ -145,7 +146,7 @@ public abstract class ProxyConnection
/**
* Factory method to create a proxy connection based on the account settings
* of the protocol provider.
- *
+ *
* @param pps the protocol provider that needs a SIP server connection.
* @return An instance of a derived class.
*/
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java b/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java
index 9026743..4b200df 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/sdp/SdpUtils.java
@@ -104,6 +104,7 @@ public class SdpUtils
*
* @return an empty instance of a <tt>SessionDescription</tt> with
* preinitialized <tt>s</tt>, <tt>v</tt>, and <tt>t</tt> parameters.
+ * @throws OperationFailedException if the SDP creation failed
*/
public static SessionDescription createSessionDescription(
InetAddress localAddress)
@@ -127,6 +128,7 @@ public class SdpUtils
*
* @return an empty instance of a <tt>SessionDescription</tt> with
* preinitialized <tt>s</tt>, <tt>v</tt>, and <tt>t</tt> parameters.
+ * @throws OperationFailedException if the SDP creation failed
*/
public static SessionDescription createSessionDescription(
InetAddress localAddress,
@@ -213,6 +215,7 @@ public class SdpUtils
*
* @return a new <tt>SessionDescription</tt> that updates
* <tt>descToUpdate</tt>;
+ * @throws OperationFailedException if the SDP creation failed
*/
public static SessionDescription createSessionUpdateDescription(
SessionDescription descToUpdate,
@@ -1557,7 +1560,7 @@ public class SdpUtils
*
* @param description the <tt>MediaDescription</tt> whose media type we'd
* like to extract.
- *
+ * @param attributeName name of the attribute to check
* @return the media type (e.g. audio or video) for the specified media
* <tt>description</tt>.
*
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/xcap/XCapException.java b/src/net/java/sip/communicator/impl/protocol/sip/xcap/XCapException.java
index 9a9e242..a9209e4 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/xcap/XCapException.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/xcap/XCapException.java
@@ -15,6 +15,11 @@ package net.java.sip.communicator.impl.protocol.sip.xcap;
public class XCapException extends Exception
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates a new <code>XCapException</code> instance
* which does not give a human-readable explanation why the operation is
* not supported.
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/ParsingException.java b/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/ParsingException.java
index a5f44c8..ed1ee13 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/ParsingException.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/ParsingException.java
@@ -15,6 +15,11 @@ package net.java.sip.communicator.impl.protocol.sip.xcap.model;
public class ParsingException extends Exception
{
/**
+ * Serial versionUID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates a new <code>XCapException</code> instance
* which does not give a human-readable explanation why the operation is
* not supported.
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/XmlUtils.java b/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/XmlUtils.java
index 1785806..ad8408d 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/XmlUtils.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/XmlUtils.java
@@ -6,7 +6,6 @@
*/
package net.java.sip.communicator.impl.protocol.sip.xcap.model;
-import static net.java.sip.communicator.util.xml.XMLUtils.*;
import org.w3c.dom.*;
import java.util.*;
diff --git a/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/commonpolicy/CommonPolicyParser.java b/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/commonpolicy/CommonPolicyParser.java
index 7d77aa0..1cd10d5 100644
--- a/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/commonpolicy/CommonPolicyParser.java
+++ b/src/net/java/sip/communicator/impl/protocol/sip/xcap/model/commonpolicy/CommonPolicyParser.java
@@ -23,44 +23,104 @@ import java.util.*;
*/
public final class CommonPolicyParser
{
+ /**
+ * The namespace of the common-policy.
+ */
public static String NAMESPACE = "urn:ietf:params:xml:ns:common-policy";
+ /**
+ * The ruleset element name.
+ */
public static String RULESET_ELEMENT = "ruleset";
+ /**
+ * The rule element name.
+ */
public static String RULE_ELEMENT = "rule";
+ /**
+ * The rule id attribute element name.
+ */
public static String RULE_ID_ATTR = "id";
+ /**
+ * The conditions element name.
+ */
public static String CONDITIONS_ELEMENT = "conditions";
+ /**
+ * The actions element name.
+ */
public static String ACTIONS_ELEMENT = "actions";
+ /**
+ * The transformations element name.
+ */
public static String TRANSFORMATIONS_ELEMENT = "transformations";
+ /**
+ * The identify element name.
+ */
public static String IDENTITY_ELEMENT = "identity";
+ /**
+ * The sphere element name.
+ */
public static String SPHERE_ELEMENT = "sphere";
+ /**
+ * The sphere value element name.
+ */
public static String SPHERE_VALUE_ATTR = "value";
+ /**
+ * The validity element name.
+ */
public static String VALIDITY_ELEMENT = "validity";
+ /**
+ * The validity-from element name.
+ */
public static String VALIDITY_FROM_ELEMENT = "from";
+ /**
+ * The validity-until element name.
+ */
public static String VALIDITY_UNTIL_ELEMENT = "until";
+ /**
+ * The one element name.
+ */
public static String ONE_ELEMENT = "one";
+ /**
+ * The one-id element name.
+ */
public static String ONE_ID_ATTR = "id";
+ /**
+ * The many element name.
+ */
public static String MANY_ELEMENT = "many";
+ /**
+ * The many domain element name.
+ */
public static String MANY_DOMAIN_ATTR = "domain";
+ /**
+ * The except element name.
+ */
public static String EXCEPT_ELEMENT = "except";
+ /**
+ * The except id element name.
+ */
public static String EXCEPT_ID_ATTR = "id";
+ /**
+ * The except domain element name.
+ */
public static String EXCEPT_DOMAIN_ATTR = "domain";
private CommonPolicyParser()
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/ContactSSH.java b/src/net/java/sip/communicator/impl/protocol/ssh/ContactSSH.java
index b666160..c609d7f 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/ContactSSH.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/ContactSSH.java
@@ -31,15 +31,15 @@ interface ContactSSH
* conversation message sent by another contact.
*/
public static final int CONVERSATION_MESSAGE_RECEIVED = 1;
-
+
/**
* An event type indicting that the message being received is a system
* message being sent by the server or a system administrator.
*/
public static final int SYSTEM_MESSAGE_RECEIVED = 2;
-
+
//Following eight function declations to be moved to Contact
-
+
/**
* This method is only called when the contact is added to a new
* <tt>ContactGroupSSHImpl</tt> by the
@@ -49,7 +49,7 @@ interface ContactSSH
* parent of this <tt>ContactSSHImpl</tt>
*/
void setParentGroup (ContactGroupSSHImpl newParentGroup);
-
+
/**
* Sets <tt>sshPresenceStatus</tt> as the PresenceStatus that this
* contact is currently in.
@@ -57,7 +57,7 @@ interface ContactSSH
* currently valid for this contact.
*/
public void setPresenceStatus (PresenceStatus sshPresenceStatus);
-
+
/**
* Returns the persistent presence operation set that this contact belongs
* to.
@@ -67,9 +67,9 @@ interface ContactSSH
*/
public OperationSetPersistentPresence
getParentPresenceOperationSet ();
-
+
/**
- * Returns the BasicInstant Messaging operation set that this contact
+ * Returns the BasicInstant Messaging operation set that this contact
* belongs to.
*
* @return the <tt>OperationSetBasicInstantMessagingSSHImpl</tt> that
@@ -77,7 +77,7 @@ interface ContactSSH
*/
public OperationSetBasicInstantMessaging
getParentBasicInstantMessagingOperationSet ();
-
+
/**
* Returns the File Transfer operation set that this contact belongs
* to.
@@ -87,28 +87,28 @@ interface ContactSSH
*/
public OperationSetFileTransfer
getFileTransferOperationSet ();
-
+
/**
* Return the type of message received from remote server
*
* @return messageType
*/
public int getMessageType ();
-
+
/**
* Sets the type of message received from remote server
*
* @param messageType
*/
public void setMessageType (int messageType);
-
+
/**
* Stores persistent data of the contact.
*
* @param persistentData of the contact
*/
public void setPersistentData (String persistentData);
-
+
/**
* Makes the contact resolved or unresolved.
*
@@ -116,7 +116,7 @@ interface ContactSSH
* make it unresolved
*/
public void setResolved (boolean resolved);
-
+
/**
* Specifies whether or not this contact is being stored by the server.
* Non persistent contacts are common in the case of simple, non-persistent
@@ -131,7 +131,7 @@ interface ContactSSH
* otherwise.
*/
public void setPersistent (boolean isPersistent);
-
+
/**
* Returns true if a command has been sent whos reply was not received yet
* false otherwise
@@ -139,7 +139,7 @@ interface ContactSSH
* @return commandSent
*/
public boolean isCommandSent ();
-
+
/**
* Set the state of commandSent variable which determines whether a reply
* to a command sent is awaited
@@ -147,7 +147,7 @@ interface ContactSSH
* @param commandSent
*/
public void setCommandSent (boolean commandSent);
-
+
/**
* Initializes the reader and writers associated with shell of this contact
*
@@ -156,26 +156,26 @@ interface ContactSSH
*/
void initializeShellIO (InputStream shellInputStream,
OutputStream shellOutputStream);
-
+
/**
* Closes the readers and writer associated with shell of this contact
*/
void closeShellIO ();
-
+
/**
* Determines whether a connection to a remote server is already underway
*
* @return connectionInProgress
*/
public boolean isConnectionInProgress ();
-
+
/**
* Sets the status of connection attempt to remote server
*
* @param connectionInProgress
*/
public void setConnectionInProgress (boolean connectionInProgress);
-
+
// /**
// * Sets the PS1 prompt of the current shell of Contact
// * This method is synchronized
@@ -190,110 +190,111 @@ interface ContactSSH
// * @return sshPrompt
// */
// public String getShellPrompt();
-
-
+
+
/**
* Saves the details of contact in persistentData
*/
public void savePersistentDetails ();
-
+
/*
* Returns the SSHContactInfo associated with this contact
*
* @return sshConfigurationForm
*/
public SSHContactInfo getSSHConfigurationForm ();
-
+
/**
* Returns the JSch Stack identified associated with this contact
*
* @return jsch
*/
JSch getJSch ();
-
+
/**
* Starts the timer and its task to periodically update the status of
* remote machine
*/
void startTimerTask ();
-
+
/**
* Stops the timer and its task to stop updating the status of
* remote machine
*/
void stopTimerTask ();
-
+
/**
* Sets the JSch Stack identified associated with this contact
*
* @param jsch to be associated
*/
void setJSch (JSch jsch);
-
+
/**
* Returns the Username associated with this contact
*
* @return userName
*/
String getUserName ();
-
+
/**
* Returns the Hostname associated with this contact
*
* @return hostName
*/
String getHostName ();
-
+
/**
* Returns the Password associated with this contact
*
* @return password
*/
String getPassword ();
-
+
/**
* Sets the Password associated with this contact
*
* @param password
*/
void setPassword (String password);
-
+
/**
* Returns the SSH Session associated with this contact
*
* @return sshSession
*/
Session getSSHSession ();
-
+
/**
* Sets the SSH Session associated with this contact
*
* @param sshSession the newly created SSH Session to be associated
*/
void setSSHSession (Session sshSession);
-
+
/**
* Returns the SSH Shell Channel associated with this contact
*
* @return shellChannel
*/
Channel getShellChannel ();
-
+
/**
* Sets the SSH Shell channel associated with this contact
*
* @param shellChannel to be associated with SSH Session of this contact
*/
void setShellChannel (Channel shellChannel);
-
+
/**
* Sends a message a line to remote machine via the Shell Writer
*
* @param message to be sent
+ * @throws IOException if message failed to be sent
*/
public void sendLine (String message)
- throws IOException;
-
+ throws IOException;
+
// /**
// * Reads a line from the remote machine via the Shell Reader
// *
@@ -301,14 +302,14 @@ interface ContactSSH
// */
// public String getLine()
// throws IOException;
-
+
/**
* Returns the Input Stream associated with SSH Channel of this contact
*
* @return shellInputStream associated with SSH Channel of this contact
*/
public InputStream getShellInputStream ();
-
+
// /**
// * Sets the Input Stream associated with SSH Channel of this contact
// *
@@ -316,14 +317,14 @@ interface ContactSSH
// * contact
// */
// public void setShellInputStream(InputStream shellInputStream);
-
+
/**
* Returns the Output Stream associated with SSH Channel of this contact
*
* @return shellOutputStream associated with SSH Channel of this contact
*/
public OutputStream getShellOutputStream ();
-
+
// /**
// * Sets the Output Stream associated with SSH Channel of this contact
// *
@@ -345,14 +346,14 @@ interface ContactSSH
// * @param shellReader to be associated with SSH Channel of this contact
// */
// public void setShellReader(BufferedReader shellReader);
-
+
/**
* Returns the PrintWriter associated with SSH Channel of this contact
*
* @return shellWriter associated with SSH Channel of this contact
*/
public PrintWriter getShellWriter ();
-
+
// /**
// * Sets the PrintWriter associated with SSH Channel of this contact
// *
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/ContactTimerSSHImpl.java b/src/net/java/sip/communicator/impl/protocol/ssh/ContactTimerSSHImpl.java
index 33c5c90..4726d2b 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/ContactTimerSSHImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/ContactTimerSSHImpl.java
@@ -93,6 +93,8 @@ public class ContactTimerSSHImpl
}
/**
* Creates a new instance of ContactTimerSSHImpl
+ *
+ * @param sshContact the <tt>Contact</tt>
*/
public ContactTimerSSHImpl(ContactSSH sshContact)
{
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/OperationSetFileTransferSSHImpl.java b/src/net/java/sip/communicator/impl/protocol/ssh/OperationSetFileTransferSSHImpl.java
index 99db4ad..16872f5 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/OperationSetFileTransferSSHImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/OperationSetFileTransferSSHImpl.java
@@ -28,26 +28,30 @@ public class OperationSetFileTransferSSHImpl
{
private static final Logger logger
= Logger.getLogger(OperationSetFileTransferSSHImpl.class);
-
+
/**
* Currently registered message listeners.
*/
private Vector<FileTransferListener> fileTransferListeners
= new Vector<FileTransferListener>();
-
+
/**
* The protocol provider that created us.
*/
private ProtocolProviderServiceSSHImpl parentProvider = null;
-
-
- /** Creates a new instance of OperationSetFileTransferSSHImpl */
+
+
+ /**
+ * Creates a new instance of OperationSetFileTransferSSHImpl
+ *
+ * @param parentProvider the parent protocol provider service
+ */
public OperationSetFileTransferSSHImpl(
ProtocolProviderServiceSSHImpl parentProvider)
{
this.parentProvider = parentProvider;
}
-
+
/**
* Registers a FileTransferListener with this operation set so that it gets
* notifications of start, complete, failure of file transfers
@@ -74,7 +78,7 @@ public class OperationSetFileTransferSSHImpl
}
/**
- * Sends a file transfer request to the given <tt>toContact</tt>.
+ * Sends a file transfer request to the given <tt>toContact</tt>.
* @param toContact the contact that should receive the file
* @param file the file to send
*/
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java b/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java
index 35e21f1..ee303d3 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java
@@ -34,72 +34,72 @@ public class ProtocolProviderServiceSSHImpl
{
private static final Logger logger
= Logger.getLogger(ProtocolProviderServiceSSHImpl.class);
-
+
/**
* The name of this protocol.
*/
public static final String SSH_PROTOCOL_NAME = ProtocolNames.SSH;
-
+
// /**
// * The identifier for SSH Stack
// * Java Secure Channel JSch
// */
// JSch jsch = new JSch();
-
+
/**
- * The test command given after each command to determine the reply length
+ * The test command given after each command to determine the reply length
* of the command
*/
- //private final String testCommand =
+ //private final String testCommand =
// Resources.getString("testCommand");
-
+
/**
* A reference to the protocol provider of UIService
*/
private static ServiceReference ppUIServiceRef;
-
+
/**
* Connection timeout to a remote server in milliseconds
*/
private static int connectionTimeout = 30000;
-
+
/**
* A reference to UI Service
*/
private static UIService uiService;
-
+
/**
* The id of the account that this protocol provider represents.
*/
private AccountID accountID = null;
-
+
/**
* We use this to lock access to initialization.
*/
private final Object initializationLock = new Object();
-
+
private OperationSetBasicInstantMessagingSSHImpl basicInstantMessaging;
-
+
private OperationSetFileTransferSSHImpl fileTranfer;
-
+
/**
* Indicates whether or not the provider is initialized and ready for use.
*/
private boolean isInitialized = false;
-
+
/**
* The logo corresponding to the ssh protocol.
*/
private ProtocolIconSSHImpl sshIcon
= new ProtocolIconSSHImpl();
-
+
/**
* The registration state of SSH Provider is taken to be registered by
* default as it doesn't correspond to the state on remote server
*/
private RegistrationState currentRegistrationState
= RegistrationState.REGISTERED;
-
+
/**
* The default constructor for the SSH protocol provider.
*/
@@ -107,7 +107,7 @@ public class ProtocolProviderServiceSSHImpl
{
if (logger.isTraceEnabled())
logger.trace("Creating a ssh provider.");
-
+
try
{
// converting to milliseconds
@@ -119,7 +119,7 @@ public class ProtocolProviderServiceSSHImpl
logger.error("Connection Timeout set to 30 seconds");
}
}
-
+
/**
* Initializes the service implementation, and puts it in a sate where it
* could interoperate with other services. It is strongly recomended that
@@ -140,11 +140,11 @@ public class ProtocolProviderServiceSSHImpl
synchronized(initializationLock)
{
this.accountID = accountID;
-
+
//initialize the presence operationset
OperationSetPersistentPresenceSSHImpl persistentPresence =
new OperationSetPersistentPresenceSSHImpl(this);
-
+
addSupportedOperationSet(
OperationSetPersistentPresence.class,
persistentPresence);
@@ -154,25 +154,25 @@ public class ProtocolProviderServiceSSHImpl
addSupportedOperationSet(
OperationSetPresence.class,
persistentPresence);
-
+
//initialize the IM operation set
- basicInstantMessaging = new
+ basicInstantMessaging = new
OperationSetBasicInstantMessagingSSHImpl(
this);
addSupportedOperationSet(
OperationSetBasicInstantMessaging.class,
basicInstantMessaging);
-
+
//initialze the file transfer operation set
fileTranfer = new OperationSetFileTransferSSHImpl(this);
addSupportedOperationSet(
OperationSetFileTransfer.class,
fileTranfer);
-
+
isInitialized = true;
}
}
-
+
/**
* Determines whether a vaild session exists for the contact of remote
* machine.
@@ -188,12 +188,12 @@ public class ProtocolProviderServiceSSHImpl
if( sshSession != null)
if(sshSession.isConnected())
return true;
-
+
// remove reference to an unconnected SSH Session, if any
sshContact.setSSHSession(null);
return false;
}
-
+
/**
* Determines whether the contact is connected to shell of remote machine
* as a precheck for any further operation
@@ -206,22 +206,22 @@ public class ProtocolProviderServiceSSHImpl
public boolean isShellConnected(ContactSSH sshContact)
{
// a test command may also be run here
-
+
if(isSessionValid(sshContact))
{
return(sshContact.getShellChannel() != null);
}
-
+
/*
* Above should be return(sshContact.getShellChannel() != null
* && sshContact.getShellChannel().isConnected());
*
* but incorrect reply from stack for isConnected()
*/
-
+
return false;
}
-
+
/**
* Creates a shell channel to the remote machine
* a new jsch session is also created if the current one is invalid
@@ -242,35 +242,35 @@ public class ProtocolProviderServiceSSHImpl
OperationSetPersistentPresenceSSHImpl persistentPresence
= (OperationSetPersistentPresenceSSHImpl)sshContact
.getParentPresenceOperationSet();
-
+
persistentPresence.changeContactPresenceStatus(
sshContact,
SSHStatusEnum.CONNECTING);
-
+
try
{
if(!isSessionValid(sshContact))
createSSHSessionAndLogin(sshContact);
-
+
createShellChannel(sshContact);
-
+
//initializing the reader and writers of ssh contact
-
+
persistentPresence.changeContactPresenceStatus(
sshContact,
SSHStatusEnum.CONNECTED);
-
+
showWelcomeMessage(sshContact);
-
+
sshContact.setMessageType(ContactSSH
.CONVERSATION_MESSAGE_RECEIVED);
-
+
sshContact.setConnectionInProgress(false);
-
+
Thread.sleep(1500);
-
+
sshContact.setCommandSent(true);
-
+
basicInstantMessaging.sendInstantMessage(
sshContact,
firstMessage);
@@ -281,7 +281,7 @@ public class ProtocolProviderServiceSSHImpl
persistentPresence.changeContactPresenceStatus(
sshContact,
SSHStatusEnum.NOT_AVAILABLE);
-
+
ex.printStackTrace();
}
finally
@@ -290,38 +290,38 @@ public class ProtocolProviderServiceSSHImpl
}
}
}));
-
+
newConnection.start();
}
-
+
/**
* Creates a channel for shell type in the current session
* channel types = shell, sftp, exec(X forwarding),
* direct-tcpip(stream forwarding) etc
*
* @param sshContact ID of SSH Contact
- *
+ * @throws IOException if the shell channel cannot be created
*/
public void createShellChannel(ContactSSH sshContact)
- throws IOException
+ throws IOException
{
try
{
Channel shellChannel = sshContact.getSSHSession()
.openChannel("shell");
-
+
//initalizing the reader and writers of ssh contact
sshContact.initializeShellIO(shellChannel.getInputStream(),
shellChannel.getOutputStream());
-
+
((ChannelShell)shellChannel).setPtyType(
sshContact.getSSHConfigurationForm().getTerminalType());
-
+
//initializing the shell
shellChannel.connect(1000);
-
+
sshContact.setShellChannel(shellChannel);
-
+
sshContact.sendLine("export PS1=");
}
catch (JSchException ex)
@@ -331,11 +331,13 @@ public class ProtocolProviderServiceSSHImpl
" server");
}
}
-
+
/**
* Closes the Shell channel are associated IO Streams
*
* @param sshContact ID of SSH Contact
+ * @throws JSchException if something went wrong in JSch
+ * @throws IOException if I/O exception occurred
*/
public void closeShellChannel(ContactSSH sshContact) throws
JSchException,
@@ -345,7 +347,7 @@ public class ProtocolProviderServiceSSHImpl
sshContact.getShellChannel().disconnect();
sshContact.setShellChannel(null);
}
-
+
/**
* Creates a SSH Session with a remote machine and tries to login
* according to the details specified by Contact
@@ -353,7 +355,7 @@ public class ProtocolProviderServiceSSHImpl
*
* @param sshContact ID of SSH Contact
*
- * @throws JSchException if a JSch is unable to create a SSH Session with
+ * @throws JSchException if a JSch is unable to create a SSH Session with
* the remote machine
* @throws InterruptedException if the thread is interrupted before session
* connected or is timed out
@@ -367,10 +369,10 @@ public class ProtocolProviderServiceSSHImpl
if (logger.isInfoEnabled())
logger.info("Creating a new SSH Session to "
+ sshContact.getHostName());
-
+
// creating a new JSch Stack identifier for contact
JSch jsch = new JSch();
-
+
String knownHosts =
accountID.getAccountPropertyString("KNOWN_HOSTS_FILE");
@@ -379,14 +381,14 @@ public class ProtocolProviderServiceSSHImpl
String identitiyKey =
accountID.getAccountPropertyString("IDENTITY_FILE");
-
+
String userName = sshContact.getUserName();
-
+
// use the name of system user if the contact has not supplied SSH
// details
if(userName.equals(""))
userName = System.getProperty("user.name");
-
+
if(!identitiyKey.equals("Optional"))
jsch.addIdentity(identitiyKey);
@@ -395,22 +397,22 @@ public class ProtocolProviderServiceSSHImpl
userName,
sshContact.getHostName(),
sshContact.getSSHConfigurationForm().getPort());
-
+
/**
* Creating and associating User Info with the session
* User Info passes authentication from sshContact to SSH Stack
*/
SSHUserInfo sshUserInfo = new SSHUserInfo(sshContact);
-
+
session.setUserInfo(sshUserInfo);
-
+
/**
* initializing the session
*/
session.connect(connectionTimeout);
-
+
int count = 0;
-
+
// wait for session to get connected
while(!session.isConnected() && count<=30000)
{
@@ -420,7 +422,7 @@ public class ProtocolProviderServiceSSHImpl
logger.trace("SSH:" + sshContact.getHostName()
+ ": Sleep zzz .. " );
}
-
+
// if timeout have exceeded
if(count>30000)
{
@@ -429,20 +431,20 @@ public class ProtocolProviderServiceSSHImpl
null,
"SSH Connection attempt to "
+ sshContact.getHostName() + " timed out");
-
+
// error codes are not defined yet
throw new OperationFailedException("SSH Connection attempt to " +
sshContact.getHostName() + " timed out", 2);
}
-
+
sshContact.setJSch(jsch);
sshContact.setSSHSession(session);
-
+
if (logger.isInfoEnabled())
logger.info("A new SSH Session to " + sshContact.getHostName()
+ " Created");
}
-
+
/**
* Closes the SSH Session associated with the contact
*
@@ -453,14 +455,15 @@ public class ProtocolProviderServiceSSHImpl
sshContact.getSSHSession().disconnect();
sshContact.setSSHSession(null);
}
-
+
/**
* Presents the login welcome message to user
*
* @param sshContact ID of SSH Contact
+ * @throws IOException if I/O exception occurred
*/
public void showWelcomeMessage(ContactSSH sshContact)
- throws IOException
+ throws IOException
{
/* //sending the command
sshContact.sendLine(testCommand);
@@ -487,7 +490,7 @@ public class ProtocolProviderServiceSSHImpl
if (logger.isDebugEnabled())
logger.debug("SSH: Welcome message shown");
}
-
+
/**
* Returns a reference to UIServce for accessing UI related services
*
@@ -497,7 +500,7 @@ public class ProtocolProviderServiceSSHImpl
{
return uiService;
}
-
+
/**
* Returns the AccountID that uniquely identifies the account represented
* by this instance of the ProtocolProviderService.
@@ -508,7 +511,7 @@ public class ProtocolProviderServiceSSHImpl
{
return accountID;
}
-
+
/**
* Returns the short name of the protocol that the implementation of this
* provider is based upon (like SIP, Jabber, ICQ/AIM, or others for
@@ -533,7 +536,7 @@ public class ProtocolProviderServiceSSHImpl
{
return currentRegistrationState;
}
-
+
/**
* Starts the registration process.
*
@@ -549,22 +552,22 @@ public class ProtocolProviderServiceSSHImpl
{
RegistrationState oldState = currentRegistrationState;
currentRegistrationState = RegistrationState.REGISTERED;
-
+
//get a reference to UI Service via its Service Reference
ppUIServiceRef = SSHActivator.getBundleContext()
.getServiceReference(UIService.class.getName());
-
+
uiService = (UIService)SSHActivator.getBundleContext()
.getService(ppUIServiceRef);
-
+
fireRegistrationStateChanged(
oldState
, currentRegistrationState
, RegistrationStateChangeEvent.REASON_USER_REQUEST
, null);
-
+
}
-
+
/**
* Makes the service implementation close all open sockets and release
* any resources that it might have taken and prepare for
@@ -578,7 +581,7 @@ public class ProtocolProviderServiceSSHImpl
}
if (logger.isTraceEnabled())
logger.trace("Killing the SSH Protocol Provider.");
-
+
if(isRegistered())
{
try
@@ -595,10 +598,10 @@ public class ProtocolProviderServiceSSHImpl
, ex);
}
}
-
+
isInitialized = false;
}
-
+
/**
* Ends the registration of this protocol provider with the current
* registration service.
@@ -612,7 +615,7 @@ public class ProtocolProviderServiceSSHImpl
{
RegistrationState oldState = currentRegistrationState;
currentRegistrationState = RegistrationState.UNREGISTERED;
-
+
fireRegistrationStateChanged(
oldState
, currentRegistrationState
@@ -622,7 +625,7 @@ public class ProtocolProviderServiceSSHImpl
/*
* (non-Javadoc)
- *
+ *
* @see net.java.sip.communicator.service.protocol.ProtocolProviderService#
* isSignallingTransportSecure()
*/
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/Resources.java b/src/net/java/sip/communicator/impl/protocol/ssh/Resources.java
index 238c507..6928794 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/Resources.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/Resources.java
@@ -18,8 +18,11 @@ import net.java.sip.communicator.service.resources.*;
*/
public class Resources
{
+ /**
+ * The SSH logo imageID.
+ */
public static ImageID SSH_LOGO = new ImageID("protocolIconSsh");
-
+
/**
* Returns an string corresponding to the given key.
*
@@ -31,7 +34,7 @@ public class Resources
{
return SSHActivator.getResources().getI18NString(key);
}
-
+
/**
* Loads an image from a given image identifier.
* @param imageID The identifier of the image.
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/SSHActivator.java b/src/net/java/sip/communicator/impl/protocol/ssh/SSHActivator.java
index 509034e..c799077 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/SSHActivator.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/SSHActivator.java
@@ -29,26 +29,26 @@ public class SSHActivator
{
private static final Logger logger
= Logger.getLogger(SSHActivator.class);
-
+
/**
* A reference to the registration of our SSH protocol provider
* factory.
*/
private ServiceRegistration sshPpFactoryServReg = null;
-
+
/**
* A reference to the SSH protocol provider factory.
*/
private static ProtocolProviderFactorySSHImpl
sshProviderFactory = null;
-
+
/**
* The currently valid bundle context.
*/
private static BundleContext bundleContext = null;
-
+
private static ResourceManagementService resourcesService;
-
+
/**
* Called when this bundle is started. In here we'll export the
* ssh ProtocolProviderFactory implementation so that it could be
@@ -63,8 +63,8 @@ public class SSHActivator
public void start(BundleContext context)
throws Exception
{
- this.bundleContext = context;
-
+ bundleContext = context;
+
Hashtable<String, String> hashtable = new Hashtable<String, String>();
hashtable.put(ProtocolProviderFactory.PROTOCOL, "SSH");
@@ -75,11 +75,11 @@ public class SSHActivator
ProtocolProviderFactory.class.getName(),
sshProviderFactory,
hashtable);
-
+
if (logger.isInfoEnabled())
logger.info("SSH protocol implementation [STARTED].");
}
-
+
/**
* Returns a reference to the bundle context that we were started with.
* @return bundleContext a reference to the BundleContext instance
@@ -89,7 +89,7 @@ public class SSHActivator
{
return bundleContext;
}
-
+
/**
* Retrurns a reference to the protocol provider factory that we have
* registered.
@@ -101,8 +101,8 @@ public class SSHActivator
{
return sshProviderFactory;
}
-
-
+
+
/**
* Called when this bundle is stopped so the Framework can perform the
* bundle-specific activities necessary to stop the bundle.
@@ -116,12 +116,17 @@ public class SSHActivator
public void stop(BundleContext context)
throws Exception
{
- this.sshProviderFactory.stop();
+ sshProviderFactory.stop();
sshPpFactoryServReg.unregister();
if (logger.isInfoEnabled())
logger.info("SSH protocol implementation [STOPPED].");
}
-
+
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/impl/protocol/ssh/SSHContactInfo.java b/src/net/java/sip/communicator/impl/protocol/ssh/SSHContactInfo.java
index 9592ce2..1b5f31a 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/SSHContactInfo.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/SSHContactInfo.java
@@ -23,15 +23,21 @@ import net.java.sip.communicator.util.swing.*;
/**
* @author Shobhit Jindal
*/
-class SSHContactInfo extends SIPCommDialog {
+class SSHContactInfo extends SIPCommDialog
+{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private ContactSSH sshContact;
-
+
private JPanel mainPanel = new TransparentPanel();
private JPanel machinePanel = new TransparentPanel();
private JPanel detailNamesPanel = new TransparentPanel();
private JPanel detailFieldsPanel = new TransparentPanel();
private JPanel detailsPanel = new TransparentPanel();
-
+
private JCheckBox addDetailsCheckBox = new SIPCommCheckBox("Add Details");
private JButton doneButton = new JButton("Done");
@@ -42,41 +48,41 @@ class SSHContactInfo extends SIPCommDialog {
private JLabel password = new JLabel("Password: ");
private JTextField passwordField = new JPasswordField();
private JLabel port = new JLabel("Port: ");
-
+
private JFormattedTextField portField;
private JLabel secs = new JLabel("secs");
private JLabel statusUpdate = new JLabel("Update Interval: ");
private JLabel terminalType = new JLabel("Terminal Type: ");
private JTextField terminalTypeField = new JTextField("SIP Communicator");
private JSpinner updateTimer = new JSpinner();
-
+
private JPanel emptyPanel1 = new TransparentPanel();
-
+
private JPanel emptyPanel2 = new TransparentPanel();
-
+
private JPanel emptyPanel3 = new TransparentPanel();
-
+
private JPanel emptyPanel4 = new TransparentPanel();
-
+
private JPanel emptyPanel5 = new TransparentPanel();
-
+
private JPanel emptyPanel6 = new TransparentPanel();
-
+
private JPanel emptyPanel7 = new TransparentPanel();
-
+
private JPanel emptyPanel8 = new TransparentPanel();
-
+
private JPanel emptyPanel9 = new TransparentPanel();
-
+
private JPanel emptyPanel10 = new TransparentPanel();
-
+
private JPanel emptyPanel11 = new TransparentPanel();
-
+
// private ContactGroup contactGroup = null;
-
+
/**
* Creates a new instance of SSHContactInfo
- *
+ *
* @param sshContact the concerned contact
*/
public SSHContactInfo(ContactSSH sshContact) {
@@ -84,27 +90,27 @@ class SSHContactInfo extends SIPCommDialog {
this.sshContact = sshContact;
initForm();
-
+
this.getContentPane().add(mainPanel);
-
+
this.setSize(370, 325);
-
+
this.setResizable(false);
-
+
this.setTitle("SSH: Account Details of " + sshContact.getDisplayName());
-
+
Toolkit toolkit = Toolkit.getDefaultToolkit();
Dimension screenSize = toolkit.getScreenSize();
-
+
int x = (screenSize.width - this.getWidth()) / 2;
int y = (screenSize.height - this.getHeight()) / 2;
-
+
this.setLocation(x,y);
-
+
// ProtocolProviderServiceSSHImpl.getUIService().getConfigurationWindow().
// addConfigurationForm(this);
}
-
+
/**
* initialize the form.
*/
@@ -119,13 +125,13 @@ class SSHContactInfo extends SIPCommDialog {
maskFormatter.setAllowsInvalid(false);
portField = new JFormattedTextField(maskFormatter);
portField.setValue(22);
-
+
userNameField.setEnabled(false);
passwordField.setEditable(false);
portField.setEnabled(false);
terminalTypeField.setEnabled(false);
updateTimer.setEnabled(false);
-
+
mainPanel.setLayout(new BoxLayout(mainPanel, BoxLayout.Y_AXIS));
machinePanel.setLayout(new BoxLayout(machinePanel, BoxLayout.X_AXIS));
detailNamesPanel.setLayout(new BoxLayout(detailNamesPanel,
@@ -133,10 +139,10 @@ class SSHContactInfo extends SIPCommDialog {
detailFieldsPanel.setLayout(new BoxLayout(detailFieldsPanel,
BoxLayout.Y_AXIS));
detailsPanel.setLayout(new BoxLayout(detailsPanel, BoxLayout.X_AXIS));
-
+
machinePanel.add(machineID);
machinePanel.add(machineIDField);
-
+
detailNamesPanel.add(userName);
detailNamesPanel.add(emptyPanel1);
detailNamesPanel.add(password);
@@ -146,7 +152,7 @@ class SSHContactInfo extends SIPCommDialog {
detailNamesPanel.add(statusUpdate);
detailNamesPanel.add(emptyPanel4);
detailNamesPanel.add(terminalType);
-
+
detailFieldsPanel.add(userNameField);
detailFieldsPanel.add(emptyPanel5);
detailFieldsPanel.add(passwordField);
@@ -156,12 +162,12 @@ class SSHContactInfo extends SIPCommDialog {
detailFieldsPanel.add(updateTimer);
detailFieldsPanel.add(emptyPanel8);
detailFieldsPanel.add(terminalTypeField);
-
+
detailsPanel.add(detailNamesPanel);
detailsPanel.add(detailFieldsPanel);
-
+
detailsPanel.setBorder(BorderFactory.createTitledBorder("Details"));
-
+
mainPanel.add(emptyPanel9);
mainPanel.add(machinePanel);
mainPanel.add(addDetailsCheckBox);
@@ -169,7 +175,7 @@ class SSHContactInfo extends SIPCommDialog {
mainPanel.add(emptyPanel10);
mainPanel.add(doneButton);
mainPanel.add(emptyPanel11);
-
+
addDetailsCheckBox.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
addDetailsCheckBox.setEnabled(false);
@@ -178,18 +184,18 @@ class SSHContactInfo extends SIPCommDialog {
portField.setEnabled(true);
terminalTypeField.setEnabled(true);
updateTimer.setEnabled(true);
-
+
userNameField.grabFocus();
}
});
-
+
doneButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent event) {
if(machineIDField.getText().equals("")) {
machineIDField.setText("Field needed");
return;
}
-
+
sshContact.savePersistentDetails();
//add contact to contact list
@@ -200,10 +206,10 @@ class SSHContactInfo extends SIPCommDialog {
sshContact);
setVisible(false);
- }
+ }
});
}
-
+
/**
* Return the ssh icon
*
@@ -223,7 +229,7 @@ class SSHContactInfo extends SIPCommDialog {
// {
// return this.contactGroup;
// }
-
+
/**
* Sets the UserName of the dialog
*
@@ -232,7 +238,7 @@ class SSHContactInfo extends SIPCommDialog {
public void setUserNameField(String userName) {
this.userNameField.setText(userName);
}
-
+
/**
* Sets the Password of the dialog
*
@@ -241,7 +247,7 @@ class SSHContactInfo extends SIPCommDialog {
public void setPasswordField(String password) {
this.passwordField.setText(password);
}
-
+
/**
* Return the hostname
*
@@ -250,7 +256,7 @@ class SSHContactInfo extends SIPCommDialog {
public String getHostName() {
return this.machineIDField.getText();
}
-
+
/**
* Return the username
*
@@ -259,7 +265,7 @@ class SSHContactInfo extends SIPCommDialog {
public String getUserName() {
return this.userNameField.getText();
}
-
+
/**
* Return the password
*
@@ -268,7 +274,7 @@ class SSHContactInfo extends SIPCommDialog {
public String getPassword() {
return this.passwordField.getText();
}
-
+
/**
* Return the terminal type
*
@@ -277,7 +283,7 @@ class SSHContactInfo extends SIPCommDialog {
public String getTerminalType() {
return this.terminalTypeField.getText();
}
-
+
/**
* Return the port
*
@@ -286,7 +292,7 @@ class SSHContactInfo extends SIPCommDialog {
public int getPort() {
return Integer.parseInt(this.portField.getText().trim());
}
-
+
/**
* Return the update interval
*
@@ -295,7 +301,7 @@ class SSHContactInfo extends SIPCommDialog {
public int getUpdateInterval() {
return Integer.parseInt(String.valueOf(this.updateTimer.getValue()));
}
-
+
/**
* Sets the HostName of the dialog
*
@@ -304,7 +310,7 @@ class SSHContactInfo extends SIPCommDialog {
public void setHostNameField(String hostName) {
this.machineIDField.setText(hostName);
}
-
+
/**
* Sets the Terminal Type of the dialog
*
@@ -313,7 +319,7 @@ class SSHContactInfo extends SIPCommDialog {
public void setTerminalType(String termType) {
this.terminalTypeField.setText(termType);
}
-
+
/**
* Sets the Update Interval of the dialog
*
@@ -322,7 +328,7 @@ class SSHContactInfo extends SIPCommDialog {
public void setUpdateInterval(int interval) {
this.updateTimer.setValue(interval);
}
-
+
/**
* Sets the Port of the dialog
*
diff --git a/src/net/java/sip/communicator/impl/sysactivity/DBusNetworkManager.java b/src/net/java/sip/communicator/impl/sysactivity/DBusNetworkManager.java
index c7c99e9..3eade84 100644
--- a/src/net/java/sip/communicator/impl/sysactivity/DBusNetworkManager.java
+++ b/src/net/java/sip/communicator/impl/sysactivity/DBusNetworkManager.java
@@ -11,7 +11,7 @@ import org.freedesktop.dbus.exceptions.*;
/**
* NetworkManager D-Bus Interface
- *
+ *
* @author Damian Minkov
* @author Ingo Bauersachs
*/
@@ -71,7 +71,7 @@ public interface DBusNetworkManager
/**
* The current status.
- * @return
+ * @return the current status
*/
public int getStatus()
{
@@ -80,7 +80,7 @@ public interface DBusNetworkManager
/**
* Returns status description
- * @return
+ * @return the status description
*/
public String getStatusName()
{
@@ -114,7 +114,7 @@ public interface DBusNetworkManager
/**
* Returns status description
- * @return
+ * @return the status name
*/
@Override
public String getStatusName()
diff --git a/src/net/java/sip/communicator/plugin/accountinfo/AccountDetailsPanel.java b/src/net/java/sip/communicator/plugin/accountinfo/AccountDetailsPanel.java
index b0f05fd..6365bfc 100644
--- a/src/net/java/sip/communicator/plugin/accountinfo/AccountDetailsPanel.java
+++ b/src/net/java/sip/communicator/plugin/accountinfo/AccountDetailsPanel.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.accountinfo;
@@ -24,7 +24,7 @@ import net.java.sip.communicator.util.swing.*;
* The right side panel of AccountDetailsDialog. Shows one tab of a summary of
* contact information for the selected subcontact, and has an extended tab
* listing all of the details.
- *
+ *
* @author Yana Stamcheva
* @author Adam Netocny
*/
@@ -97,7 +97,7 @@ public class AccountDetailsPanel
/**
* Construct a panel containing all account details for the given protocol
* provider.
- *
+ *
* @param protocolProvider the protocol provider service
*/
public AccountDetailsPanel(ProtocolProviderService protocolProvider)
@@ -207,7 +207,7 @@ public class AccountDetailsPanel
}
/**
- * Loads details for
+ * Loads details for
*/
public void loadDetails()
{
@@ -513,7 +513,7 @@ public class AccountDetailsPanel
public void actionPerformed(ActionEvent e)
{
SipCommFileChooser chooser = GenericFileDialog.create(
- null, "Change avatar...",
+ null, "Change avatar...",
SipCommFileChooser.LOAD_FILE_OPERATION,
lastAvatarDir.getAbsolutePath());
chooser.addFilter(new ImageFilter());
@@ -589,7 +589,10 @@ public class AccountDetailsPanel
/**
* Get the extension of a file.
- */
+ *
+ * @param f the file
+ * @return the extension of the file
+ */
public String getExtension(File f)
{
String ext = null;
@@ -615,7 +618,7 @@ public class AccountDetailsPanel
/**
* Returns a scaled <tt>Image</tt> instance of the given byte image.
- *
+ *
* @param image the image in bytes
* @return a scaled <tt>Image</tt> instance of the given byte image.
*/
@@ -645,7 +648,7 @@ public class AccountDetailsPanel
/**
* Returns <code>true</code> if the account details are loaded,
* <code>false</code> - otherwise.
- *
+ *
* @return <code>true</code> if the account details are loaded,
* <code>false</code> - otherwise
*/
diff --git a/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoActivator.java b/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoActivator.java
index 9fb185c..9f34c9c 100644
--- a/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoActivator.java
+++ b/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoActivator.java
@@ -16,7 +16,7 @@ import org.osgi.framework.*;
/**
* Starts the account info bundle.
- *
+ *
* @author Adam Glodstein
*/
public class AccountInfoActivator
@@ -25,6 +25,9 @@ public class AccountInfoActivator
private static final Logger logger =
Logger.getLogger(AccountInfoActivator.class);
+ /**
+ * The OSGi bundle context.
+ */
public static BundleContext bundleContext;
private static BrowserLauncherService browserLauncherService;
@@ -46,7 +49,7 @@ public class AccountInfoActivator
/**
* Returns all <tt>ProtocolProviderFactory</tt>s obtained from the bundle
* context.
- *
+ *
* @return all <tt>ProtocolProviderFactory</tt>s obtained from the bundle
* context
*/
@@ -83,6 +86,11 @@ public class AccountInfoActivator
return providerFactoriesMap;
}
+ /**
+ * Returns the <tt>BrowserLauncherService</tt> currently registered.
+ *
+ * @return the <tt>BrowserLauncherService</tt>
+ */
public static BrowserLauncherService getBrowserLauncher()
{
if (browserLauncherService == null)
diff --git a/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoPanel.java b/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoPanel.java
index 2b656f7..700a45b 100644
--- a/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoPanel.java
+++ b/src/net/java/sip/communicator/plugin/accountinfo/AccountInfoPanel.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.accountinfo;
@@ -19,13 +19,18 @@ import org.osgi.framework.*;
/**
* A GUI plug-in for SIP Communicator that will allow users to set cross
* protocol account information.
- *
+ *
* @author Adam Goldstein
*/
public class AccountInfoPanel
extends TransparentPanel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The right side of the AccountInfo frame that contains protocol specific
* account details.
*/
diff --git a/src/net/java/sip/communicator/plugin/addrbook/AdvancedConfigForm.java b/src/net/java/sip/communicator/plugin/addrbook/AdvancedConfigForm.java
index a28abba..dcb7ce4 100644
--- a/src/net/java/sip/communicator/plugin/addrbook/AdvancedConfigForm.java
+++ b/src/net/java/sip/communicator/plugin/addrbook/AdvancedConfigForm.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.addrbook;
@@ -24,6 +24,11 @@ public class AdvancedConfigForm
extends TransparentPanel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates the form.
*/
public AdvancedConfigForm()
diff --git a/src/net/java/sip/communicator/plugin/addrbook/macosx/MacOSXAddrBookContactSourceService.java b/src/net/java/sip/communicator/plugin/addrbook/macosx/MacOSXAddrBookContactSourceService.java
index 637860b..8160d83 100644
--- a/src/net/java/sip/communicator/plugin/addrbook/macosx/MacOSXAddrBookContactSourceService.java
+++ b/src/net/java/sip/communicator/plugin/addrbook/macosx/MacOSXAddrBookContactSourceService.java
@@ -19,6 +19,9 @@ import net.java.sip.communicator.service.contactsource.*;
public class MacOSXAddrBookContactSourceService
extends AsyncContactSourceService
{
+ /**
+ * the Mac OS X address book prefix.
+ */
public static final String MACOSX_ADDR_BOOK_PREFIX
= "net.java.sip.communicator.plugin.addrbook.MACOSX_ADDR_BOOK_PREFIX";
diff --git a/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java b/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java
index 8292c5c..8d78ba3 100644
--- a/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java
+++ b/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookAddrBookContactSourceService.java
@@ -21,6 +21,9 @@ import net.java.sip.communicator.service.contactsource.*;
public class MsOutlookAddrBookContactSourceService
extends AsyncContactSourceService
{
+ /**
+ * The outlook address book prefix.
+ */
public static final String OUTLOOK_ADDR_BOOK_PREFIX
= "net.java.sip.communicator.plugin.addrbook.OUTLOOK_ADDR_BOOK_PREFIX";
diff --git a/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookMAPIHResultException.java b/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookMAPIHResultException.java
index cf8755d..411d465 100644
--- a/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookMAPIHResultException.java
+++ b/src/net/java/sip/communicator/plugin/addrbook/msoutlook/MsOutlookMAPIHResultException.java
@@ -16,6 +16,11 @@ public class MsOutlookMAPIHResultException
extends Exception
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The <tt>HRESULT</tt> which is represented by this <tt>Exception</tt>.
*/
private final long hResult;
diff --git a/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java b/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java
index 90cdc6e..a6a13c0 100644
--- a/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java
+++ b/src/net/java/sip/communicator/plugin/aimaccregwizz/AimAccRegWizzActivator.java
@@ -20,19 +20,22 @@ import org.osgi.framework.*;
*
* @author Yana Stamcheva
*/
-public class AimAccRegWizzActivator implements BundleActivator {
-
+public class AimAccRegWizzActivator implements BundleActivator
+{
+ /**
+ * The OSGi bundle context.
+ */
public static BundleContext bundleContext;
private static Logger logger = Logger.getLogger(
AimAccRegWizzActivator.class);
-
+
private static BrowserLauncherService browserLauncherService;
-
+
private static UIService uiService;
-
+
private static AimAccountRegistrationWizard aimWizard;
-
+
/**
* Starts this bundle.
*/
@@ -88,7 +91,7 @@ public class AimAccRegWizzActivator implements BundleActivator {
return (ProtocolProviderFactory) bundleContext.getService(serRefs[0]);
}
-
+
/**
* Returns the <tt>BrowserLauncherService</tt> obtained from the bundle
* context.
@@ -106,10 +109,10 @@ public class AimAccRegWizzActivator implements BundleActivator {
return browserLauncherService;
}
-
+
/**
* Returns the <tt>UIService</tt>.
- *
+ *
* @return the <tt>UIService</tt>
*/
public static UIService getUIService()
diff --git a/src/net/java/sip/communicator/plugin/aimaccregwizz/FirstWizardPage.java b/src/net/java/sip/communicator/plugin/aimaccregwizz/FirstWizardPage.java
index fdc405f..92ce0f4 100644
--- a/src/net/java/sip/communicator/plugin/aimaccregwizz/FirstWizardPage.java
+++ b/src/net/java/sip/communicator/plugin/aimaccregwizz/FirstWizardPage.java
@@ -28,6 +28,11 @@ public class FirstWizardPage
ActionListener
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The first page identifier.
*/
public static final String FIRST_PAGE_IDENTIFIER = "FirstPageIdentifier";
diff --git a/src/net/java/sip/communicator/plugin/aimaccregwizz/Resources.java b/src/net/java/sip/communicator/plugin/aimaccregwizz/Resources.java
index 2a2b5a5..de35837 100644
--- a/src/net/java/sip/communicator/plugin/aimaccregwizz/Resources.java
+++ b/src/net/java/sip/communicator/plugin/aimaccregwizz/Resources.java
@@ -11,7 +11,7 @@ import net.java.sip.communicator.service.resources.*;
/**
* The <tt>Resources</tt> class manages the access to the internationalization
* properties files and the image resources used in this plugin.
- *
+ *
* @author Yana Stamcheva
*/
public class Resources
@@ -27,7 +27,7 @@ public class Resources
/**
* A constant pointing to the Aim protocol wizard page image.
*/
- public static ImageID PAGE_IMAGE
+ public static ImageID PAGE_IMAGE
= new ImageID("service.protocol.aim.AIM_64x64");
/**
@@ -50,6 +50,11 @@ public class Resources
return getResources().getImageInBytes(imageID.getId());
}
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java
index c9fc8f7..f183f22 100644
--- a/src/net/java/sip/communicator/plugin/branding/AboutWindow.java
+++ b/src/net/java/sip/communicator/plugin/branding/AboutWindow.java
@@ -39,6 +39,10 @@ public class AboutWindow
ExportedWindow,
Skinnable
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
/**
* The global/shared <code>AboutWindow</code> currently showing.
@@ -252,6 +256,11 @@ public class AboutWindow
extends JPanel
implements Skinnable
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private static final Logger logger
= Logger.getLogger(WindowBackground.class);
@@ -403,6 +412,11 @@ public class AboutWindow
*/
private class CloseAction extends UIAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public void actionPerformed(ActionEvent e)
{
setVisible(false);
diff --git a/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java b/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java
index 30e2955..e784b90 100644
--- a/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java
+++ b/src/net/java/sip/communicator/plugin/branding/AboutWindowPluginComponent.java
@@ -33,6 +33,11 @@ public class AboutWindowPluginComponent
private JMenuItem aboutMenuItem;
+ /**
+ * Constructor.
+ *
+ * @param container parent container
+ */
public AboutWindowPluginComponent(Container container)
{
super(container);
diff --git a/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java b/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java
index c2c1b5f..3274785 100644
--- a/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java
+++ b/src/net/java/sip/communicator/plugin/branding/BrandingActivator.java
@@ -16,6 +16,9 @@ import net.java.sip.communicator.util.*;
import org.osgi.framework.*;
+/**
+ * Branding bundle activator.
+ */
public class BrandingActivator
implements BundleActivator
{
@@ -30,7 +33,7 @@ public class BrandingActivator
= "net.java.sip.communicator.plugin.branding.SHOW_SPLASH_SCREEN";
private static BundleContext bundleContext;
-
+
private static ResourceManagementService resourcesService;
public void start(BundleContext bc) throws Exception
@@ -254,6 +257,11 @@ public class BrandingActivator
: (ConfigurationService) bundleContext.getService(serRef);
}
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java b/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java
index f27c401..e037729 100644
--- a/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java
+++ b/src/net/java/sip/communicator/plugin/branding/JitsiWarningWindow.java
@@ -27,6 +27,11 @@ public class JitsiWarningWindow
extends SIPCommDialog
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates an <tt>JitsiWarningWindow</tt> by specifying the parent frame
* owner.
* @param owner the parent owner
@@ -133,6 +138,11 @@ public class JitsiWarningWindow
*/
private class CloseAction extends UIAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public void actionPerformed(ActionEvent e)
{
setVisible(false);
diff --git a/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java b/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java
index b933bc7..61e7a9e 100644
--- a/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java
+++ b/src/net/java/sip/communicator/plugin/branding/WelcomeWindow.java
@@ -21,11 +21,16 @@ import net.java.sip.communicator.util.swing.*;
* The <tt>WelcomeWindow</tt> is actually the splash screen shown while the
* application is loading. It displays the status of the loading process and
* some general information about the version, licenses and contact details.
- *
+ *
* @author Yana Stamcheva
*/
public class WelcomeWindow extends JDialog
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private static final String APPLICATION_NAME
= BrandingActivator.getResources()
.getSettingsString("service.gui.APPLICATION_NAME");
@@ -40,6 +45,9 @@ public class WelcomeWindow extends JDialog
private final JLabel bundleLabel = new JLabel();
+ /**
+ * Constructor.
+ */
public WelcomeWindow()
{
JLabel titleLabel = new JLabel(APPLICATION_NAME);
@@ -109,7 +117,7 @@ public class WelcomeWindow extends JDialog
/**
* Initializes the title label.
- *
+ *
* @param titleLabel the title label
*/
private void initTitleLabel(JLabel titleLabel)
@@ -122,7 +130,7 @@ public class WelcomeWindow extends JDialog
/**
* Initializes the version label.
- *
+ *
* @param versionLabel the version label
*/
private void initVersionLabel(JLabel versionLabel)
@@ -135,7 +143,7 @@ public class WelcomeWindow extends JDialog
/**
* Initializes the logo area.
- *
+ *
* @param logoArea the logo area
*/
private void initLogoArea(JTextArea logoArea)
@@ -158,7 +166,7 @@ public class WelcomeWindow extends JDialog
/**
* Initializes the copyright area.
- *
+ *
* @param rightsArea the copyright area.
*/
private void initRightsArea(StyledHTMLEditorPane rightsArea)
@@ -185,7 +193,7 @@ public class WelcomeWindow extends JDialog
/**
* Initializes the license area.
- *
+ *
* @param licenseArea the license area.
*/
private void initLicenseArea(StyledHTMLEditorPane licenseArea)
@@ -277,7 +285,7 @@ public class WelcomeWindow extends JDialog
/**
* Sets the name of the currently loading bundle.
- *
+ *
* @param bundleName the name of the bundle to display
*/
public void setBundle(String bundleName)
@@ -293,6 +301,11 @@ public class WelcomeWindow extends JDialog
*/
private class CloseAction extends UIAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public void actionPerformed(ActionEvent e)
{
WelcomeWindow.this.close();
@@ -305,6 +318,11 @@ public class WelcomeWindow extends JDialog
private static class WindowBackground
extends JPanel
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private BufferedImage cache;
private int cacheHeight;
diff --git a/src/net/java/sip/communicator/plugin/certconfig/CertConfigEntryDialog.java b/src/net/java/sip/communicator/plugin/certconfig/CertConfigEntryDialog.java
index 9b608f2..cfc43c0 100644
--- a/src/net/java/sip/communicator/plugin/certconfig/CertConfigEntryDialog.java
+++ b/src/net/java/sip/communicator/plugin/certconfig/CertConfigEntryDialog.java
@@ -26,7 +26,7 @@ import net.java.sip.communicator.util.swing.*;
/**
* Dialog window to add/edit client certificate configuration entries.
- *
+ *
* @author Ingo Bauersachs
*/
public class CertConfigEntryDialog
@@ -62,6 +62,11 @@ public class CertConfigEntryDialog
// ------------------------------------------------------------------------
// Initialization
// ------------------------------------------------------------------------
+ /**
+ * Constructor.
+ *
+ * @param e the <tt>CertificateConfigEntry</tt>
+ */
public CertConfigEntryDialog(CertificateConfigEntry e)
{
super(false);
@@ -373,7 +378,7 @@ public class CertConfigEntryDialog
* Open the keystore selected by the user. If the type is set as PKCS#11,
* the file is loaded as a provider. If the store is protected by a
* password, the user is being asked by an authentication dialog.
- *
+ *
* @return The loaded keystore
* @throws KeyStoreException when something goes wrong
*/
@@ -508,6 +513,11 @@ public class CertConfigEntryDialog
);
}
+ /**
+ * Show this dialog.
+ *
+ * @return true if OK has been pressed, false otherwise
+ */
public boolean showDialog()
{
setModal(true);
diff --git a/src/net/java/sip/communicator/plugin/certconfig/CertConfigTableModel.java b/src/net/java/sip/communicator/plugin/certconfig/CertConfigTableModel.java
index 3fac922..4933661 100644
--- a/src/net/java/sip/communicator/plugin/certconfig/CertConfigTableModel.java
+++ b/src/net/java/sip/communicator/plugin/certconfig/CertConfigTableModel.java
@@ -17,7 +17,7 @@ import net.java.sip.communicator.service.resources.*;
/**
* Backing data model for a JTable that displays the client certificate
* configuration entries.
- *
+ *
* @author Ingo Bauersachs
*/
public class CertConfigTableModel
@@ -29,6 +29,9 @@ public class CertConfigTableModel
private List<CertificateConfigEntry> model;
private ResourceManagementService R = CertConfigActivator.R;
+ /**
+ * Constructor.
+ */
public CertConfigTableModel()
{
CertConfigActivator.getConfigService().addPropertyChangeListener(this);
@@ -60,6 +63,12 @@ public class CertConfigTableModel
return null;
}
+ /**
+ * Get <tt>CertificateConfigEntry</tt> located at <tt>rowIndex</tt>.
+ *
+ * @param rowIndex row index
+ * @return <tt>CertificateConfigEntry</tt>
+ */
public CertificateConfigEntry getItem(int rowIndex)
{
return model.get(rowIndex);
diff --git a/src/net/java/sip/communicator/plugin/chatconfig/ChatConfigPanel.java b/src/net/java/sip/communicator/plugin/chatconfig/ChatConfigPanel.java
index 3d17d30..f96dc0a 100644
--- a/src/net/java/sip/communicator/plugin/chatconfig/ChatConfigPanel.java
+++ b/src/net/java/sip/communicator/plugin/chatconfig/ChatConfigPanel.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.chatconfig;
@@ -13,13 +13,18 @@ import net.java.sip.communicator.util.swing.*;
/**
* The chat configuration panel.
- *
+ *
* @author Purvesh Sahoo
*/
public class ChatConfigPanel
extends TransparentPanel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates the <tt>ChatConfigPanel</tt>.
*/
public ChatConfigPanel()
diff --git a/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigPanel.java b/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigPanel.java
index fc4f4b4..8223ed2 100644
--- a/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigPanel.java
+++ b/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigPanel.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.chatconfig.replacement;
@@ -23,13 +23,18 @@ import java.util.*;
/**
* The <tt>ConfigurationForm</tt> that would be added in the chat configuration
* window.
- *
+ *
* @author Purvesh Sahoo
*/
public class ReplacementConfigPanel
extends TransparentPanel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Checkbox to enable/disable smiley replacement.
*/
private JCheckBox enableSmiley;
@@ -62,7 +67,7 @@ public class ReplacementConfigPanel
/**
* Init the main panel.
- *
+ *
* @return the created component
*/
private Component createMainPanel()
@@ -114,7 +119,7 @@ public class ReplacementConfigPanel
table.setOpaque(true);
table.setBackground(Color.white);
-
+
JScrollPane tablePane = new JScrollPane(table);
tablePane.setOpaque(false);
tablePane.setPreferredSize(new Dimension(mainPanel.getWidth(), 150));
@@ -138,7 +143,7 @@ public class ReplacementConfigPanel
/*
* list of the source names. Removing 'Smiley' as it shouldn't show up in
- * the table.
+ * the table.
*/
Set<String> keys = ChatConfigActivator.getReplacementSources().keySet();
ArrayList<String> sourceList = new ArrayList<String>(keys);
@@ -229,6 +234,11 @@ public class ReplacementConfigPanel
private static class FixedTableCellRenderer
extends DefaultTableCellRenderer
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public Component getTableCellRendererComponent(JTable table, Object value,
boolean selected, boolean focused, int row, int column)
{
diff --git a/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigurationTableModel.java b/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigurationTableModel.java
index 55d0706..482c7c4 100644
--- a/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigurationTableModel.java
+++ b/src/net/java/sip/communicator/plugin/chatconfig/replacement/ReplacementConfigurationTableModel.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.chatconfig.replacement;
@@ -16,13 +16,18 @@ import net.java.sip.communicator.service.replacement.*;
/**
* Table model for the table in <tt>ReplacementConfigPanel</tt> listing all
* available replacement sources
- *
+ *
* @author Purvesh Sahoo
*/
public class ReplacementConfigurationTableModel
extends AbstractTableModel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The source list of all the available replacement sources
*/
private ArrayList<String> sourceList;
@@ -73,7 +78,7 @@ public class ReplacementConfigurationTableModel
/**
* @param rowIndex the row index.
* @param columnIndex the column index
- *
+ *
* @return the value specified rowIndex and columnIndex. boolean in case of
* the first column, String replacement source label in case of the
* second column; null otherwise
@@ -83,7 +88,7 @@ public class ReplacementConfigurationTableModel
String sourceName = sourceList.get(rowIndex);
ReplacementService source =
ChatConfigActivator.getReplacementSources().get(sourceName);
-
+
switch (columnIndex)
{
case 0:
@@ -102,7 +107,7 @@ public class ReplacementConfigurationTableModel
/**
* @param rowIndex the row index
* @param columnIndex the column index
- *
+ *
* @return boolean; true for first column false otherwise
*/
public boolean isCellEditable(int rowIndex, int columnIndex)
@@ -114,7 +119,7 @@ public class ReplacementConfigurationTableModel
* Set the value at rowIndex and columnIndex. Sets the replacement source
* property enabled/disabled based on whether the first column is true or
* false.
- *
+ *
* @param value The object to set at rowIndex and columnIndex
* @param rowIndex
* @param columnIndex
@@ -126,7 +131,7 @@ public class ReplacementConfigurationTableModel
String sourceName = sourceList.get(rowIndex);
ReplacementService source =
ChatConfigActivator.getReplacementSources().get(sourceName);
-
+
boolean e = (Boolean) value;
configService.setProperty(ReplacementProperty
.getPropertyName(source.getSourceName()), e);
diff --git a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoContactPanel.java b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoContactPanel.java
index 4ddad4f..b570b77 100644
--- a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoContactPanel.java
+++ b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoContactPanel.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.contactinfo;
@@ -18,7 +18,7 @@ import net.java.sip.communicator.util.swing.*;
* The left side panel of ContactInfoDialog. Display all associated subcontacts
* and their respective protocols in a JList. If a user is selected, the
* ContactInfoDetailsPanel will be updated to the current contact.
- *
+ *
* @author Adam Goldstein
* @author Yana Stamcheva
*/
@@ -26,6 +26,11 @@ public class ContactInfoContactPanel
extends TransparentPanel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The list of all subcontacts related to the selected contact.
*/
private JList contactList = new JList();
@@ -49,7 +54,7 @@ public class ContactInfoContactPanel
* contact that was originally selected. Whenever a sub-contact is picked,
* notifies the protocolPanel of the change and it will update the displayed
* details.
- *
+ *
* @param contacts the list of contacts
* @param dialog the contact info dialog
*/
@@ -111,6 +116,11 @@ public class ContactInfoContactPanel
private static class ContactPanelCellRenderer
extends DefaultListCellRenderer
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private boolean isSelected;
private Color blueGreyBorderColor = new Color(131, 149, 178);
@@ -125,7 +135,7 @@ public class ContactInfoContactPanel
/**
* Renders a <tt>Contact</tt> object in a JList, by visualizing
* the contact name and the protocol icon.
- *
+ *
* @param list the rendered JList
* @param value the object to be rendered
* @param index the index of the object in the list
diff --git a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDetailsPanel.java b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDetailsPanel.java
index 543c344..3276d7e 100644
--- a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDetailsPanel.java
+++ b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDetailsPanel.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.contactinfo;
@@ -26,7 +26,7 @@ import net.java.sip.communicator.util.swing.*;
* The right side panel of ContactInfoDialog. Shows one tab of a summary of
* contact information for the selected subcontact, and has an extended tab
* listing all of the details.
- *
+ *
* @author Adam Goldstein
* @author Yana Stamcheva
*/
@@ -34,6 +34,11 @@ public class ContactInfoDetailsPanel
extends TransparentPanel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The tabbed pane containing the two different tabs for details.
*/
private final JTabbedPane tabbedPane = new SIPCommTabbedPane();
@@ -73,7 +78,7 @@ public class ContactInfoDetailsPanel
/**
* Retrieve and display the information for the newly selected contact, c.
- *
+ *
* @param c the sub-contact we are now focusing on.
*/
public void loadContactDetails(Contact c)
@@ -137,7 +142,7 @@ public class ContactInfoDetailsPanel
/**
* Creates the panel that indicates to the user that the currently selected
* contact does not support server stored contact info.
- *
+ *
* @return the panel that is added and shows a message that the selected
* sub-contact does not have the operation set for server stored
* contact info supported.
@@ -165,7 +170,7 @@ public class ContactInfoDetailsPanel
* LastNameDetail - BirthdateDetail (and calculate age) - GenderDetail -
* EmailAddressDetail - PhoneNumberDetail. All other details will be* added
* to our list of extended details.
- *
+ *
* @return the panel that will be added as the summary tab.
*/
private JPanel createSummaryInfoPanel()
@@ -395,7 +400,7 @@ public class ContactInfoDetailsPanel
/**
* A panel that displays all of the details retrieved from the opSet.
- *
+ *
* @return a panel that will be added as the extended tab.
*/
private JPanel createExtendedInfoPanel()
@@ -570,6 +575,11 @@ public class ContactInfoDetailsPanel
implements HyperlinkListener
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The regular expression (in the form of compiled <tt>Pattern</tt>)
* which matches URLs for the purposed of turning them into links.
*/
@@ -577,10 +587,10 @@ public class ContactInfoDetailsPanel
+ "(\\bwww\\.[^\\s<>\"]+\\.[^\\s<>\"]+/*[?#]*(\\w+[&=;?]\\w+)*\\b)" // wwwURL
+ "|" + "(\\b\\w+://[^\\s<>\"]+/*[?#]*(\\w+[&=;?]\\w+)*\\b)" // protocolURL
+ ")");
-
+
private SIPCommHTMLEditorKit editorKit;
private HTMLDocument document;
-
+
/**
* Creates and instance of <tt>HTMLTextPane</tt>
*/
@@ -589,19 +599,19 @@ public class ContactInfoDetailsPanel
editorKit = new SIPCommHTMLEditorKit(this);
this.document = (HTMLDocument) editorKit.createDefaultDocument();
-
+
this.addHyperlinkListener(this);
this.setContentType("text/html");
this.setEditorKitForContentType("text/html", editorKit);
this.setEditorKit(editorKit);
this.setDocument(document);
-
+
putClientProperty(
JTextPane.HONOR_DISPLAY_PROPERTIES, Boolean.TRUE);
}
-
-
+
+
/**
* Override of parent <tt>setText(String)</tt> to search for URLs and
* set as hyperlinks.
@@ -610,7 +620,7 @@ public class ContactInfoDetailsPanel
@Override
public void setText(String string)
{
-
+
Matcher m = URL_PATTERN.matcher(string);
StringBuffer msgBuffer = new StringBuffer();
int prevEnd = 0;
@@ -632,15 +642,15 @@ public class ContactInfoDetailsPanel
msgBuffer.append(url);
msgBuffer.append("</A>");
}
-
+
String fromPrevEndToEnd = string.substring(prevEnd);
msgBuffer.append(fromPrevEndToEnd);
super.setText(msgBuffer.toString());
-
+
}
-
+
/**
* Handles activations of hyperlinks
* @param e <tt>HyperlinkEvent</tt> to handle.
diff --git a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java
index 7abfd5f..0e8075d 100644
--- a/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java
+++ b/src/net/java/sip/communicator/plugin/contactinfo/ContactInfoDialog.java
@@ -16,7 +16,7 @@ import net.java.sip.communicator.util.swing.*;
/**
* A GUI plug-in for SIP Communicator that will allow cross protocol contact
* information viewing and editing.
- *
+ *
* @author Adam Goldstein
* @author Yana Stamcheva
*/
@@ -24,6 +24,11 @@ public class ContactInfoDialog
extends SIPCommFrame
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The right side of this frame that contains protocol specific contact
* details.
*/
@@ -71,7 +76,7 @@ public class ContactInfoDialog
/**
* Loads the details of the given contact.
- *
+ *
* @param contact the <tt>Contact</tt>, which details we load
*/
public void loadContactDetails(Contact contact)
diff --git a/src/net/java/sip/communicator/plugin/contactinfo/Resources.java b/src/net/java/sip/communicator/plugin/contactinfo/Resources.java
index f9ad6d2..5a77b2e 100644
--- a/src/net/java/sip/communicator/plugin/contactinfo/Resources.java
+++ b/src/net/java/sip/communicator/plugin/contactinfo/Resources.java
@@ -18,7 +18,7 @@ import net.java.sip.communicator.util.*;
/**
* The <tt>Resources</tt> class manages the access to the internationalization
* properties files and the image resources used in this plugin.
- *
+ *
* @author Yana Stamcheva
*/
public class Resources {
@@ -46,12 +46,12 @@ public class Resources {
{
BufferedImage image = null;
- InputStream in =
+ InputStream in =
getResources().getImageInputStream(imageID);
-
+
if(in == null)
return null;
-
+
try
{
image = ImageIO.read(in);
@@ -63,7 +63,12 @@ public class Resources {
return image;
}
-
+
+ /**
+ * Returns the <tt>ResourceManagementService</tt>.
+ *
+ * @return the <tt>ResourceManagementService</tt>.
+ */
public static ResourceManagementService getResources()
{
if (resourcesService == null)
diff --git a/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigActivator.java b/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigActivator.java
index e676362..a875d6a 100644
--- a/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigActivator.java
+++ b/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigActivator.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.contactsourceconfig;
@@ -21,13 +21,7 @@ public class ContactSourceConfigActivator
implements BundleActivator
{
/**
- * The logger.
- */
- private static Logger logger
- = Logger.getLogger(ContactSourceConfigActivator.class);
-
- /**
- * The {@link BundleContext} of the {@link SecurityConfigActivator}.
+ * The {@link BundleContext} of the {@link ContactSourceConfigActivator}.
*/
public static BundleContext bundleContext;
diff --git a/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigForm.java b/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigForm.java
index 45a8d01..bd23307 100644
--- a/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigForm.java
+++ b/src/net/java/sip/communicator/plugin/contactsourceconfig/ContactSourceConfigForm.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.plugin.contactsourceconfig;
@@ -16,7 +16,7 @@ import net.java.sip.communicator.service.gui.*;
import net.java.sip.communicator.util.swing.*;
/**
- *
+ *
* @author Yana Stamcheva
*/
public class ContactSourceConfigForm
@@ -24,6 +24,11 @@ public class ContactSourceConfigForm
implements ServiceListener
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The drop down list of contact sources.
*/
private final JComboBox contactSourceComboBox = new JComboBox();
@@ -166,6 +171,11 @@ public class ContactSourceConfigForm
*/
private class ContactSourceRenderer extends DefaultListCellRenderer
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public Component getListCellRendererComponent(
JList list, Object value, int index,
boolean isSelected, boolean hasFocus)
diff --git a/src/net/java/sip/communicator/plugin/defaultresourcepack/DefaultLanguagePackImpl.java b/src/net/java/sip/communicator/plugin/defaultresourcepack/DefaultLanguagePackImpl.java
index 5645bc9..74f57b4 100644
--- a/src/net/java/sip/communicator/plugin/defaultresourcepack/DefaultLanguagePackImpl.java
+++ b/src/net/java/sip/communicator/plugin/defaultresourcepack/DefaultLanguagePackImpl.java
@@ -34,6 +34,9 @@ public class DefaultLanguagePackImpl
*/
private Vector<Locale> availableLocales = new Vector<Locale>();
+ /**
+ * Constructor.
+ */
public DefaultLanguagePackImpl()
{
// Finds all the files *.properties in the path : /resources/languages.
diff --git a/src/net/java/sip/communicator/service/callhistory/CallPeerRecord.java b/src/net/java/sip/communicator/service/callhistory/CallPeerRecord.java
index cec0c85..a6f6ce5 100644
--- a/src/net/java/sip/communicator/service/callhistory/CallPeerRecord.java
+++ b/src/net/java/sip/communicator/service/callhistory/CallPeerRecord.java
@@ -49,7 +49,6 @@ public class CallPeerRecord
Date endTime)
{
this.peerAddress = peerAddress;
- this.displayName = displayName;
this.startTime = startTime;
this.endTime = endTime;
}
diff --git a/src/net/java/sip/communicator/service/certificate/CertificateMatcher.java b/src/net/java/sip/communicator/service/certificate/CertificateMatcher.java
index 2755417..b7823d0 100644
--- a/src/net/java/sip/communicator/service/certificate/CertificateMatcher.java
+++ b/src/net/java/sip/communicator/service/certificate/CertificateMatcher.java
@@ -8,12 +8,15 @@ package net.java.sip.communicator.service.certificate;
import java.security.cert.*;
+/**
+ * Interface to verify X.509 certificate
+ */
public interface CertificateMatcher
{
/**
* Implementations check whether one of the supplied identities is
* contained in the certificate.
- *
+ *
* @param identitiesToTest The that are compared against the certificate.
* @param cert The X.509 certificate that was supplied by the server or
* client.
diff --git a/src/net/java/sip/communicator/service/certificate/CertificateService.java b/src/net/java/sip/communicator/service/certificate/CertificateService.java
index 4a02837..33a2ed9 100644
--- a/src/net/java/sip/communicator/service/certificate/CertificateService.java
+++ b/src/net/java/sip/communicator/service/certificate/CertificateService.java
@@ -89,32 +89,32 @@ public interface CertificateService
// Client authentication configuration
// ------------------------------------------------------------------------
/**
- * Returns all saved {@see CertificateConfigEntry}s.
- *
+ * Returns all saved {@link CertificateConfigEntry}s.
+ *
* @return List of the saved authentication configurations.
*/
public List<CertificateConfigEntry> getClientAuthCertificateConfigs();
/**
- * Deletes a saved {@see CertificateConfigEntry}.
- *
- * @param id The ID ({@see CertificateConfigEntry#getId()}) of the entry to
+ * Deletes a saved {@link CertificateConfigEntry}.
+ *
+ * @param id The ID ({@link CertificateConfigEntry#getId()}) of the entry to
* delete.
*/
public void removeClientAuthCertificateConfig(String id);
/**
- * Saves or updates the passed @see CertificateConfigEntry to the config.
- * If {@see CertificateConfigEntry#getId()} returns null, a new entry is
+ * Saves or updates the passed {@link CertificateConfigEntry} to the config.
+ * If {@link CertificateConfigEntry#getId()} returns null, a new entry is
* created.
- *
+ *
* @param entry The @see CertificateConfigEntry to save or update.
*/
public void setClientAuthCertificateConfig(CertificateConfigEntry entry);
/**
* Gets a list of all supported KeyStore types.
- *
+ *
* @return a list of all supported KeyStore types.
*/
public List<KeyStoreType> getSupportedKeyStoreTypes();
@@ -125,10 +125,10 @@ public interface CertificateService
/**
* Get an SSL Context that validates certificates based on the JRE default
* check and asks the user when the JRE check fails.
- *
+ *
* CAUTION: Only the certificate itself is validated, no check is performed
* whether it is valid for a specific server or client.
- *
+ *
* @return An SSL context based on a user confirming trust manager.
* @throws GeneralSecurityException
*/
@@ -136,7 +136,7 @@ public interface CertificateService
/**
* Get an SSL Context with the specified trustmanager.
- *
+ *
* @param trustManager The trustmanager that will be used by the created
* SSLContext
* @return An SSL context based on the supplied trust manager.
@@ -147,7 +147,7 @@ public interface CertificateService
/**
* Get an SSL Context with the specified trustmanager.
- *
+ *
* @param clientCertConfig The ID of a client certificate configuration
* entry that is to be used when the server asks for a client TLS
* certificate
@@ -162,7 +162,7 @@ public interface CertificateService
/**
* Get an SSL Context with the specified trustmanager.
- *
+ *
* @param keyManagers The key manager(s) to be used for client
* authentication
* @param trustManager The trustmanager that will be used by the created
@@ -181,7 +181,7 @@ public interface CertificateService
* performed whether the certificate is valid for a specific server or
* client. The passed identities are checked by applying a behavior similar
* to the on regular browsers use.
- *
+ *
* @param identitiesToTest when not <tt>null</tt>, the values are assumed
* to be hostnames for invocations of checkServerTrusted and
* e-mail addresses for invocations of checkClientTrusted
@@ -193,7 +193,7 @@ public interface CertificateService
/**
* @see #getTrustManager(Iterable)
- *
+ *
* @param identityToTest when not <tt>null</tt>, the value is assumed to
* be a hostname for invocations of checkServerTrusted and an
* e-mail address for invocations of checkClientTrusted
@@ -205,7 +205,7 @@ public interface CertificateService
/**
* @see #getTrustManager(Iterable, CertificateMatcher, CertificateMatcher)
- *
+ *
* @param identityToTest The identity to match against the supplied
* verifiers.
* @param clientVerifier The verifier to use in calls to checkClientTrusted
@@ -225,7 +225,7 @@ public interface CertificateService
* <tt>null</tt> is passed as the <tt>identityToTest</tt> then no check is
* performed whether the certificate is valid for a specific server or
* client.
- *
+ *
* @param identitiesToTest The identities to match against the supplied
* verifiers.
* @param clientVerifier The verifier to use in calls to checkClientTrusted
@@ -241,8 +241,9 @@ public interface CertificateService
/**
* Adds a certificate to the local trust store.
- *
+ *
* @param cert The certificate to add to the trust store.
+ * @param trustFor
* @param trustMode Whether to trust the certificate permanently or only
* for the current session.
* @throws CertificateException when the thumbprint could not be calculated
diff --git a/src/net/java/sip/communicator/service/filehistory/FileRecord.java b/src/net/java/sip/communicator/service/filehistory/FileRecord.java
index db1a165..449c1b7 100644
--- a/src/net/java/sip/communicator/service/filehistory/FileRecord.java
+++ b/src/net/java/sip/communicator/service/filehistory/FileRecord.java
@@ -18,9 +18,13 @@ import net.java.sip.communicator.service.protocol.Contact;
public class FileRecord
{
/**
- * Possible directions of the transfer
+ * Direction of the transfer: out
*/
public final static String OUT = "out";
+
+ /**
+ * Direction of the transfer: in
+ */
public final static String IN = "in";
/**
@@ -57,6 +61,8 @@ public class FileRecord
/**
* Constructs new FileRecord
*
+ * @param id
+ * @param contact
* @param direction
* @param date
* @param file
diff --git a/src/net/java/sip/communicator/service/gui/WindowID.java b/src/net/java/sip/communicator/service/gui/WindowID.java
index 0e033c6..d87d7c7 100644
--- a/src/net/java/sip/communicator/service/gui/WindowID.java
+++ b/src/net/java/sip/communicator/service/gui/WindowID.java
@@ -17,10 +17,19 @@ public class WindowID{
private String dialogName;
+ /**
+ * Creates a new WindowID.
+ * @param dialogName the name of the dialog
+ */
public WindowID(String dialogName){
this.dialogName = dialogName;
}
+ /**
+ * Get the ID.
+ *
+ * @return the ID
+ */
public String getID(){
return this.dialogName;
}
diff --git a/src/net/java/sip/communicator/service/httputil/HttpUtils.java b/src/net/java/sip/communicator/service/httputil/HttpUtils.java
index bc3f839..755f02d 100644
--- a/src/net/java/sip/communicator/service/httputil/HttpUtils.java
+++ b/src/net/java/sip/communicator/service/httputil/HttpUtils.java
@@ -706,7 +706,7 @@ public class HttpUtils
else
{
// we have saved values lets return them
- authUsername =
+ authUsername =
HttpUtilActivator.getConfigurationService().getString(
usernamePropertyName);
authPassword = pass;
@@ -941,6 +941,8 @@ public class HttpUtils
/**
* Get the credentials used by the request.
+ *
+ * @return the credentials (login at index 0 and password at index 1)
*/
public String[] getCredentials()
{
@@ -950,10 +952,10 @@ public class HttpUtils
{
HTTPCredentialsProvider prov = (HTTPCredentialsProvider)
httpClient.getCredentialsProvider();
- cred[0] = prov.getAuthenticationUsername();
- cred[1] = prov.getAuthenticationPassword();
+ cred[0] = prov.getAuthenticationUsername();
+ cred[1] = prov.getAuthenticationPassword();
}
-
+
return cred;
}
}
diff --git a/src/net/java/sip/communicator/service/keybindings/KeybindingSet.java b/src/net/java/sip/communicator/service/keybindings/KeybindingSet.java
index 87085fb..ceb6f2f 100644
--- a/src/net/java/sip/communicator/service/keybindings/KeybindingSet.java
+++ b/src/net/java/sip/communicator/service/keybindings/KeybindingSet.java
@@ -42,7 +42,14 @@ public abstract class KeybindingSet
*/
public enum Category
{
+ /**
+ * The "chat" category.
+ */
CHAT("keybindings-chat", Persistence.SERIAL_HASH),
+
+ /**
+ * The "main" category.
+ */
MAIN("keybindings-main", Persistence.SERIAL_HASH);
private final String resource;
diff --git a/src/net/java/sip/communicator/service/ldap/LdapDirectorySettings.java b/src/net/java/sip/communicator/service/ldap/LdapDirectorySettings.java
index fd0f648..1a0e351 100644
--- a/src/net/java/sip/communicator/service/ldap/LdapDirectorySettings.java
+++ b/src/net/java/sip/communicator/service/ldap/LdapDirectorySettings.java
@@ -258,7 +258,7 @@ public interface LdapDirectorySettings
* Sets the global prefix to be used when calling phones from this ldap
* source.
*
- * @param the global prefix to be used when calling phones from this ldap
+ * @param prefix the global prefix to be used when calling phones from this ldap
* source
*/
public void setGlobalPhonePrefix(String prefix);
diff --git a/src/net/java/sip/communicator/service/msghistory/event/ProgressEvent.java b/src/net/java/sip/communicator/service/msghistory/event/ProgressEvent.java
index c177636..e5c6aca 100644
--- a/src/net/java/sip/communicator/service/msghistory/event/ProgressEvent.java
+++ b/src/net/java/sip/communicator/service/msghistory/event/ProgressEvent.java
@@ -30,6 +30,13 @@ public class ProgressEvent
*/
private int progress = 0;
+ /**
+ * Constructor.
+ *
+ * @param source source <tt>Object</tt>
+ * @param evt the event
+ * @param progress initial progress
+ */
public ProgressEvent(
Object source,
net.java.sip.communicator.service.history.event.ProgressEvent evt,
diff --git a/src/net/java/sip/communicator/service/neomedia/MediaStreamStats.java b/src/net/java/sip/communicator/service/neomedia/MediaStreamStats.java
index a6f09bd..958faf5 100644
--- a/src/net/java/sip/communicator/service/neomedia/MediaStreamStats.java
+++ b/src/net/java/sip/communicator/service/neomedia/MediaStreamStats.java
@@ -7,9 +7,6 @@
package net.java.sip.communicator.service.neomedia;
import net.sf.fmj.media.rtp.*;
-import java.util.*;
-import javax.media.rtp.*;
-import javax.media.rtp.rtcp.*;
/**
* Class used to compute stats concerning a MediaStream.
diff --git a/src/net/java/sip/communicator/service/neomedia/MediaTypeSrtpControl.java b/src/net/java/sip/communicator/service/neomedia/MediaTypeSrtpControl.java
index 2bd46da..0dd9a1e 100644
--- a/src/net/java/sip/communicator/service/neomedia/MediaTypeSrtpControl.java
+++ b/src/net/java/sip/communicator/service/neomedia/MediaTypeSrtpControl.java
@@ -9,12 +9,19 @@ package net.java.sip.communicator.service.neomedia;
/**
* Utility class to combine <tt>MediaType</tt> and <tt>SrtpControlType</tt> as a
* map key.
- *
+ *
* @author Ingo Bauersachs
*/
public class MediaTypeSrtpControl implements Comparable<MediaTypeSrtpControl>
{
+ /**
+ * The media type.
+ */
public final MediaType mediaType;
+
+ /**
+ * The SRTP control type.
+ */
public final SrtpControlType srtpControlType;
/**
@@ -49,7 +56,7 @@ public class MediaTypeSrtpControl implements Comparable<MediaTypeSrtpControl>
{
return getWeight() == o.getWeight() ?
0 :
- getWeight() < o.getWeight() ?
+ getWeight() < o.getWeight() ?
-1 : 1;
}
diff --git a/src/net/java/sip/communicator/service/neomedia/event/VolumeChangeEvent.java b/src/net/java/sip/communicator/service/neomedia/event/VolumeChangeEvent.java
index e5c1427..9347d3d 100644
--- a/src/net/java/sip/communicator/service/neomedia/event/VolumeChangeEvent.java
+++ b/src/net/java/sip/communicator/service/neomedia/event/VolumeChangeEvent.java
@@ -12,13 +12,18 @@ import net.java.sip.communicator.service.neomedia.*;
/**
* Represents the event fired when playback volume value has changed.
- *
+ *
* @author Damian Minkov
*/
public class VolumeChangeEvent
extends EventObject
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The volume level.
*/
private final float level;
diff --git a/src/net/java/sip/communicator/service/notification/NotificationService.java b/src/net/java/sip/communicator/service/notification/NotificationService.java
index 1515c0c..d594f28 100644
--- a/src/net/java/sip/communicator/service/notification/NotificationService.java
+++ b/src/net/java/sip/communicator/service/notification/NotificationService.java
@@ -23,12 +23,12 @@ public interface NotificationService
/**
* Registers a notification for the given <tt>eventType</tt> by specifying
* the action to be performed when a notification is fired for this event.
- *
+ *
* Unlike the other <tt>registerNotificationForEvent</tt>
* method, this one allows the user to specify its own
* <tt>NotificationAction</tt>, which would be used to handle notifications
* for the specified <tt>actionType</tt>.
- *
+ *
* @param eventType the name of the event (as defined by the plug-in that's
* registering it) that we are setting an action for.
* @param action the <tt>NotificationAction</tt>, which would be
@@ -41,15 +41,15 @@ public interface NotificationService
* Registers a default notification for the given <tt>eventType</tt> by
* specifying the action to be performed when a notification is fired for
* this event.
- *
+ *
* Unlike the other <tt>registerDefaultNotificationForEvent</tt> method,
* this one allows the user to specify its own <tt>NotificationAction</tt>,
* which would be used to handle notifications.
- *
+ *
* Default events are stored or executed at first run or when they are
* missing in the configuration. Also the registered default events are used
* when restoreDefaults is called.
- *
+ *
* @param eventType the name of the event (as defined by the plug-in that's
* registering it) that we are setting an action for.
* @param handler the <tt>NotificationActionHandler</tt>, which would be
@@ -63,7 +63,7 @@ public interface NotificationService
* specifying the type of the action to be performed when a notification is
* fired for this event, the <tt>actionDescriptor</tt> for sound and command
* actions and the <tt>defaultMessage</tt> for popup and log actions.
- *
+ *
* Actions registered by this method would be handled by some default
* <tt>NotificationHandler</tt>s, declared by the implementation.
* <p>
@@ -71,11 +71,11 @@ public interface NotificationService
* event. Setting the same <tt>actionType</tt> for the same
* <tt>eventType</tt> twice however would cause the first setting to be
* overridden.
- *
+ *
* Default events are stored or executed at first run or when
* they are missing in the configuration. Also the registered default events
* are used when restoreDefaults is called.
- *
+ *
* @param eventType the name of the event (as defined by the plug-in that's
* registering it) that we are setting an action for.
* @param actionType the type of the action that is to be executed when the
@@ -105,7 +105,7 @@ public interface NotificationService
* event. Setting the same <tt>actionType</tt> for the same
* <tt>eventType</tt> twice however would cause the first setting to be
* overridden.
- *
+ *
* @param eventType the name of the event (as defined by the plug-in that's
* registering it) that we are setting an action for.
* @param actionType the type of the action that is to be executed when the
@@ -124,7 +124,7 @@ public interface NotificationService
String defaultMessage);
/**
- * Deletes all registered events and actions
+ * Deletes all registered events and actions
* and registers and saves the default events as current.
*/
public void restoreDefaults();
@@ -136,7 +136,7 @@ public interface NotificationService
* <p>
* This method does nothing if the given <tt>eventType</tt> is not contained
* in the list of registered event types.
- *
+ *
* @param eventType the name of the event (as defined by the plugin that's
* registering it) to be removed.
*/
@@ -148,7 +148,7 @@ public interface NotificationService
* <p>
* This method does nothing if the given <tt>eventType</tt> or
* <tt>actionType</tt> are not contained in the list of registered types.
- *
+ *
* @param eventType the name of the event (as defined by the plugin that's
* registering it) for which we'll remove the notification.
* @param actionType the type of the action that is to be executed when the
@@ -163,7 +163,7 @@ public interface NotificationService
* notification service. Each line in the returned list consists of a
* String, representing the name of the event (as defined by the plugin that
* registered it).
- *
+ *
* @return an iterator over a list of all events registered in this
* notifications service
*/
@@ -175,7 +175,7 @@ public interface NotificationService
* <p>
* This method returns <b>null</b> if the given <tt>eventType</tt> or
* <tt>actionType</tt> are not contained in the list of registered types.
- *
+ *
* @param eventType the type of the event that we'd like to retrieve.
* @param actionType the type of the action that we'd like to retrieve a
* descriptor for.
@@ -219,9 +219,10 @@ public interface NotificationService
/**
* Gets at list of handler for the specified action type.
- *
+ *
* @param actionType the type for which the list of handlers should be
* retrieved or <tt>null</tt> if all handlers shall be returned.
+ * @return Iterable of NotificationHandler objects
*/
public Iterable<NotificationHandler> getActionHandlers(String actionType);
@@ -232,7 +233,7 @@ public interface NotificationService
* <p>
* This method does nothing if the given <tt>eventType</tt> is not contained
* in the list of registered event types.
- *
+ *
* @param eventType the type of the event that we'd like to fire a
* notification for.
* @param messageTitle the message title to use if and where appropriate
@@ -259,10 +260,10 @@ public interface NotificationService
* <p>
* This method does nothing if the given <tt>eventType</tt> is not contained
* in the list of registered event types.
- *
+ *
* @param eventType the type of the event that we'd like to fire a
* notification for.
- *
+ *
* @return An object referencing the notification. It may be used to stop a
* still running notification. Can be null if the eventType is
* unknown or the notification is not active.
@@ -273,19 +274,19 @@ public interface NotificationService
* Activates or deactivates all notification actions related to the
* specified <tt>eventType</tt>. This method does nothing if the given
* <tt>eventType</tt> is not contained in the list of registered event types.
- *
+ *
* @param eventType the name of the event, which actions should be activated
- * /deactivated.
+ * /deactivated.
* @param isActive indicates whether to activate or deactivate the actions
* related to the specified <tt>eventType</tt>.
*/
public void setActive(String eventType, boolean isActive);
-
+
/**
* Indicates whether or not actions for the specified <tt>eventType</tt>
* are activated. This method returns <code>false</code> if the given
* <tt>eventType</tt> is not contained in the list of registered event types.
- *
+ *
* @param eventType the name of the event (as defined by the plugin that's
* registered it) that we are checking.
* @return <code>true</code> if actions for the specified <tt>eventType</tt>
diff --git a/src/net/java/sip/communicator/service/packetlogging/PacketLoggingService.java b/src/net/java/sip/communicator/service/packetlogging/PacketLoggingService.java
index 736f128..537e644 100644
--- a/src/net/java/sip/communicator/service/packetlogging/PacketLoggingService.java
+++ b/src/net/java/sip/communicator/service/packetlogging/PacketLoggingService.java
@@ -21,9 +21,24 @@ public interface PacketLoggingService
*/
public enum ProtocolName
{
+ /**
+ * SIP protocol name.
+ */
SIP,
+
+ /**
+ * Jabber protocol name.
+ */
JABBER,
+
+ /**
+ * RTP protocol name.
+ */
RTP,
+
+ /**
+ * ICE protocol name.
+ */
ICE4J
}
@@ -32,7 +47,14 @@ public interface PacketLoggingService
*/
public enum TransportName
{
+ /**
+ * UDP transport name.
+ */
UDP,
+
+ /**
+ * TCP transport name.
+ */
TCP
}
@@ -85,7 +107,7 @@ public interface PacketLoggingService
* @param sender are we the sender of the packet or not.
* @param packetContent the packet content.
* @param packetOffset the packet content offset.
- * @param packetLength the packet content length.
+ * @param packetLength the packet content length.
*/
public void logPacket(
ProtocolName protocol,
diff --git a/src/net/java/sip/communicator/service/protocol/AbstractOperationSetServerStoredAccountInfo.java b/src/net/java/sip/communicator/service/protocol/AbstractOperationSetServerStoredAccountInfo.java
index d457a43..a1dad66 100644
--- a/src/net/java/sip/communicator/service/protocol/AbstractOperationSetServerStoredAccountInfo.java
+++ b/src/net/java/sip/communicator/service/protocol/AbstractOperationSetServerStoredAccountInfo.java
@@ -69,6 +69,7 @@ public abstract class AbstractOperationSetServerStoredAccountInfo
* Notify all listeners of the corresponding account detail
* change event.
*
+ * @param source the protocol provider service source
* @param eventID the int ID of the event to dispatch
* @param oldValue the value that the changed property had before the change
* occurred.
diff --git a/src/net/java/sip/communicator/service/protocol/AccountID.java b/src/net/java/sip/communicator/service/protocol/AccountID.java
index 6762d14..026f1f5 100644
--- a/src/net/java/sip/communicator/service/protocol/AccountID.java
+++ b/src/net/java/sip/communicator/service/protocol/AccountID.java
@@ -241,11 +241,24 @@ public abstract class AccountID
return new HashMap<String, String>(accountProperties);
}
+ /**
+ * Returns the specific account property.
+ *
+ * @param key property key
+ * @return property value corresponding to property key
+ */
public Object getAccountProperty(Object key)
{
return accountProperties.get(key);
}
+ /**
+ * Returns the specific account property.
+ *
+ * @param key property key
+ * @param defaultValue default value if the property does not exist
+ * @return property value corresponding to property key
+ */
public boolean getAccountPropertyBoolean(Object key, boolean defaultValue)
{
String value = getAccountPropertyString(key);
diff --git a/src/net/java/sip/communicator/service/protocol/TransportProtocol.java b/src/net/java/sip/communicator/service/protocol/TransportProtocol.java
index c8c9671..addda70 100644
--- a/src/net/java/sip/communicator/service/protocol/TransportProtocol.java
+++ b/src/net/java/sip/communicator/service/protocol/TransportProtocol.java
@@ -34,6 +34,14 @@ public enum TransportProtocol
*/
TLS;
+ /**
+ * Parses a <tt>String</tt> and returns the appropriate
+ * <tt>TransportProtocol</tt>.
+ * @param transportProtocol string
+ * @return appropriate <tt>TransportProtocol</tt>
+ * @throws IllegalArgumentException if string is not a transport protocol
+ * valid name
+ */
public static TransportProtocol parse(String transportProtocol)
throws IllegalArgumentException
{
diff --git a/src/net/java/sip/communicator/service/protocol/event/DTMFReceivedEvent.java b/src/net/java/sip/communicator/service/protocol/event/DTMFReceivedEvent.java
index 3fb27d4..319eac6 100644
--- a/src/net/java/sip/communicator/service/protocol/event/DTMFReceivedEvent.java
+++ b/src/net/java/sip/communicator/service/protocol/event/DTMFReceivedEvent.java
@@ -39,6 +39,8 @@ public class DTMFReceivedEvent
* contact.
*
* @param source the <tt>Message</tt> whose reception this event represents.
+ * @param value dmtf tone value
+ * @param duration duration of the DTMF tone
*/
public DTMFReceivedEvent(ProtocolProviderService source,
DTMFTone value,
diff --git a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java
index c5a5e7e..0ffc91b 100644
--- a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java
+++ b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveredEvent.java
@@ -34,6 +34,12 @@ public class MessageDeliveredEvent
*/
private final long timestamp;
+ /**
+ * Constructor.
+ *
+ * @param source message source
+ * @param to the "to" contact
+ */
public MessageDeliveredEvent(Message source, Contact to)
{
this(source, to, System.currentTimeMillis());
diff --git a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java
index 5d2af38..cba4101 100644
--- a/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java
+++ b/src/net/java/sip/communicator/service/protocol/event/MessageDeliveryFailedEvent.java
@@ -74,6 +74,13 @@ public class MessageDeliveryFailedEvent
*/
private final long timestamp;
+ /**
+ * Constructor.
+ *
+ * @param source the message
+ * @param to the "to" contact
+ * @param errorCode error code
+ */
public MessageDeliveryFailedEvent(Message source,
Contact to,
int errorCode)
diff --git a/src/net/java/sip/communicator/service/protocol/event/PresenceStatusListener.java b/src/net/java/sip/communicator/service/protocol/event/PresenceStatusListener.java
index 64fdbfa..82a6ba4 100644
--- a/src/net/java/sip/communicator/service/protocol/event/PresenceStatusListener.java
+++ b/src/net/java/sip/communicator/service/protocol/event/PresenceStatusListener.java
@@ -15,6 +15,9 @@ import java.util.*;
public interface PresenceStatusListener
extends EventListener
{
+ /**
+ * Callback the the contact presence status has changed.
+ */
public void contactPresenceStatusChanged();
}
diff --git a/src/net/java/sip/communicator/service/protocol/event/ServerStoredDetailsChangeEvent.java b/src/net/java/sip/communicator/service/protocol/event/ServerStoredDetailsChangeEvent.java
index 51a24f5..db2d7e9 100644
--- a/src/net/java/sip/communicator/service/protocol/event/ServerStoredDetailsChangeEvent.java
+++ b/src/net/java/sip/communicator/service/protocol/event/ServerStoredDetailsChangeEvent.java
@@ -14,6 +14,11 @@ public class ServerStoredDetailsChangeEvent
extends EventObject
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Indicates that the ServerStoredDetailsChangeEvent instance was triggered
* by adding a new detail.
*/
@@ -52,6 +57,9 @@ public class ServerStoredDetailsChangeEvent
* Constructs a ServerStoredDetailsChangeEvent.
*
* @param source The object on which the Event initially occurred.
+ * @param eventID the event ID
+ * @param oldValue old value
+ * @param newValue new value
* @throws IllegalArgumentException if source is null.
*/
public ServerStoredDetailsChangeEvent(
@@ -97,7 +105,9 @@ public class ServerStoredDetailsChangeEvent
}
/**
- * The event type id.
+ * Returns the event type id.
+ *
+ * @return the event ID
*/
public int getEventID()
{
diff --git a/src/net/java/sip/communicator/service/protocol/jabberconstants/JabberStatusEnum.java b/src/net/java/sip/communicator/service/protocol/jabberconstants/JabberStatusEnum.java
index 0f4d8e2..7c3c22f 100644
--- a/src/net/java/sip/communicator/service/protocol/jabberconstants/JabberStatusEnum.java
+++ b/src/net/java/sip/communicator/service/protocol/jabberconstants/JabberStatusEnum.java
@@ -266,6 +266,13 @@ public class JabberStatusEnum
return loadIcon(imagePath, JabberStatusEnum.class);
}
+ /**
+ * Loads the icon.
+ *
+ * @param imagePath path of the image
+ * @param clazz class name
+ * @return the image bytes
+ */
public static byte[] loadIcon(String imagePath, Class<?> clazz)
{
InputStream is = getResourceAsStream(imagePath, clazz);
diff --git a/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java b/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java
index f2ebf94..f64aace 100644
--- a/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java
+++ b/src/net/java/sip/communicator/service/protocol/media/DynamicPayloadTypeRegistry.java
@@ -55,6 +55,8 @@ public class DynamicPayloadTypeRegistry
/**
* Sets the override payload type numbers.
+ *
+ * @param mappings the override payload-type mappings.
*/
public void setOverridePayloadTypeMappings(Map<Byte, String> mappings)
{
diff --git a/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java b/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java
index c16cb73..49494b0 100644
--- a/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java
+++ b/src/net/java/sip/communicator/service/sysactivity/event/SystemActivityEvent.java
@@ -17,6 +17,11 @@ public class SystemActivityEvent
extends EventObject
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Notify that computers is going to sleep.
*/
public static final int EVENT_SLEEP = 0;
@@ -102,7 +107,7 @@ public class SystemActivityEvent
/**
* Returns the type of the event.
- * @return
+ * @return the event ID
*/
public int getEventID()
{
diff --git a/src/net/java/sip/communicator/util/GuiUtils.java b/src/net/java/sip/communicator/util/GuiUtils.java
index c1b5c6e..c58cf4b 100644
--- a/src/net/java/sip/communicator/util/GuiUtils.java
+++ b/src/net/java/sip/communicator/util/GuiUtils.java
@@ -18,7 +18,7 @@ import javax.swing.*;
/**
* The <tt>StringUtils</tt> class is used through this ui implementation for
* some special operations with strings.
- *
+ *
* @author Yana Stamcheva
* @author Lyubomir Marinov
* @author Adam Netocny
@@ -202,7 +202,7 @@ public class GuiUtils
* the first date is before the second one and > 0 if the first date is after
* the second one.
* @param date1 the first date to compare
- * @param date2 the second date to compare with
+ * @param date2 the second date to compare with
* @return Returns 0 if the two dates are equals, a value < 0 if
* the first date is before the second one and > 0 if the first date is after
* the second one
@@ -218,7 +218,7 @@ public class GuiUtils
* the first date is before the second one and > 0 if the first date is after
* the second one.
* @param date1 the first date to compare
- * @param date2 the second date to compare with
+ * @param date2 the second date to compare with
* @return Returns 0 if the two dates are equals, a value < 0 if
* the first date is before the second one and > 0 if the first date is after
* the second one
@@ -234,7 +234,7 @@ public class GuiUtils
* the first date is before the second one and > 0 if the first date is
* after the second one.
* @param date1 the first date to compare
- * @param date2 the second date to compare with
+ * @param date2 the second date to compare with
* @return Returns 0 if the two dates are equals, a value < 0 if
* the first date is before the second one and > 0 if the first date is
* after the second one
@@ -323,7 +323,7 @@ public class GuiUtils
/**
* Formats the time for the given date. The result format is the following:
- * [Hour]:[Minute]:[Second]. For example: 12:25:30.
+ * [Hour]:[Minute]:[Second]. For example: 12:25:30.
* @param date the date to format
* @return the formatted hour string
*/
@@ -334,7 +334,7 @@ public class GuiUtils
/**
* Formats the time for the given date. The result format is the following:
- * [Hour]:[Minute]:[Second]. For example: 12:25:30.
+ * [Hour]:[Minute]:[Second]. For example: 12:25:30.
* @param time the date to format
* @return the formatted hour string
*/
diff --git a/src/net/java/sip/communicator/util/UtilActivator.java b/src/net/java/sip/communicator/util/UtilActivator.java
index 238f76e..27bb176 100644
--- a/src/net/java/sip/communicator/util/UtilActivator.java
+++ b/src/net/java/sip/communicator/util/UtilActivator.java
@@ -23,11 +23,11 @@ import org.osgi.framework.*;
* exception handler. It doesn't export any services and neither it runs any
* initialization - all it does is call
* <tt>Thread.setUncaughtExceptionHandler()</tt>
- *
+ *
* @author Emil Ivov
*/
public class UtilActivator
- implements BundleActivator,
+ implements BundleActivator,
Thread.UncaughtExceptionHandler
{
/**
@@ -106,6 +106,11 @@ public class UtilActivator
{
}
+ /**
+ * Returns the <tt>ConfigurationService</tt> currently registered.
+ *
+ * @return the <tt>ConfigurationService</tt>
+ */
public static ConfigurationService getConfigurationService()
{
if (configurationService == null)
@@ -118,6 +123,11 @@ public class UtilActivator
return configurationService;
}
+ /**
+ * Returns the <tt>KeybindingsService</tt> currently registered.
+ *
+ * @return the <tt>KeybindingsService</tt>
+ */
public static KeybindingsService getKeybindingsService()
{
if (keybindingsService == null)
@@ -132,7 +142,7 @@ public class UtilActivator
/**
* Returns the service giving access to all application resources.
- *
+ *
* @return the service giving access to all application resources.
*/
public static ResourceManagementService getResources()
@@ -163,7 +173,7 @@ public class UtilActivator
/**
* Returns the image corresponding to the given <tt>imageID</tt>.
- *
+ *
* @param imageID the identifier of the image
* @return the image corresponding to the given <tt>imageID</tt>
*/
diff --git a/src/net/java/sip/communicator/util/dns/ConfigurableDnssecResolver.java b/src/net/java/sip/communicator/util/dns/ConfigurableDnssecResolver.java
index 4f0adee..77aa378 100644
--- a/src/net/java/sip/communicator/util/dns/ConfigurableDnssecResolver.java
+++ b/src/net/java/sip/communicator/util/dns/ConfigurableDnssecResolver.java
@@ -23,7 +23,7 @@ import org.xbill.DNS.*;
/**
* Resolver that wraps a DNSSEC capable resolver and handles validation
* failures according to the user's settings.
- *
+ *
* @author Ingo Bauersachs
*/
public class ConfigurableDnssecResolver
@@ -82,7 +82,7 @@ public class ConfigurableDnssecResolver
/**
* Inspects a DNS answer message and handles validation results according to
* the user's preferences.
- *
+ *
* @throws DnssecRuntimeException when the validation failed and the user
* did not choose to ignore it.
*/
@@ -210,6 +210,11 @@ public class ConfigurableDnssecResolver
*/
private class DnssecDialog extends SIPCommDialog implements ActionListener
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
//UI controls
private JPanel pnlAdvanced;
private JPanel pnlStandard;
diff --git a/src/net/java/sip/communicator/util/dns/DnsUtilActivator.java b/src/net/java/sip/communicator/util/dns/DnsUtilActivator.java
index 58825b1..4998353 100644
--- a/src/net/java/sip/communicator/util/dns/DnsUtilActivator.java
+++ b/src/net/java/sip/communicator/util/dns/DnsUtilActivator.java
@@ -16,12 +16,12 @@ import org.xbill.DNS.*;
/**
* The DNS Util activator registers the DNSSEC resolver if enabled.
- *
+ *
* @author Emil Ivov
* @author Ingo Bauersachs
*/
public class DnsUtilActivator
- implements BundleActivator
+ implements BundleActivator
{
/**
* The name of the property that enables or disables the DNSSEC resolver
@@ -31,7 +31,7 @@ public class DnsUtilActivator
= "net.java.sip.communicator.util.dns.DNSSEC_ENABLED";
/**
- * Default value of {@link PNAME_DNSSEC_RESOLVER_ENABLED}.
+ * Default value of @see PNAME_DNSSEC_RESOLVER_ENABLED.
*/
public static final boolean PDEFAULT_DNSSEC_RESOLVER_ENABLED = false;
@@ -165,7 +165,7 @@ public class DnsUtilActivator
/**
* Returns the service giving access to all application resources.
- *
+ *
* @return the service giving access to all application resources.
*/
public static ResourceManagementService getResources()
diff --git a/src/net/java/sip/communicator/util/dns/DnssecException.java b/src/net/java/sip/communicator/util/dns/DnssecException.java
index d47496d..8457b2f 100644
--- a/src/net/java/sip/communicator/util/dns/DnssecException.java
+++ b/src/net/java/sip/communicator/util/dns/DnssecException.java
@@ -8,13 +8,18 @@ package net.java.sip.communicator.util.dns;
/**
* Checked DNSSEC exception for code that knows how to deal with it.
- *
+ *
* @author Ingo Bauersachs
*/
public class DnssecException
extends Exception
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates a new instance of this class.
* @param e the DNSSEC runtime exception to encapsulate.
*/
diff --git a/src/net/java/sip/communicator/util/dns/DnssecRuntimeException.java b/src/net/java/sip/communicator/util/dns/DnssecRuntimeException.java
index df91d23..0df45ac 100644
--- a/src/net/java/sip/communicator/util/dns/DnssecRuntimeException.java
+++ b/src/net/java/sip/communicator/util/dns/DnssecRuntimeException.java
@@ -13,13 +13,18 @@ import java.net.UnknownHostException;
* This is not a checked exception or a derivative of
* {@link UnknownHostException} so that existing code does not retry the lookup
* (potentially in a loop).
- *
+ *
* @author Ingo Bauersachs
*/
public class DnssecRuntimeException
extends RuntimeException
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates a new instance of this class.
* @param message The reason why this exception is thrown.
*/
diff --git a/src/net/java/sip/communicator/util/dns/UnboundException.java b/src/net/java/sip/communicator/util/dns/UnboundException.java
index 923d22d..79e35ab 100644
--- a/src/net/java/sip/communicator/util/dns/UnboundException.java
+++ b/src/net/java/sip/communicator/util/dns/UnboundException.java
@@ -8,15 +8,20 @@ package net.java.sip.communicator.util.dns;
/**
* Exception that is being thrown when native Unbound code resulted in an error.
- *
+ *
* @author Ingo Bauersachs
*/
public class UnboundException
extends Exception
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates a new instance of this class.
- *
+ *
* @param message the detail message.
*/
public UnboundException(String message)
diff --git a/src/net/java/sip/communicator/util/launchutils/AEGetURLEventHandler.java b/src/net/java/sip/communicator/util/launchutils/AEGetURLEventHandler.java
index 2828199..db4d2e8 100644
--- a/src/net/java/sip/communicator/util/launchutils/AEGetURLEventHandler.java
+++ b/src/net/java/sip/communicator/util/launchutils/AEGetURLEventHandler.java
@@ -22,6 +22,11 @@ public class AEGetURLEventHandler
*/
public interface IAEGetURLListener
{
+ /**
+ * Handle the URL event.
+ *
+ * @param url the URL
+ */
void handleAEGetURLEvent (String url);
}
diff --git a/src/net/java/sip/communicator/util/swing/EmphasizedLabel.java b/src/net/java/sip/communicator/util/swing/EmphasizedLabel.java
index 7a203e0..b63af61 100644
--- a/src/net/java/sip/communicator/util/swing/EmphasizedLabel.java
+++ b/src/net/java/sip/communicator/util/swing/EmphasizedLabel.java
@@ -18,6 +18,11 @@ import javax.swing.*;
public class EmphasizedLabel
extends JLabel
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private boolean fUseEmphasisColor;
/**
diff --git a/src/net/java/sip/communicator/util/swing/FileDragLabel.java b/src/net/java/sip/communicator/util/swing/FileDragLabel.java
index 419987b..cd63eff 100644
--- a/src/net/java/sip/communicator/util/swing/FileDragLabel.java
+++ b/src/net/java/sip/communicator/util/swing/FileDragLabel.java
@@ -28,6 +28,11 @@ public class FileDragLabel
DragSourceListener,
DragGestureListener
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private static final Logger logger = Logger.getLogger(FileDragLabel.class);
private final DragSource dragSource = DragSource.getDefaultDragSource();
@@ -143,6 +148,11 @@ public class FileDragLabel
extends Vector<File>
implements Transferable
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
final static int FILE = 0;
final static int STRING = 1;
final static int PLAIN = 2;
diff --git a/src/net/java/sip/communicator/util/swing/FramedImage.java b/src/net/java/sip/communicator/util/swing/FramedImage.java
index a5c662f..f1945ac 100644
--- a/src/net/java/sip/communicator/util/swing/FramedImage.java
+++ b/src/net/java/sip/communicator/util/swing/FramedImage.java
@@ -15,7 +15,7 @@ import net.java.sip.communicator.util.skin.*;
/**
* A custom component, used to show images in a frame.
- *
+ *
* @author Yana Stamcheva
* @author Adam Netocny
*/
@@ -24,6 +24,11 @@ public class FramedImage
implements Skinnable
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The frame image.
*/
private Image frameImage;
@@ -46,7 +51,7 @@ public class FramedImage
/**
* Creates a FramedImage by specifying the width and the height of the
* label. These are used to paint the image frame in the correct bounds.
- *
+ *
* @param imageIcon the icon to show within the frame
* @param width the width of the frame
* @param height the height of the frame
@@ -66,7 +71,7 @@ public class FramedImage
/**
* Creates a FramedImage by specifying the width and the height of the frame.
- *
+ *
* @param width the width of the frame
* @param height the height of the frame
*/
@@ -77,7 +82,7 @@ public class FramedImage
/**
* Sets the image to display in the frame.
- *
+ *
* @param image the image to display in the frame
*/
public void setImageIcon(byte[] image)
diff --git a/src/net/java/sip/communicator/util/swing/FramedImageWithMenu.java b/src/net/java/sip/communicator/util/swing/FramedImageWithMenu.java
index 636a6c2..4c64201 100644
--- a/src/net/java/sip/communicator/util/swing/FramedImageWithMenu.java
+++ b/src/net/java/sip/communicator/util/swing/FramedImageWithMenu.java
@@ -16,8 +16,8 @@ import org.jvnet.lafwidget.animation.*;
/**
* A custom component, used to show images in a frame. A rollover for the
- * content image and optional menu in dialog.
- *
+ * content image and optional menu in dialog.
+ *
* @author Damien Roth
*/
public class FramedImageWithMenu
@@ -25,6 +25,11 @@ public class FramedImageWithMenu
implements MouseListener, PopupMenuListener
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The dialog containing the menu with actions.
*/
private JPopupMenu popupMenu;
@@ -90,31 +95,31 @@ public class FramedImageWithMenu
// Intercept the action to validate the user icon and not the default
super.setImageIcon(imageIcon.getImage());
this.isDefaultImage = false;
-
+
this.currentImage = imageIcon.getImage();
}
-
+
/**
* Returns the current image with no rounded corners. Only return the user
* image and not the default image.
- *
+ *
* @return the current image - null if it's the default image
*/
public Image getAvatar()
{
return (!this.isDefaultImage) ? this.currentImage : this.getImage();
}
-
+
@Override
public void paintComponent(Graphics g)
{
super.paintComponent(g);
-
+
if (drawOverlay)
{
g = g.create();
AntialiasingManager.activateAntialiasing(g);
-
+
try
{
// Paint a roll over fade out.
@@ -128,14 +133,14 @@ public class FramedImageWithMenu
}
else
visibility = 0.5f;
-
+
// Draw black overlay
g.setColor(new Color(0.0f, 0.0f, 0.0f, visibility));
g.fillRoundRect(1, 1, width - 2, height - 2, 10, 10);
-
+
// Draw arrow
g.setColor(Color.WHITE);
-
+
int[] arrowX = new int[] {
width - 17,
width - 7,
@@ -157,7 +162,7 @@ public class FramedImageWithMenu
/**
* Show the avatar dialog as a glasspane of the mainframe
- *
+ *
* @param show show dialogs if sets to TRUE - hide otherwise
*/
private void showDialog(MouseEvent e, boolean show)
@@ -166,7 +171,7 @@ public class FramedImageWithMenu
{
return;
}
-
+
if (show)
{
Point imageLoc = this.getLocationOnScreen();
@@ -189,11 +194,11 @@ public class FramedImageWithMenu
{
if (this.drawOverlay)
return;
-
+
this.drawOverlay = true;
-
+
FadeTracker fadeTracker = FadeTracker.getInstance();
-
+
fadeTracker.trackFadeIn(FadeKind.ROLLOVER,
FramedImageWithMenu.this,
true,
@@ -209,7 +214,7 @@ public class FramedImageWithMenu
this.repaint();
}
}
-
+
public void mouseReleased(MouseEvent e)
{
showDialog(e, !popupMenu.isVisible());
diff --git a/src/net/java/sip/communicator/util/swing/ImageCanvas.java b/src/net/java/sip/communicator/util/swing/ImageCanvas.java
index 8248c89..a8dbd63 100644
--- a/src/net/java/sip/communicator/util/swing/ImageCanvas.java
+++ b/src/net/java/sip/communicator/util/swing/ImageCanvas.java
@@ -16,8 +16,18 @@ import javax.swing.*;
public class ImageCanvas
extends TransparentPanel
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private ImageIcon icon;
+ /**
+ * Constructor.
+ *
+ * @param image the image for the canvas
+ */
public ImageCanvas(Image image)
{
setImage(image);
diff --git a/src/net/java/sip/communicator/util/swing/LowPriorityEventQueue.java b/src/net/java/sip/communicator/util/swing/LowPriorityEventQueue.java
index cb6950c..d4bf68f 100644
--- a/src/net/java/sip/communicator/util/swing/LowPriorityEventQueue.java
+++ b/src/net/java/sip/communicator/util/swing/LowPriorityEventQueue.java
@@ -40,6 +40,11 @@ public class LowPriorityEventQueue
*/
private static class LowPriorityInvocationEvent extends InvocationEvent
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public LowPriorityInvocationEvent(Object source, Runnable runnable)
{
super(source, PaintEvent.UPDATE, runnable, null, false);
diff --git a/src/net/java/sip/communicator/util/swing/MasterPasswordInputDialog.java b/src/net/java/sip/communicator/util/swing/MasterPasswordInputDialog.java
index 75e1e8e..a33c377 100644
--- a/src/net/java/sip/communicator/util/swing/MasterPasswordInputDialog.java
+++ b/src/net/java/sip/communicator/util/swing/MasterPasswordInputDialog.java
@@ -1,6 +1,6 @@
/*
* Jitsi, the OpenSource Java VoIP and Instant Messaging client.
- *
+ *
* Distributable under LGPL license. See terms of license at gnu.org.
*/
package net.java.sip.communicator.util.swing;
@@ -15,7 +15,7 @@ import net.java.sip.communicator.util.*;
/**
* The master password input dialog.
- *
+ *
* @author Dmitri Melnikov
*/
public class MasterPasswordInputDialog
@@ -24,6 +24,11 @@ public class MasterPasswordInputDialog
KeyListener
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Instance of this class.
*/
private static MasterPasswordInputDialog dialog;
@@ -140,7 +145,7 @@ public class MasterPasswordInputDialog
/**
* Removes and adds again all the components to the main panel.
- *
+ *
* @param includeErrorMsg when true also includes an error text component
*/
private void rebuildMainPanel(boolean includeErrorMsg)
@@ -156,9 +161,9 @@ public class MasterPasswordInputDialog
/**
* Shows an input dialog to the user to obtain the master password.
- *
+ *
* @param prevSuccess <tt>true</tt> if any previous call returned a correct
- * master password and there is no need to show an extra "verification
+ * master password and there is no need to show an extra "verification
* failed" message
* @return the master password obtained from the user or <tt>null</tt> if
* none was provided
@@ -180,8 +185,8 @@ public class MasterPasswordInputDialog
/**
* OK button click event handler. Retrieves the password and hides the
* dialog.
- *
- * @param e action event
+ *
+ * @param e action event
*/
public void actionPerformed(ActionEvent e)
{
@@ -221,7 +226,7 @@ public class MasterPasswordInputDialog
/**
* Disables OK button if the password input field is empty.
- *
+ *
* @param event key event
*/
public void keyReleased(KeyEvent event)
@@ -237,7 +242,7 @@ public class MasterPasswordInputDialog
/**
* Not overriding.
- *
+ *
* @param arg0 key event
*/
public void keyPressed(KeyEvent arg0)
@@ -246,7 +251,7 @@ public class MasterPasswordInputDialog
/**
* Not overriding.
- *
+ *
* @param arg0 key event
*/
public void keyTyped(KeyEvent arg0)
diff --git a/src/net/java/sip/communicator/util/swing/PopupNotificationPanel.java b/src/net/java/sip/communicator/util/swing/PopupNotificationPanel.java
index a5ac2cd..7ca04be 100644
--- a/src/net/java/sip/communicator/util/swing/PopupNotificationPanel.java
+++ b/src/net/java/sip/communicator/util/swing/PopupNotificationPanel.java
@@ -25,6 +25,11 @@ public class PopupNotificationPanel
implements Skinnable
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Logger for this class.
**/
private final Logger logger = Logger.getLogger(SIPCommFrame.class);
@@ -107,7 +112,7 @@ public class PopupNotificationPanel
/**
* Creates a new notification panel with <tt>notificationContent</tt> as
* the component to put in that panel
- *
+ *
* @param titleString The title of the popup
* @param notificationContent content to add in the new created
* <tt>PopupNotificationPanel</tt>
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommButton.java b/src/net/java/sip/communicator/util/swing/SIPCommButton.java
index bab5626..cf37c6b 100755
--- a/src/net/java/sip/communicator/util/swing/SIPCommButton.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommButton.java
@@ -23,6 +23,11 @@ import org.jvnet.lafwidget.animation.*;
public class SIPCommButton
extends JButton
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private Image bgImage;
private Image pressedImage;
@@ -294,7 +299,7 @@ public class SIPCommButton
/**
* Sets the rollover background image of this button.
*
- * @param rolloverIconImage the rollover background image of this button.
+ * @param rolloverImage the rollover background image of this button.
*/
public void setRolloverImage(Image rolloverImage)
{
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommDialog.java b/src/net/java/sip/communicator/util/swing/SIPCommDialog.java
index e1b0128..27102f8 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommDialog.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommDialog.java
@@ -22,6 +22,11 @@ public class SIPCommDialog
extends JDialog
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The <tt>Logger</tt> used by the <tt>SIPCommDialog</tt> class and its
* instances for logging output.
*/
@@ -165,6 +170,11 @@ public class SIPCommDialog
*/
private class CloseAction extends UIAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public void actionPerformed(ActionEvent e)
{
if(isSaveSizeAndLocation)
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommFrame.java b/src/net/java/sip/communicator/util/swing/SIPCommFrame.java
index ec719f7..e004204 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommFrame.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommFrame.java
@@ -24,7 +24,7 @@ import net.java.sip.communicator.util.*;
/**
* A custom frame that remembers its size and location and could have a
* semi-transparent background.
- *
+ *
* @author Yana Stamcheva
* @author Lyubomir Marinov
* @author Adam Netocny
@@ -34,6 +34,11 @@ public class SIPCommFrame
implements Observer
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Property that disables the automatic resizing and positioning when a
* window's top edge is outside the visible area of the screen.
* <p>
@@ -141,7 +146,9 @@ public class SIPCommFrame
{
Method m = Window.class.getMethod("setIconImages", List.class);
List<Image> logos = new ArrayList<Image>(6)
- {{
+ {
+ private static final long serialVersionUID = 0L;
+ {
add(UtilActivator
.getImage("service.gui.SIP_COMMUNICATOR_LOGO"));
add(UtilActivator
@@ -154,7 +161,8 @@ public class SIPCommFrame
.getImage("service.gui.SIP_COMMUNICATOR_LOGO_64x64"));
add(UtilActivator
.getImage("service.gui.SIP_COMMUNICATOR_LOGO_128x128"));
- }};
+ }
+ };
m.invoke(this, logos);
// In order to have the same icon when using option panes
m.invoke(JOptionPane.getRootFrame(), logos);
@@ -190,6 +198,11 @@ public class SIPCommFrame
private class CloseAction
extends UIAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public void actionPerformed(ActionEvent e)
{
if (isSaveSizeAndLocation)
@@ -204,6 +217,11 @@ public class SIPCommFrame
private class CloseEscAction
extends UIAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public void actionPerformed(ActionEvent e)
{
if (isSaveSizeAndLocation)
@@ -216,7 +234,7 @@ public class SIPCommFrame
* Sets the input map to utilize a given category of keybindings. The frame
* is updated to reflect the new bindings when they change. This replaces
* any previous bindings that have been added.
- *
+ *
* @param category set of keybindings to be utilized
*/
protected void setKeybindingInput(KeybindingSet.Category category)
@@ -245,7 +263,7 @@ public class SIPCommFrame
/**
* Bindings the string representation for a keybinding to the action that
* will be executed.
- *
+ *
* @param binding string representation of action used by input map
* @param action the action which will be executed when user presses the
* given key combination
@@ -601,6 +619,11 @@ public class SIPCommFrame
public static class MainContentPane
extends JPanel
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private boolean isColorBgEnabled;
private boolean isImageBgEnabled;
@@ -792,6 +815,6 @@ public class SIPCommFrame
*/
protected void close(boolean isEscaped)
{
-
+
}
}
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommHTMLEditorKit.java b/src/net/java/sip/communicator/util/swing/SIPCommHTMLEditorKit.java
index b0a926b..944ab7b 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommHTMLEditorKit.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommHTMLEditorKit.java
@@ -17,11 +17,17 @@ import javax.swing.text.html.ParagraphView;
/**
* The <tt>SIPCommHTMLEditorKit</tt> is an <tt>HTMLEditorKit</tt> which uses
* an extended <tt>ParagraphView</tt>.
- *
+ *
* @author Yana Stamcheva
*/
public class SIPCommHTMLEditorKit extends HTMLEditorKit
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+
private final JComponent container;
/**
@@ -129,7 +135,7 @@ public class SIPCommHTMLEditorKit extends HTMLEditorKit
* @param axis may be either View.X_AXIS or View.Y_AXIS
* @return the span the view would like to be rendered into >= 0.
* Typically the view is told to render into the span
- * that is returned, although there is no guarantee.
+ * that is returned, although there is no guarantee.
* The parent may choose to resize or break the view.
* @exception IllegalArgumentException for an invalid axis
*/
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommMenuBar.java b/src/net/java/sip/communicator/util/swing/SIPCommMenuBar.java
index d9bf3e1..1afce04 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommMenuBar.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommMenuBar.java
@@ -14,7 +14,7 @@ import net.java.sip.communicator.util.swing.plaf.*;
* The SIPCommMenuBar is a <tt>JMenuBar</tt> without border decoration that can
* be used as a container for other components, like selector boxes that won't
* need a menu decoration.
- *
+ *
* @author Yana Stamcheva
* @author Adam Netocny
*/
@@ -23,6 +23,11 @@ public class SIPCommMenuBar
implements Skinnable
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Creates an instance of <tt>SIPCommMenuBar</tt>.
*/
public SIPCommMenuBar()
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommPopupMenu.java b/src/net/java/sip/communicator/util/swing/SIPCommPopupMenu.java
index 9cee714..96abbf9 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommPopupMenu.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommPopupMenu.java
@@ -19,6 +19,14 @@ import javax.swing.*;
public class SIPCommPopupMenu
extends JPopupMenu
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
+ * Constructor.
+ */
public SIPCommPopupMenu()
{
// Hides the popup menu when the parent window loses focus.
@@ -45,7 +53,7 @@ public class SIPCommPopupMenu
parentWindow.addWindowListener(new WindowAdapter()
{
- public void windowDeactivated(WindowEvent e)
+ public void windowDeactivated(WindowEvent e)
{
if (SIPCommPopupMenu.this != null
&& SIPCommPopupMenu.this.isVisible())
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommTabbedPane.java b/src/net/java/sip/communicator/util/swing/SIPCommTabbedPane.java
index bb82394..cad2c10 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommTabbedPane.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommTabbedPane.java
@@ -37,6 +37,11 @@ public class SIPCommTabbedPane
implements ChangeListener,
Skinnable
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private int overTabIndex = -1;
private int lastSelectedIndex;
@@ -168,6 +173,11 @@ public class SIPCommTabbedPane
final JFrame frame = new SIPCommFrame()
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
protected void close(boolean isEscaped)
{
if (isEscaped)
@@ -480,7 +490,7 @@ public class SIPCommTabbedPane
{
this.setSelectedIndex(lastSelectedIndex);
}
-
+
super.removeTabAt(index);
}
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommTextButton.java b/src/net/java/sip/communicator/util/swing/SIPCommTextButton.java
index 5b2401e..8259d12 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommTextButton.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommTextButton.java
@@ -24,6 +24,11 @@ import org.jvnet.lafwidget.animation.*;
*/
public class SIPCommTextButton extends JButton
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private final float[] borderColor
= Color.DARK_GRAY.getRGBComponents(null);
diff --git a/src/net/java/sip/communicator/util/swing/SIPCommToggleButton.java b/src/net/java/sip/communicator/util/swing/SIPCommToggleButton.java
index cfe2c24..c8d6544 100644
--- a/src/net/java/sip/communicator/util/swing/SIPCommToggleButton.java
+++ b/src/net/java/sip/communicator/util/swing/SIPCommToggleButton.java
@@ -24,6 +24,11 @@ public class SIPCommToggleButton
extends JToggleButton
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The background image shown in normal button state.
*/
private Image bgImage;
@@ -99,7 +104,7 @@ public class SIPCommToggleButton
* @param rolloverImage the roll over image
* @param iconImage the icon
* @param pressedImage the image used to paint the pressed state
- * @param pressedIconImage the icon image in a pressed state
+ * @param pressedIconImage the icon image in a pressed state
*/
public SIPCommToggleButton( Image bgImage,
Image rolloverImage,
diff --git a/src/net/java/sip/communicator/util/swing/SipCommFileChooserImpl.java b/src/net/java/sip/communicator/util/swing/SipCommFileChooserImpl.java
index 21a90bc..7a2fbc5 100644
--- a/src/net/java/sip/communicator/util/swing/SipCommFileChooserImpl.java
+++ b/src/net/java/sip/communicator/util/swing/SipCommFileChooserImpl.java
@@ -15,18 +15,23 @@ import javax.swing.*;
*
* @author Valentin Martinet
*/
-public class SipCommFileChooserImpl
+public class SipCommFileChooserImpl
extends JFileChooser
implements SipCommFileChooser
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Parent component of this dialog (JFrame, Frame, etc)
*/
private Component parent;
/**
* Constructor
- *
+ *
* @param title title for this dialog
* @param operation 'Save file' or 'Load file' operation
*/
@@ -57,10 +62,10 @@ public class SipCommFileChooserImpl
/**
* Returns the selected file by the user from the dialog.
- *
+ *
* @return File the selected file from the dialog
*/
- public File getApprovedFile()
+ public File getApprovedFile()
{
return this.getSelectedFile();
}
@@ -70,7 +75,7 @@ public class SipCommFileChooserImpl
*
* @param path the default start path for this dialog
*/
- public void setStartPath(String path)
+ public void setStartPath(String path)
{
// Passing null makes JFileChooser points to user's default dir.
File file = (path == null) ? null : new File(path);
@@ -87,7 +92,7 @@ public class SipCommFileChooserImpl
/**
* Shows the dialog and returns the selected file.
- *
+ *
* @return File the selected file in this dialog
*/
public File getFileFromDialog()
@@ -105,7 +110,7 @@ public class SipCommFileChooserImpl
/**
* Returns the parent component of this dialog
- *
+ *
* @return Component dialog's parent component
*/
public Component getParentComponent()
@@ -115,10 +120,10 @@ public class SipCommFileChooserImpl
/**
* Adds a file filter to this dialog.
- *
+ *
* @param filter the filter to add
*/
- public void addFilter(SipCommFileFilter filter)
+ public void addFilter(SipCommFileFilter filter)
{
this.addChoosableFileFilter(filter);
}
diff --git a/src/net/java/sip/communicator/util/swing/TrimTextField.java b/src/net/java/sip/communicator/util/swing/TrimTextField.java
index 93ab4c9..1500e61 100644
--- a/src/net/java/sip/communicator/util/swing/TrimTextField.java
+++ b/src/net/java/sip/communicator/util/swing/TrimTextField.java
@@ -17,6 +17,11 @@ public class TrimTextField
extends JTextField
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Returns the trimmed value of the text contained in the field.
* @return the trimmed value of the field.
*/
diff --git a/src/net/java/sip/communicator/util/swing/UIAction.java b/src/net/java/sip/communicator/util/swing/UIAction.java
index 5ba7f92..963a370 100644
--- a/src/net/java/sip/communicator/util/swing/UIAction.java
+++ b/src/net/java/sip/communicator/util/swing/UIAction.java
@@ -12,10 +12,15 @@ import javax.swing.*;
* A wrapper around AbstractAction, so we can differ our Actions.
* Used when adding actions to the action map,
* and actions will be triggered by keystrokes from the inputMap of the RootPane.
- *
+ *
* @author Damian Minkov
*/
public abstract class UIAction
extends AbstractAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
}
diff --git a/src/net/java/sip/communicator/util/swing/VideoContainer.java b/src/net/java/sip/communicator/util/swing/VideoContainer.java
index cb43c3e..164cc3d 100644
--- a/src/net/java/sip/communicator/util/swing/VideoContainer.java
+++ b/src/net/java/sip/communicator/util/swing/VideoContainer.java
@@ -25,11 +25,19 @@ public class VideoContainer
extends TransparentPanel
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* The <tt>Logger</tt> used by the <tt>VideoContainer</tt> class and its
* instances for logging output.
*/
private static final Logger logger = Logger.getLogger(VideoContainer.class);
+ /**
+ * The default background color.
+ */
public static final Color DEFAULT_BACKGROUND_COLOR
= OSUtils.IS_MAC ? Color.BLACK : null;
@@ -245,7 +253,7 @@ public class VideoContainer
/*
* XXX Do not call #remove(Component) beyond this point and before
* #add(Component, Object, int) because #removeCanvasIfNecessary() will
- * remove the canvas.
+ * remove the canvas.
*/
super.add(comp, constraints, index);
diff --git a/src/net/java/sip/communicator/util/swing/X509CertificatePanel.java b/src/net/java/sip/communicator/util/swing/X509CertificatePanel.java
index 3a5b672..fbab154 100644
--- a/src/net/java/sip/communicator/util/swing/X509CertificatePanel.java
+++ b/src/net/java/sip/communicator/util/swing/X509CertificatePanel.java
@@ -29,12 +29,17 @@ public class X509CertificatePanel
{
private static final long serialVersionUID = -8368302061995971947L;
+ /**
+ * Constructs a X509 certificate panel.
+ *
+ * @param certificate <tt>X509Certificate</tt> object
+ */
public X509CertificatePanel(X509Certificate certificate)
{
ResourceManagementService R = UtilActivator.getResources();
DateFormat dateFormatter = DateFormat
.getDateInstance(DateFormat.MEDIUM);
-
+
Insets valueInsets = new Insets(2,10,0,0);
Insets titleInsets = new Insets(10,5,0,0);
@@ -387,7 +392,7 @@ public class X509CertificatePanel
} /**
* Calculates the hash of the certificate known as the "thumbprint"
* and returns it as a string representation.
- *
+ *
* @param cert The certificate to hash.
* @param algorithm The hash algorithm to use.
* @return The SHA-1 hash of the certificate.
diff --git a/src/net/java/sip/communicator/util/swing/border/ExtendedEtchedBorder.java b/src/net/java/sip/communicator/util/swing/border/ExtendedEtchedBorder.java
index e394a1c..85e0175 100644
--- a/src/net/java/sip/communicator/util/swing/border/ExtendedEtchedBorder.java
+++ b/src/net/java/sip/communicator/util/swing/border/ExtendedEtchedBorder.java
@@ -8,6 +8,11 @@ public class ExtendedEtchedBorder
extends EtchedBorder
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Thickness of the top line.
*/
private final int top;
@@ -30,7 +35,7 @@ public class ExtendedEtchedBorder
/**
* Creates an etched border with the specified etch-type and specified
* thickness of each border: top, left, bottom, right.
- *
+ *
* @param etchType the type of etch to be drawn by the border
* @param top the thickness of the top border
* @param left the thickness of the left border
@@ -52,7 +57,7 @@ public class ExtendedEtchedBorder
}
/**
- * Paints the border for the specified component with the
+ * Paints the border for the specified component with the
* specified position and size.
* @param c the component for which this border is being painted
* @param g the paint graphics
diff --git a/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneEnhancedUI.java b/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneEnhancedUI.java
index 16de795..6fccdf0 100644
--- a/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneEnhancedUI.java
+++ b/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneEnhancedUI.java
@@ -27,8 +27,8 @@ import net.java.sip.communicator.util.swing.*;
/**
* This UI displays a different interface, which is independent from the look
- * and feel.
- *
+ * and feel.
+ *
* @author David Bismut, davidou@mageos.com
* @author Yana Stamcheva
* @author Adam Netocny
@@ -263,7 +263,7 @@ public class SIPCommTabbedPaneEnhancedUI
titleWidth = SwingUtilities.computeStringWidth(metrics, title);
}
-
+
textRect.width = titleWidth;
View v = getTextViewForTab(tabIndex);
@@ -313,6 +313,11 @@ public class SIPCommTabbedPaneEnhancedUI
protected class ScrollableTabButton extends
SIPCommTabbedPaneUI.ScrollableTabButton
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public ScrollableTabButton(int direction)
{
super(direction);
@@ -417,7 +422,7 @@ public class SIPCommTabbedPaneEnhancedUI
return new ScrollableTabButton(direction);
}
-
+
protected int calculateTabWidth(int tabPlacement, int tabIndex,
FontMetrics metrics)
{
diff --git a/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneUI.java b/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneUI.java
index 9b981b8..554119b 100644
--- a/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneUI.java
+++ b/src/net/java/sip/communicator/util/swing/plaf/SIPCommTabbedPaneUI.java
@@ -274,7 +274,7 @@ public class SIPCommTabbedPaneUI
protected void updateOverTab(int x, int y)
{
int overTabIndex = getTabAtLocation(x, y);
- if (this.overTabIndex != overTabIndex)
+ if (this.overTabIndex != overTabIndex)
{
this.overTabIndex = overTabIndex;
tabScroller.tabPanel.repaint();
@@ -337,9 +337,9 @@ public class SIPCommTabbedPaneUI
/**
* Invoked by <code>installUI</code> to create a layout manager object to
* manage the <code>JTabbedPane</code>.
- *
+ *
* @return a layout manager object
- *
+ *
* @see javax.swing.JTabbedPane#getTabLayoutPolicy
*/
protected LayoutManager createLayoutManager()
@@ -357,7 +357,7 @@ public class SIPCommTabbedPaneUI
/**
* Creates and installs any required subcomponents for the JTabbedPane.
* Invoked by installUI.
- *
+ *
* @since 1.4
*/
protected void installComponents()
@@ -374,10 +374,10 @@ public class SIPCommTabbedPaneUI
/**
* Removes any installed subcomponents from the JTabbedPane. Invoked by
* uninstallUI.
- *
+ *
* @since 1.4
*/
- protected void uninstallComponents()
+ protected void uninstallComponents()
{
tabPane.remove(tabScroller.viewport);
tabPane.remove(tabScroller.scrollForwardButton);
@@ -740,7 +740,7 @@ public class SIPCommTabbedPaneUI
* edge visual. e.g. A "File" tab which has cropped been cropped just after
* the "i": ------------- | ..... | | . | | ... . | | . . | | . . | | . . |
* --------------
- *
+ *
* The x, y arrays below define the pattern used to create a "torn" edge
* segment which is repeated to fill the edge of the tab. For tabs placed on
* TOP and BOTTOM, this righthand torn edge is created by line segments
@@ -791,13 +791,13 @@ public class SIPCommTabbedPaneUI
* inclusive). The destination rectangle parameter must be a valid
* <code>Rectangle</code> instance. The handling of invalid parameters is
* unspecified.
- *
+ *
* @param tabIndex
* the index of the tab
* @param dest
* the rectangle where the result should be placed
* @return the resulting rectangle
- *
+ *
* @since 1.4
*/
@@ -930,6 +930,11 @@ public class SIPCommTabbedPaneUI
private static class DirectionAction
extends AbstractAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private final int direction;
public DirectionAction(int direction)
@@ -948,6 +953,11 @@ public class SIPCommTabbedPaneUI
private static class PageAction
extends AbstractAction
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
private final boolean up;
public PageAction(boolean up)
@@ -1448,6 +1458,11 @@ public class SIPCommTabbedPaneUI
extends TransparentPanel
implements UIResource
{
+ /**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
public ScrollableTabPanel()
{
setLayout(null);
@@ -1514,27 +1529,27 @@ public class SIPCommTabbedPaneUI
/*
* GES 2/3/99: The container listener code was added to support HTML
* rendering of tab titles.
- *
+ *
* Ideally, we would be able to listen for property changes when a tab is
* added or its text modified. At the moment there are no such events
* because the Beans spec doesn't allow 'indexed' property changes (i.e. tab
* 2's text changed from A to B).
- *
+ *
* In order to get around this, we listen for tabs to be added or removed by
* listening for the container events. we then queue up a runnable (so the
* component has a chance to complete the add) which checks the tab title of
* the new component to see if it requires HTML rendering.
- *
+ *
* The Views (one per tab title requiring HTML rendering) are stored in the
* htmlViews Vector, which is only allocated after the first time we run
* into an HTML tab. Note that this vector is kept in step with the number
* of pages, and nulls are added for those pages whose tab title do not
* require HTML rendering.
- *
+ *
* This makes it easy for the paint and layout code to tell whether to
* invoke the HTML engine without having to check the string during
* time-sensitive operations.
- *
+ *
* When we have added a way to listen for tab additions and changes to tab
* text, this code should be removed and replaced by something which uses
* that.
diff --git a/src/net/java/sip/communicator/util/swing/transparent/TransparentFrame.java b/src/net/java/sip/communicator/util/swing/transparent/TransparentFrame.java
index 0d5d388..6cb96e9 100644
--- a/src/net/java/sip/communicator/util/swing/transparent/TransparentFrame.java
+++ b/src/net/java/sip/communicator/util/swing/transparent/TransparentFrame.java
@@ -19,6 +19,11 @@ public class TransparentFrame
implements RootPaneContainer
{
/**
+ * Serial version UID.
+ */
+ private static final long serialVersionUID = 0L;
+
+ /**
* Indicates if the transparency is supported from the current graphics
* environment.
*/