Package com.sshtools.client
Class DefaultRemoteForwardRequestHandler
java.lang.Object
com.sshtools.client.DefaultRemoteForwardRequestHandler
- All Implemented Interfaces:
RemoteForwardRequestHandler<SshClientContext>
public class DefaultRemoteForwardRequestHandler
extends Object
implements RemoteForwardRequestHandler<SshClientContext>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisHandled(String hostToBind, int portToBind, String destinationHost, int destinationPort, ConnectionProtocol<SshClientContext> conn) intstartRemoteForward(String hostToBind, int portToBind, String destinationHost, int destinationPort, ConnectionProtocol<SshClientContext> conn) voidstopRemoteForward(String hostToBind, int portToBind, String destinationHost, int destinationPort, ConnectionProtocol<SshClientContext> conn)
-
Constructor Details
-
DefaultRemoteForwardRequestHandler
public DefaultRemoteForwardRequestHandler()
-
-
Method Details
-
isHandled
public boolean isHandled(String hostToBind, int portToBind, String destinationHost, int destinationPort, ConnectionProtocol<SshClientContext> conn) - Specified by:
isHandledin interfaceRemoteForwardRequestHandler<SshClientContext>
-
startRemoteForward
public int startRemoteForward(String hostToBind, int portToBind, String destinationHost, int destinationPort, ConnectionProtocol<SshClientContext> conn) throws SshException - Specified by:
startRemoteForwardin interfaceRemoteForwardRequestHandler<SshClientContext>- Throws:
SshException
-
stopRemoteForward
public void stopRemoteForward(String hostToBind, int portToBind, String destinationHost, int destinationPort, ConnectionProtocol<SshClientContext> conn) throws SshException - Specified by:
stopRemoteForwardin interfaceRemoteForwardRequestHandler<SshClientContext>- Throws:
SshException
-