Package org.apache.sshd.common.session
Class AbstractConnectionServiceFactory
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.common.session.AbstractConnectionServiceFactory
- All Implemented Interfaces:
PortForwardingEventListenerManager
- Direct Known Subclasses:
ClientConnectionServiceFactory,ServerConnectionServiceFactory
public abstract class AbstractConnectionServiceFactory
extends AbstractLoggingBean
implements PortForwardingEventListenerManager
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PortForwardingEventListenerprivate final Collection<PortForwardingEventListener> Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdd a port forwarding listenervoidRemove a port forwarding listener
-
Field Details
-
listeners
-
listenerProxy
-
-
Constructor Details
-
AbstractConnectionServiceFactory
protected AbstractConnectionServiceFactory()
-
-
Method Details
-
getPortForwardingEventListenerProxy
- Specified by:
getPortForwardingEventListenerProxyin interfacePortForwardingEventListenerManager- Returns:
- A proxy listener representing all the currently registered listener through this manager
-
addPortForwardingEventListener
Description copied from interface:PortForwardingEventListenerManagerAdd a port forwarding listener- Specified by:
addPortForwardingEventListenerin interfacePortForwardingEventListenerManager- Parameters:
listener- ThePortForwardingEventListenerto add - nevernull
-
removePortForwardingEventListener
Description copied from interface:PortForwardingEventListenerManagerRemove a port forwarding listener- Specified by:
removePortForwardingEventListenerin interfacePortForwardingEventListenerManager- Parameters:
listener- ThePortForwardingEventListenerto remove - ignored ifnull
-