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
- Author:
- Apache MINA SSHD Project
-
-
Field Summary
-
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
log
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractConnectionServiceFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addPortForwardingEventListener(PortForwardingEventListener listener)
Add a port forwarding listenerPortForwardingEventListener
getPortForwardingEventListenerProxy()
void
removePortForwardingEventListener(PortForwardingEventListener listener)
Remove a port forwarding listener
-
-
-
Method Detail
-
getPortForwardingEventListenerProxy
public PortForwardingEventListener getPortForwardingEventListenerProxy()
- Specified by:
getPortForwardingEventListenerProxy
in interfacePortForwardingEventListenerManager
- Returns:
- A proxy listener representing all the currently registered listener through this manager
-
addPortForwardingEventListener
public void addPortForwardingEventListener(PortForwardingEventListener listener)
Description copied from interface:PortForwardingEventListenerManager
Add a port forwarding listener- Specified by:
addPortForwardingEventListener
in interfacePortForwardingEventListenerManager
- Parameters:
listener
- ThePortForwardingEventListener
to add - nevernull
-
removePortForwardingEventListener
public void removePortForwardingEventListener(PortForwardingEventListener listener)
Description copied from interface:PortForwardingEventListenerManager
Remove a port forwarding listener- Specified by:
removePortForwardingEventListener
in interfacePortForwardingEventListenerManager
- Parameters:
listener
- ThePortForwardingEventListener
to remove - ignored ifnull
-
-