Class ServerPortForwardingEventListener

  • All Implemented Interfaces:
    java.util.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

        log
      • Fields inherited from interface org.apache.sshd.common.NamedResource

        BY_NAME_COMPARATOR, NAME_EXTRACTOR
      • Fields inherited from interface org.apache.sshd.common.forward.PortForwardingEventListener

        EMPTY
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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, java.lang.Throwable reason)  
      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, java.lang.Throwable reason)  
      void tornDownDynamicTunnel​(org.apache.sshd.common.session.Session session, org.apache.sshd.common.util.net.SshdSocketAddress address, java.lang.Throwable reason)  
      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, java.lang.Throwable reason)  
      • Methods 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, warn
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.apache.sshd.common.forward.PortForwardingEventListener

        establishingDynamicTunnel, establishingExplicitTunnel, tearingDownDynamicTunnel, tearingDownExplicitTunnel
    • Constructor Detail

      • ServerPortForwardingEventListener

        public ServerPortForwardingEventListener​(org.slf4j.Logger logger)
    • Method Detail

      • 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,
                                              java.lang.Throwable reason)
                                       throws java.io.IOException
        Specified by:
        establishedExplicitTunnel in interface org.apache.sshd.common.forward.PortForwardingEventListener
        Throws:
        java.io.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,
                                           java.lang.Throwable reason)
                                    throws java.io.IOException
        Specified by:
        tornDownExplicitTunnel in interface org.apache.sshd.common.forward.PortForwardingEventListener
        Throws:
        java.io.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,
                                             java.lang.Throwable reason)
                                      throws java.io.IOException
        Specified by:
        establishedDynamicTunnel in interface org.apache.sshd.common.forward.PortForwardingEventListener
        Throws:
        java.io.IOException
      • tornDownDynamicTunnel

        public void tornDownDynamicTunnel​(org.apache.sshd.common.session.Session session,
                                          org.apache.sshd.common.util.net.SshdSocketAddress address,
                                          java.lang.Throwable reason)
                                   throws java.io.IOException
        Specified by:
        tornDownDynamicTunnel in interface org.apache.sshd.common.forward.PortForwardingEventListener
        Throws:
        java.io.IOException