Class DefaultRemoteForwardRequestHandler

java.lang.Object
com.sshtools.client.DefaultRemoteForwardRequestHandler
All Implemented Interfaces:
com.sshtools.synergy.ssh.RemoteForwardRequestHandler<SshClientContext>

public class DefaultRemoteForwardRequestHandler extends Object implements com.sshtools.synergy.ssh.RemoteForwardRequestHandler<SshClientContext>
  • Constructor Details

    • DefaultRemoteForwardRequestHandler

      public DefaultRemoteForwardRequestHandler()
  • Method Details

    • isHandled

      public boolean isHandled(String hostToBind, int portToBind, String destinationHost, int destinationPort, com.sshtools.synergy.ssh.ConnectionProtocol<SshClientContext> conn)
      Specified by:
      isHandled in interface com.sshtools.synergy.ssh.RemoteForwardRequestHandler<SshClientContext>
    • startRemoteForward

      public int startRemoteForward(String hostToBind, int portToBind, String destinationHost, int destinationPort, com.sshtools.synergy.ssh.ConnectionProtocol<SshClientContext> conn) throws com.sshtools.common.ssh.SshException
      Specified by:
      startRemoteForward in interface com.sshtools.synergy.ssh.RemoteForwardRequestHandler<SshClientContext>
      Throws:
      com.sshtools.common.ssh.SshException
    • stopRemoteForward

      public void stopRemoteForward(String hostToBind, int portToBind, String destinationHost, int destinationPort, com.sshtools.synergy.ssh.ConnectionProtocol<SshClientContext> conn) throws com.sshtools.common.ssh.SshException
      Specified by:
      stopRemoteForward in interface com.sshtools.synergy.ssh.RemoteForwardRequestHandler<SshClientContext>
      Throws:
      com.sshtools.common.ssh.SshException