Class ServerPortForwardingEventListener
java.lang.Object
org.apache.sshd.common.util.logging.AbstractLoggingBean
org.apache.sshd.cli.server.helper.ServerEventListenerHelper
org.apache.sshd.cli.server.helper.ServerPortForwardingEventListener
- All Implemented Interfaces:
EventListener, org.apache.sshd.common.forward.PortForwardingEventListener, org.apache.sshd.common.NamedResource, org.apache.sshd.common.util.SshdEventListener
public class ServerPortForwardingEventListener
extends ServerEventListenerHelper
implements org.apache.sshd.common.forward.PortForwardingEventListener
-
Field Summary
Fields inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
logFields inherited from interface org.apache.sshd.common.NamedResource
BY_NAME_COMPARATOR, NAME_EXTRACTORFields inherited from interface org.apache.sshd.common.forward.PortForwardingEventListener
EMPTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidestablishedDynamicTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress local, org.apache.sshd.common.util.net.SshdSocketAddress boundAddress, Throwable reason) voidestablishedExplicitTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress local, org.apache.sshd.common.util.net.SshdSocketAddress remote, boolean localForwarding, org.apache.sshd.common.util.net.SshdSocketAddress boundAddress, Throwable reason) voidtornDownDynamicTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress address, Throwable reason) voidtornDownExplicitTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress address, boolean localForwarding, org.apache.sshd.common.util.net.SshdSocketAddress remoteAddress, Throwable reason) Methods inherited from class ServerEventListenerHelper
getNameMethods inherited from class org.apache.sshd.common.util.logging.AbstractLoggingBean
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warnMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.apache.sshd.common.forward.PortForwardingEventListener
establishingDynamicTunnel, establishingExplicitTunnel, tearingDownDynamicTunnel, tearingDownExplicitTunnel
-
Constructor Details
-
ServerPortForwardingEventListener
public ServerPortForwardingEventListener(org.slf4j.Logger logger)
-
-
Method Details
-
establishedExplicitTunnel
public void establishedExplicitTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress local, org.apache.sshd.common.util.net.SshdSocketAddress remote, boolean localForwarding, org.apache.sshd.common.util.net.SshdSocketAddress boundAddress, Throwable reason) throws IOException - Specified by:
establishedExplicitTunnelin interfaceorg.apache.sshd.common.forward.PortForwardingEventListener- Throws:
IOException
-
tornDownExplicitTunnel
public void tornDownExplicitTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress address, boolean localForwarding, org.apache.sshd.common.util.net.SshdSocketAddress remoteAddress, Throwable reason) throws IOException - Specified by:
tornDownExplicitTunnelin interfaceorg.apache.sshd.common.forward.PortForwardingEventListener- Throws:
IOException
-
establishedDynamicTunnel
public void establishedDynamicTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress local, org.apache.sshd.common.util.net.SshdSocketAddress boundAddress, Throwable reason) throws IOException - Specified by:
establishedDynamicTunnelin interfaceorg.apache.sshd.common.forward.PortForwardingEventListener- Throws:
IOException
-
tornDownDynamicTunnel
public void tornDownDynamicTunnel(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress address, Throwable reason) throws IOException - Specified by:
tornDownDynamicTunnelin interfaceorg.apache.sshd.common.forward.PortForwardingEventListener- Throws:
IOException
-