Package com.sshtools.client
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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
isHandled
(String hostToBind, int portToBind, String destinationHost, int destinationPort, com.sshtools.synergy.ssh.ConnectionProtocol<SshClientContext> conn) int
startRemoteForward
(String hostToBind, int portToBind, String destinationHost, int destinationPort, com.sshtools.synergy.ssh.ConnectionProtocol<SshClientContext> conn) void
stopRemoteForward
(String hostToBind, int portToBind, String destinationHost, int destinationPort, com.sshtools.synergy.ssh.ConnectionProtocol<SshClientContext> conn)
-
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 interfacecom.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 interfacecom.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 interfacecom.sshtools.synergy.ssh.RemoteForwardRequestHandler<SshClientContext>
- Throws:
com.sshtools.common.ssh.SshException
-