aboutsummaryrefslogtreecommitdiffstats
path: root/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java
diff options
context:
space:
mode:
authorEmil Ivov <emcho@jitsi.org>2008-06-20 09:57:23 +0000
committerEmil Ivov <emcho@jitsi.org>2008-06-20 09:57:23 +0000
commitafd8c62ae92f579dbec9758ccadd9e113c7b3843 (patch)
tree6e0f713475c611c5f4fc52ab23a229c3f82661fd /src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java
parentf3be223e8d21ad7d6c2d7c779c179747e9c41dfc (diff)
downloadjitsi-afd8c62ae92f579dbec9758ccadd9e113c7b3843.zip
jitsi-afd8c62ae92f579dbec9758ccadd9e113c7b3843.tar.gz
jitsi-afd8c62ae92f579dbec9758ccadd9e113c7b3843.tar.bz2
Committing code optimization patch from Lubomir Marinov
Diffstat (limited to 'src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java')
-rw-r--r--src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java97
1 files changed, 1 insertions, 96 deletions
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 d248ded..e8a17b9 100644
--- a/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java
+++ b/src/net/java/sip/communicator/impl/protocol/ssh/ProtocolProviderServiceSSHImpl.java
@@ -29,7 +29,7 @@ import net.java.sip.communicator.service.gui.*;
* @author Shobhit Jindal
*/
public class ProtocolProviderServiceSSHImpl
- implements ProtocolProviderService
+ extends AbstractProtocolProviderService
{
private static final Logger logger
= Logger.getLogger(ProtocolProviderServiceSSHImpl.class);
@@ -86,11 +86,6 @@ public class ProtocolProviderServiceSSHImpl
private OperationSetFileTransferSSHImpl fileTranfer;
/**
- * A list of listeners interested in changes in our registration state.
- */
- private Vector registrationStateListeners = new Vector();
-
- /**
* Indicates whether or not the provider is initialized and ready for use.
*/
private boolean isInitialized = false;
@@ -508,84 +503,6 @@ public class ProtocolProviderServiceSSHImpl
}
/**
- * Registers the specified listener with this provider so that it would
- * receive notifications on changes of its state or other properties such
- * as its local address and display name.
- *
- * @param listener the listener to register.
- */
- public void addRegistrationStateChangeListener(
- RegistrationStateChangeListener listener)
- {
- synchronized(registrationStateListeners)
- {
- if (!registrationStateListeners.contains(listener))
- registrationStateListeners.add(listener);
- }
-
- }
-
- /**
- * Removes the specified registration listener so that it won't receive
- * further notifications when our registration state changes.
- *
- * @param listener the listener to remove.
- */
- public void removeRegistrationStateChangeListener(
- RegistrationStateChangeListener listener)
- {
- synchronized(registrationStateListeners)
- {
- registrationStateListeners.remove(listener);
- }
- }
-
- /**
- * Creates a <tt>RegistrationStateChangeEvent</tt> corresponding to the
- * specified old and new states and notifies all currently registered
- * listeners.
- *
- * @param oldState the state that the provider had before the change
- * occurred
- * @param newState the state that the provider is currently in.
- * @param reasonCode a value corresponding to one of the REASON_XXX fields
- * of the RegistrationStateChangeEvent class, indicating the reason for
- * this state transition.
- * @param reason a String further explaining the reason code or null if
- * no such explanation is necessary.
- */
- private void fireRegistrationStateChanged(
- RegistrationState oldState,
- RegistrationState newState,
- int reasonCode,
- String reason)
- {
- RegistrationStateChangeEvent event =
- new RegistrationStateChangeEvent(
- this, oldState, newState, reasonCode, reason);
-
- logger.debug("Dispatching " + event + " to "
- + registrationStateListeners.size()+ " listeners.");
-
- Iterator listeners = null;
- synchronized (registrationStateListeners)
- {
- listeners = new ArrayList(registrationStateListeners).iterator();
- }
-
- while (listeners.hasNext())
- {
- RegistrationStateChangeListener listener
- = (RegistrationStateChangeListener) listeners.next();
-
- listener.registrationStateChanged(event);
- }
-
- logger.trace("Done.");
- }
-
-
- /**
* Returns the AccountID that uniquely identifies the account represented
* by this instance of the ProtocolProviderService.
*
@@ -626,18 +543,6 @@ public class ProtocolProviderServiceSSHImpl
}
/**
- * Returns the protocol display name. This is the name that would be used
- * by the GUI to display the protocol name.
- *
- * @return a String containing the display name of the protocol this service
- * is implementing
- */
- public String getProtocolDisplayName()
- {
- return SSH_PROTOCOL_NAME;
- }
-
- /**
* Returns the state of the registration of this protocol provider with
* the corresponding registration service.
*